| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- /**
- * Login view.
- *
- * Contains the view layout and some code to present the data.
- *
- * @category View
- * @var Landing_Page $page The page model.
- */
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
- <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
- <title><?=$page->title?></title>
- <link rel='shortcut icon' href='<?=$page->favicon?>'/>
- <!-- CSS files -->
- <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>ui.css'/>
- <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>landing.css'/>
- <!-- Meta tags -->
- <link rel='canonical' href='<?=$page->canonical?>'/>
- <link rel='author' href='<?=$page->author?>'/>
- <link rel='publisher' href='<?=$page->author?>'/>
- <meta name='description' content='<?=$page->description?>'/>
- <meta property='og:title' content='<?=$page->title?>'/>
- <meta property='og:url' content='<?=$page->canonical?>'/>
- <meta property='og:description' content='<?=$page->description?>'/>
- <meta property='og:image' content='<?=$page->icon?>'/>
- <meta property='og:site_name' content='<?=$page->name?>'/>
- <meta property='og:type' content='website'/>
- <meta property='og:locale' content='en'/>
- <meta name='twitter:card' content='summary'/>
- <meta name='twitter:title' content='<?=$page->title?>'/>
- <meta name='twitter:description' content='<?=$page->description?>'/>
- <meta name='twitter:image' content='<?=$page->icon?>'/>
- <meta name='twitter:url' content='<?=$page->canonical?>'/>
- <meta name='robots' content='index follow'/>
- </head>
- <body>
- <?php
- include __DIR__ . "/inc/header.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->error_message != ""){
- ?>
- <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>
|