style adjustments
[dylansserver.git] / view / page.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3
4 <html>
5 <head>
6 <title><?php echo $this->title; ?></title>
7 <link rel="icon" href="/favicon.ico" type="image/png">
8 <link href='/includes/style.css' rel='stylesheet' type='text/css'>
9 <script type='text/javascript' src='/includes/syntax/scripts/shCore.js'></script>
10 <script type='text/javascript' src='/includes/syntax/scripts/shAutoloader.js'></script>
11 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shCore.css'>
12 <link type='text/css' rel='stylesheet' href='/includes/syntax/styles/shThemeDefault.css'>
13 <script type='text/javascript'>
14 function highlight() {
15 SyntaxHighlighter.autoloader(
16 'js /includes/syntax/scripts/shBrushJScript.js',
17 'bash /includes/syntax/scripts/shBrushBash.js',
18 'sql /includes/syntax/scripts/shBrushSql.js',
19 'cpp /includes/syntax/scripts/shBrushCpp.js');
20 SyntaxHighlighter.defaults['gutter'] = false;
21 SyntaxHighlighter.defaults['toolbar'] = false;
22 SyntaxHighlighter.all();
23 }
24 </script>
25 <script type='text/javascript' src='https://www.google.com/recaptcha/api/js/recaptcha_ajax.js'></script>
26 <script type='text/javascript' src='/includes/comment.js'></script>
27 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
28 </head>
29
30 <body onload="return typeof highlight == 'function' ? highlight() : true">
31 <div id="structure">
32 <div id="banner">
33 <a href="<?php echo $this->home_link ?>">
34 <img src="/images/dylansserver.png" alt="dylansserver"
35 border="0"></a>
36 </div>
37
38 <div id="content">
39 <div id="notes">
40 <div id="notes">
41 <?php
42 foreach ($this->notes as $note) {
43 echo "<div class='note'>";
44 echo "<h1>";
45 echo "<span class='date'>";
46 echo $note['year_posted'] . "/";
47 echo $note['month_posted'] . "/";
48 echo $note['day_posted'] . "/";
49 echo "</span>";
50 echo "<a href='" . $note['url'] . "'>";
51 echo $note['title'];
52 echo "</a>";
53 echo "</h1>";
54 echo $note['text'];
55 }
56 ?>
57 </div>
58 <div id='navigation'>
59 <h1>
60 <?php
61 if($this->page > 1){
62 $previous_page = $this->page - 1;
63 echo "<a href='/notes/page/$previous_page'>prev</a>";
64 }
65 if($this->page < $this->number_of_pages) {
66 $forward_page = $this->page + 1;
67 echo " <a href='/notes/page/$forward_page'>next</a>";
68 } ?>
69 </h1>
70 </div>
71 <div id="contact_me"><h1><a href=
72 "mailto:dylan@psu.edu">dylan</a></h1><a href=
73 "mailto:dylan@psu.edu">@psu.edu</a>
74 </div>
75 </div>
76 <br>
77 <br>
78 </div>
79 </body>
80 </html>