landing.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. /**
  3. * Login view.
  4. *
  5. * Contains the view layout and some code to present the data.
  6. *
  7. * @author Iñigo Valentin <i@inigovalentin.com>
  8. * @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3
  9. * @package SWDB
  10. * @category View
  11. * @property Landing_Page $page The page model.
  12. * @var Landing_Page $page The page model.
  13. */
  14. ?>
  15. <!DOCTYPE html>
  16. <html lang='en'>
  17. <head>
  18. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  19. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  20. <title><?=$page->get_title()?></title>
  21. <link rel='shortcut icon' href='<?=$page->get_favicon()?>'/>
  22. <!-- CSS files -->
  23. <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>ui.css'/>
  24. <link rel='stylesheet' type='text/css' href='<?=URL::CSS?>landing.css'/>
  25. <!-- Meta tags -->
  26. <link rel='canonical' href='<?=$page->get_canonical()?>'/>
  27. <link rel='author' href='<?=$page->get_author()?>'/>
  28. <link rel='publisher' href='<?=$page->get_author()?>'/>
  29. <meta name='description' content='<?=$page->get_description()?>'/>
  30. <meta property='og:title' content='<?=$page->get_title()?>'/>
  31. <meta property='og:url' content='<?=$page->get_canonical()?>'/>
  32. <meta property='og:description' content='<?=$page->get_description()?>'/>
  33. <meta property='og:image' content='<?=$page->get_icon()?>'/>
  34. <meta property='og:site_name' content='<?=$page->get_name()?>?>'/>
  35. <meta property='og:type' content='website'/>
  36. <meta property='og:locale' content='en'/>
  37. <meta name='twitter:card' content='summary'/>
  38. <meta name='twitter:title' content='<?=$page->get_title()?>'/>
  39. <meta name='twitter:description' content='<?=$page->get_description()?>'/>
  40. <meta name='twitter:image' content='<?=$page->get_icon()?>'/>
  41. <meta name='twitter:url' content='<?=$page->get_canonical()?>'/>
  42. <meta name='robots' content='index follow'/>
  43. </head>
  44. <body>
  45. <?php
  46. include __DIR__ . "/inc/header.php";
  47. ?>
  48. <aside>
  49. </aside>
  50. <main>
  51. <section class='list'>
  52. <h2>
  53. Select player
  54. </h2>
  55. <article>
  56. <!-- TODO: Action via JS, and fllback in controller -->
  57. <form method='POST' action='/action/login/'>
  58. <table>
  59. <tr>
  60. <td class='label'>
  61. <label for='uname'>
  62. Player
  63. </label>
  64. </td>
  65. <td class='input'>
  66. <input type='text' name='uname' id='uname' required/>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class='label'>
  71. <label for='password'>
  72. Password
  73. </label>
  74. </td>
  75. <td class='input'>
  76. <input type='password' name='password' id='password' required/>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td class='submit' colspan='2'>
  81. <input type='submit' value='Go'/>
  82. </td>
  83. </tr>
  84. <?php
  85. if ($page->is_error()){
  86. ?>
  87. <tr>
  88. <td class='error' colspan='2'>
  89. <?=$page->error_message?>
  90. </td>
  91. </tr>
  92. <?php
  93. }
  94. ?>
  95. </table>
  96. </form>
  97. </article>
  98. </section> <!-- #catalog -->
  99. </main>
  100. <?php
  101. include __DIR__ . "/inc/footer.php";
  102. ?>
  103. </body>
  104. </html>