legacy-dotfiles/emacs.d/nxhtml/tests/in/el-070722-index-2.php
Tom Willemsen 94d2fc1815 Django, org
* Added nxhtml, mostly for django support.

  * Changed some org settings.
2011-03-07 09:04:49 +01:00

48 lines
1.5 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Lab 2 - Layout Control - Task 2 - XHTML/CSS version</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</head>
<body>
<div id="container">
<div id="header">Top area</div>
<div id="left-menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="index.php?page=a">First Main Page</a></li>
<li><a href="index.php?page=b">Second Main Page</a></li>
</ul>
</div>
<div id="main">
<?php
if (isset($_GET["page"])) {
$thepage = $_GET['page'];
if ($thepage != 'a' && $thepage != 'b') {
print('You hacker you!');
}
else {
require('main-div-'.$thepage.'.html');
}
}
else {
require('main-div-a.html');
}
?>
</div>
<div id="right-menu">Right area</div>
<div id="footer">
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="valid-xhtml10.png" alt="Valid XHTML 1.0 Strict"></img>
</a>
<a href="http://jigsaw.w3.org/css-validator/check?uri=referer">
<img src="vcss.png" alt="Valid CSS!"></img>
</a>
</p>
</div>
</div>
</body>
</html>