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:
33
lib/SecureLoginView.php
Normal file
33
lib/SecureLoginView.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user