view.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright (C) 2021 Echedey López Romero <elr@disroot.org>
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <html>
  16. <head>
  17. <meta charset = "UTF-8" />
  18. <meta name = "author" content = "Echedey López Romero" />
  19. <title>Calendar</title>
  20. <link rel = "stylesheet" href = "./frameworks/bootstrap/css/bootstrap.min.css" />
  21. <script src = "./frameworks/jquery/jquery-3.5.1.min.js"></script>
  22. <script src="./frameworks/bootstrap/js/bootstrap.bundle.min.js"></script>
  23. <link rel="stylesheet" href="./css/common.css" />
  24. </head>
  25. <body class="container">
  26. <div class="row my-3">
  27. <form class="col-lg-6 col-md-8 col-12 mx-auto p-3 border border-primary rounded" action="." method="POST">
  28. <div class="container">
  29. <div class="row mb-3">
  30. <div class="col-12 px-0">
  31. <h1 class="text-center">Calendar</h1>
  32. </div>
  33. </div>
  34. <div class="row mb-3">
  35. <div class="form-group col-12 px-0">
  36. <label for="month" class="d-block text-center t-large">Month</label>
  37. <input type="number" class="form-control" id="month" name="month" <?php echo $Month !== '' ? 'value="' . $Month . '"' : '' ?> min="1" max="12" required="" />
  38. </div>
  39. </div>
  40. <div class="row mb-3">
  41. <div class="form-group col-12 px-0">
  42. <label for="year" class="d-block text-center t-large">Year</label>
  43. <input type="number" class="form-control" id="year" name="year" <?php echo $Year !== '' ? 'value="' . $Year . '"' : '' ?> min="1" max="9999" required="" />
  44. </div>
  45. </div>
  46. <div class="row mb-3">
  47. <div class='col-12 mb-lg-0 px-0'>
  48. <div class='container'>
  49. <div class='row mb-2'>
  50. <span class="col-12 px-0 text-center t-large">Calendar</span>
  51. </div>
  52. <div class='row'>
  53. <div class="col-12 mb-0 p-2 border border-secondary rounded text-center">
  54. <?php echo $Resultado; ?>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="row">
  61. <div class="col-lg-6 col-12 mb-lg-0 mb-2 pl-0 pr-lg-3 pr-0">
  62. <button type="submit" class="btn btn-lg btn-block btn-primary" name="mostrar">Mostrar</button>
  63. </div>
  64. <div class="col-lg-6 col-12 pl-lg-3 pl-0 pr-0">
  65. <button type="button" class="btn btn-lg btn-block btn-danger" onclick="window.location.href='.'">Limpiar</button>
  66. </div>
  67. </div>
  68. </div>
  69. </form>
  70. </div>
  71. </body>
  72. </html>