Added site style to the secure pages. Renamed LoginController to SecureLoginController.
33 lines
701 B
PHP
33 lines
701 B
PHP
<?php
|
|
require_once "View.php";
|
|
|
|
class SecureLoginView extends View
|
|
{
|
|
|
|
|
|
public function page()
|
|
{
|
|
$body = <<<HTML
|
|
<div class="content">
|
|
<div class="card">
|
|
<form action="../post/login.php" method="post">
|
|
<fieldset>
|
|
<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>
|
|
<p><input type="submit" name="Submit" value="Submit"></p>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
HTML;
|
|
|
|
return $body;
|
|
}
|
|
|
|
} |