From 67030dc870b3973431354bbc24c1ef0f16d3b248 Mon Sep 17 00:00:00 2001 From: Sean Joseph Date: Mon, 30 Oct 2017 11:11:36 -0400 Subject: [PATCH] Added a general secure view for pages in the secure section of the website. --- lib/MilestonesView.php | 28 ++++++++++++++++++++++++++++ lib/MinutesView.php | 10 +++++++--- lib/SecureLoginView.php | 4 ++-- lib/SecureView.php | 21 +++++++++++++++++++++ secure/milestones.php | 22 ++++++++++++++++++++++ 5 files changed, 80 insertions(+), 5 deletions(-) create mode 100644 lib/MilestonesView.php create mode 100644 lib/SecureView.php create mode 100644 secure/milestones.php diff --git a/lib/MilestonesView.php b/lib/MilestonesView.php new file mode 100644 index 0000000..a82baf6 --- /dev/null +++ b/lib/MilestonesView.php @@ -0,0 +1,28 @@ + +

+ Baby's first words. +

+ + +HTML; + + return $body; + } + +} \ No newline at end of file diff --git a/lib/MinutesView.php b/lib/MinutesView.php index a48d098..012427c 100644 --- a/lib/MinutesView.php +++ b/lib/MinutesView.php @@ -1,6 +1,6 @@ +

+ Meeting for stuff and things. +

+ HTML; return $body; diff --git a/lib/SecureLoginView.php b/lib/SecureLoginView.php index 96f0e02..4f1f72c 100644 --- a/lib/SecureLoginView.php +++ b/lib/SecureLoginView.php @@ -1,7 +1,7 @@ addNav("Home", ROOT); + $this->addNav("Minutes", ROOT . "secure/minutes.php"); + $this->addNav("Milestones", ROOT . "secure/milestones.php"); + $this->addNav("Logoff", ROOT . "secure/"); + } + +} \ No newline at end of file diff --git a/secure/milestones.php b/secure/milestones.php new file mode 100644 index 0000000..9da0219 --- /dev/null +++ b/secure/milestones.php @@ -0,0 +1,22 @@ + +setTitle("Milestones and Deadlines"); +?> + + + head(); + ?> + + +header(); +echo $view->page(); +echo $view->footer(); +?> + +