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,28 +1,21 @@
<!DOCTYPE html>
<?php
require_once "../lib/prelude.inc.php";
require_once "../lib/SecureLoginView.php";
$view = new SecureLoginView();
$view->setTitle("Secure Pages Login");
?>
<html>
<head>
<meta charset="UTF-8">
<title>Secure Pages Login</title>
<link href="../style/default.css" type="text/css" rel="stylesheet">
<?php
echo $view->head();
?>
</head>
<body>
<h1>Secure Pages Login</h1>
<form action="../post/login.php" method="post">
<fieldset>
<legend>Login</legend>
<p>
<label for="username">Username:</label>
<input type="text" id="username" name="username" placeholder="Username">
</p>
<p>
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="Password">
</p>
<input type="submit" name="Submit" value="Submit">
</fieldset>
</form>
<?php
echo $view->header();
echo $view->page();
echo $view->footer();
?>
</body>
</html>

View File

@@ -2,14 +2,21 @@
<?php
require_once "../lib/prelude.inc.php";
require_once "../lib/protected.inc.php";
require_once "../lib/MinutesView.php";
$view = new MinutesView();
$view->setTitle("Meeting Minutes");
?>
<html>
<head>
<meta charset="UTF-8">
<link href="../style/default.css" rel="stylesheet" type="text/css">
<title>Meeting Minutes</title>
<?php
echo $view->head();
?>
</head>
<body>
<h1>Meeting Minutes</h1>
<?php
echo $view->header();
echo $view->page();
echo $view->footer();
?>
</body>
</html>