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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user