X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;ds=sidebyside;f=view%2Farchive.php;h=4231b176cdc93d6f04aa5f8bf732abbc86fb8d75;hb=1fed68cbdf3ad6c5b4e68db954e9462016775a68;hp=2829668558f124a156e031bf630f8087e71b2e1f;hpb=853193f66b966ff0bd8c13cc94ee3457d3543d1f;p=dylansserver.git
diff --git a/view/archive.php b/view/archive.php
index 2829668..4231b17 100644
--- a/view/archive.php
+++ b/view/archive.php
@@ -22,8 +22,9 @@
SyntaxHighlighter.all();
}
-
+
+
@@ -36,20 +37,26 @@
- display_notes() ?>
-
-
- page > 1){
- $previous_page = $this->page - 1;
- echo "prev";
- }
- if($this->page < $this->number_of_pages) {
- $forward_page = $this->page + 1;
- echo " next";
- } ?>
-
-
+ notes) >= 1) {
+ foreach ($this->notes as $note) {
+ echo "
";
+ echo "
";
+ echo $note['year_posted'] . "/";
+ echo $note['month_posted'] . "/";
+ echo $note['day_posted'] . "/";
+ echo "";
+ echo $note['title'] . "
";
+ echo $note['text'];
+ echo "
";
+ }
+ } else {
+ echo "
";
+ echo "
sorry, nothing here";
+ echo "Empty set (0.00 sec)
";
+ }
+ ?>
+