1 <?php header("Content-type:application/xml; charset=utf-8"); echo '<'; echo '?xml version="1.0" encoding="utf-8"?'; echo '>'; ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>Lab 2 - Layout Control - Task 2 - XHTML/CSS version</title>
7 <link rel="stylesheet" type="text/css" href="stylesheet.css" />
11 <div id="header">Top area</div>
14 <li><a href="index.php">Home</a></li>
15 <li><a href="index.php?page=a">First Main Page</a></li>
16 <li><a href="index.php?page=b">Second Main Page</a></li>
26 $thepage = $_GET['page'];
28 if (empty($thepage)) {
29 require('main-div-a.html');
32 if ($thepage != 'a' && $thepage != 'b') {
33 print('You hacker you!');
36 require('main-div-'.$thepage.'.html');
43 <div id="right-menu">Right area</div>
46 <a href="http://validator.w3.org/check?uri=referer">
47 <img src="valid-xhtml10.png" alt="Valid XHTML 1.0 Strict"></img>
49 <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww-und.ida.liu.se%2F%7Emikas493%2Ftask-2%2Fxhtml-css%2Fstylesheet.css">
50 <img src="vcss.png" alt="Valid CSS!"></img>