Draft page added
This commit is contained in:
parent
67030dc870
commit
e26a57c744
26
lib/DraftsView.php
Normal file
26
lib/DraftsView.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
@ -15,6 +15,7 @@ class SecureView extends View
|
||||
$this->addNav("Home", ROOT);
|
||||
$this->addNav("Minutes", ROOT . "secure/minutes.php");
|
||||
$this->addNav("Milestones", ROOT . "secure/milestones.php");
|
||||
$this->addNav("Drafts", ROOT . "secure/drafts.php");
|
||||
$this->addNav("Logoff", ROOT . "secure/");
|
||||
}
|
||||
|
||||
|
22
secure/drafts.php
Normal file
22
secure/drafts.php
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user