landing.php 3.9 KB

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