From 881515b9693cfac8ea4bda6a3f466766bb582430 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Thu, 22 Mar 2012 18:17:04 -0400 Subject: [PATCH] class 'page' display now in view/page.php --- cms.php | 23 ++++--------------- view/page.php | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 19 deletions(-) create mode 100644 view/page.php diff --git a/cms.php b/cms.php index caa22a1..00a8d7c 100644 --- a/cms.php +++ b/cms.php @@ -320,7 +320,10 @@ class page extends cms { } public function display() { - $this->display_head(); + require_once("view/page.php"); + } + + public function display_notes() { echo "
"; $sql = "SELECT date_posted, title, url, text FROM notes ORDER BY date_posted DESC @@ -347,25 +350,7 @@ class page extends cms { END_NOTE; } echo "
"; - $this->write_navigation(); - $this->display_close(); - } - - private function write_navigation() { - echo ""; } - } diff --git a/view/page.php b/view/page.php new file mode 100644 index 0000000..2829668 --- /dev/null +++ b/view/page.php @@ -0,0 +1,62 @@ + + + + + <?php echo $this->title; ?> + + + + + + + + + + + + +
+ + +
+
+ display_notes() ?> + + +
+
+
+
+ + -- 2.30.2