diff options
author | 2011-03-07 09:04:49 +0100 | |
---|---|---|
committer | 2011-03-07 09:04:49 +0100 | |
commit | 94d2fc1815a919734353c942f224db1de4b4fcb8 (patch) | |
tree | 4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/el-070722-index-noheader.php | |
parent | d0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff) | |
download | dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip |
Django, org
* Added nxhtml, mostly for django support.
* Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/el-070722-index-noheader.php')
-rw-r--r-- | emacs.d/nxhtml/tests/in/el-070722-index-noheader.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/el-070722-index-noheader.php b/emacs.d/nxhtml/tests/in/el-070722-index-noheader.php new file mode 100644 index 0000000..34271ba --- /dev/null +++ b/emacs.d/nxhtml/tests/in/el-070722-index-noheader.php @@ -0,0 +1,48 @@ +<?php +/* We must use this header to be correct and for the css validator to + find our stylesheet without us having to provide a fully qualified + path (address) to it. */ +header("Content-type:application/xhtml+xml; charset=utf-8"); +echo '<'.'?xml version="1.0" encoding="utf-8"?'.'>'; +?> + <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> |