Refactored a div class tag to be more general.

Added site style to the secure pages. Renamed LoginController
to SecureLoginController.
This commit is contained in:
2017-10-30 11:01:59 -04:00
parent 9a073edded
commit 2628cc8b80
10 changed files with 107 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
<?php
require_once "prelude.inc.php";
/**
* Created by PhpStorm.
@@ -10,19 +11,18 @@ class View
{
public function __construct() {
$this->addNav("Home", "./");
$this->addNav("Progress", "./");
$this->addNav("Meet The Team", "./about.php");
$this->addNav("Home", ROOT);
$this->addNav("Meet The Team", ROOT . "about.php");
$this->addNav("Secure", ROOT ."secure");
$this->addNav("Course Site", "https://cse.msu.edu/~cse435/");
$this->addNav("Secure", "./secure");
}
public function head(){
$root = ROOT;
$html = <<<HTML
<meta charset="utf-8">
<meta charset="UTF-8">
<title>$this->title</title>
<link href="./style/default.css" rel="stylesheet" type="text/css">
<link href="{$root}style/default.css" rel="stylesheet" type="text/css">
HTML;
return $html;
@@ -80,6 +80,6 @@ HTML;
}
private $links = array();
private $title = "Not Set!";
protected $title = "Not Set!";
}