]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/xml-as-string.php
e779a5c8322bbd4cc5c775125c272e31dc875e3c
[.emacs.d.git] / emacs / nxhtml / tests / in / xml-as-string.php
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">
5   <head>
6     <title>Lab 2 - Layout Control - Task 2 - XHTML/CSS version</title>
7     <link rel="stylesheet" type="text/css" href="stylesheet.css" />
8   </head>
9   <body>
10     <div id="container">
11       <div id="header">Top area</div>
12       <div id="left-menu">
13         <ul>
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>
17         </ul>
18       </div>
19       <!--
20         <?
21              ?>
22           -->
23       <div id="main">
24         <?php
25           // comment
26           $thepage = $_GET['page'];
27
28           if (empty($thepage)) {
29             require('main-div-a.html');
30           }
31           else {
32             if ($thepage != 'a' && $thepage != 'b') {
33               print('You hacker you!');
34             }
35             else {
36               require('main-div-'.$thepage.'.html');
37             }
38             for (;;) {
39             }
40           }
41         ?>
42       </div>
43       <div id="right-menu">Right area</div>
44       <div id="footer">
45         <p>
46           <a href="http://validator.w3.org/check?uri=referer">
47             <img src="valid-xhtml10.png" alt="Valid XHTML 1.0 Strict"></img>
48           </a>
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>
51           </a>
52         </p>
53       </div>
54     </div>