landing.php 3.4 KB

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