Draft page added

This commit is contained in:
Sean Joseph 2017-10-30 11:18:53 -04:00
parent 67030dc870
commit e26a57c744
3 changed files with 49 additions and 0 deletions

26
lib/DraftsView.php Normal file
View File

@ -0,0 +1,26 @@
<?php
require_once "SecureView.php";
/**
* Created by PhpStorm.
* User: sean
* Date: 10/30/17
* Time: 11:14 AM
*/
class DraftsView extends SecureView
{
public function page(){
$body = <<<HTML
<div class="card">
<h2>Draft 1</h2>
<p>
Lol, just do the thing, bro!
</p>
</div>
HTML;
return $body;
}
}

View File

@ -15,6 +15,7 @@ class SecureView extends View
$this->addNav("Home", ROOT); $this->addNav("Home", ROOT);
$this->addNav("Minutes", ROOT . "secure/minutes.php"); $this->addNav("Minutes", ROOT . "secure/minutes.php");
$this->addNav("Milestones", ROOT . "secure/milestones.php"); $this->addNav("Milestones", ROOT . "secure/milestones.php");
$this->addNav("Drafts", ROOT . "secure/drafts.php");
$this->addNav("Logoff", ROOT . "secure/"); $this->addNav("Logoff", ROOT . "secure/");
} }

22
secure/drafts.php Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<?php
require_once "../lib/prelude.inc.php";
require_once "../lib/protected.inc.php";
require_once "../lib/DraftsView.php";
$view = new DraftsView();
$view->setTitle("Drafts");
?>
<html>
<head>
<?php
echo $view->head();
?>
</head>
<body>
<?php
echo $view->header();
echo $view->page();
echo $view->footer();
?>
</body>
</html>