| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- /**
- * Login view.
- *
- * Contains the view layout and some code to present the data.
- *
- * @author Iñigo Valentin <i@inigovalentin.com>
- * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
- * @package SWDB
- * @category View
- * @property Login_Page $page The page model.
- * @var Login_Page $page The page model.
- */
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <?=$page->generate_head()?>
- </head>
- <body>
- <?php
- include __DIR__ . "/inc/header_app.php";
- ?>
- <aside>
- </aside>
- <main>
- <section class='list'>
- <h2>
- Select player
- </h2>
- <article>
- <!-- TODO: Action via JS, and fllback in controller -->
- <form method='POST' action='/action/login/'>
- <table>
- <tr>
- <td class='label'>
- <label for='uname'>
- Player
- </label>
- </td>
- <td class='input'>
- <input type='text' name='uname' id='uname' required/>
- </td>
- </tr>
- <tr>
- <td class='label'>
- <label for='password'>
- Password
- </label>
- </td>
- <td class='input'>
- <input type='password' name='password' id='password' required/>
- </td>
- </tr>
- <tr>
- <td class='submit' colspan='2'>
- <input type='submit' value='Go'/>
- </td>
- </tr>
- <?php
- if ($page->is_error()){
- ?>
- <tr>
- <td class='error' colspan='2'>
- <?=$page->error_message?>
- </td>
- </tr>
- <?php
- }
- ?>
- </table>
- </form>
- </article>
- </section> <!-- #catalog -->
- </main>
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- </body>
- </html>
|