]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/temp2.php
submodulized .emacs.d setup
[.emacs.d.git] / emacs / nxhtml / tests / in / temp2.php
1 <?php
2 /* We must use this header to be correct and for the css validator to
3    find our stylesheet without us having to provide a fully qualified
4    path (address) to it. */
5 header("Content-type:application/xhtml+xml; charset=utf-8");
6 echo '<'.'?xml version="1.0" encoding="utf-8"?'.'>';
7 ?>
8   <body>
9     <div id="container">
10       <div id="header">Top area</div>
11       <div id="left-menu">
12         <ul>
13           <li><a href="index.php">Home</a></li>
14           <li><a href="index.php?page=a">First Main Page</a></li>
15           <li><a href="index.php?page=b">Second Main Page</a></li>
16         </ul>
17       </div>
18       <div id="main">
19         <?php
20           if (isset($_GET["page"])) {
21             $thepage = $_GET['page'];
22
23             if ($thepage != 'a' && $thepage != 'b') {
24               print('You hacker you!');
25             }
26             else {
27               require('main-div-'.$thepage.'.html');
28             }
29           }
30           else {
31             require('main-div-a.html');
32           }
33         ?>
34       </div>
35       <div id="right-menu">Right area</div>
36       <div id="footer">
37         <p>
38           <a href="http://validator.w3.org/check?uri=referer">
39             <img src="valid-xhtml10.png" alt="Valid XHTML 1.0 Strict"></img>
40           </a>
41           <a href="http://jigsaw.w3.org/css-validator/check?uri=referer">
42             <img src="vcss.png" alt="Valid CSS!"></img>
43           </a>
44         </p>
45       </div>
46     </div>
47   </body>
48 </html>