consultar_horario.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. require_once 'class/c_login.php';
  3. if (!isset($_SESSION['user']))
  4. die(header('Location: index.php'));
  5. $user = unserialize($_SESSION['user']);
  6. $user->access();
  7. if (!$user->admin && in_array($user->acceso, ['n']))
  8. die(header('Location: main.php?error=1'));
  9. $user->print_to_log('Consultar horario');
  10. $write = $user->admin || in_array($user->acceso, ['w']);
  11. // var_dump($user);
  12. ?>
  13. <!DOCTYPE html>
  14. <html lang="en">
  15. <head>
  16. <title>Consultar horario |
  17. <?= $user->facultad['facultad'] ?>
  18. </title>
  19. <meta charset="utf-8">
  20. <meta http-equiv="content-type" content="text/plain; charset=UTF-8" />
  21. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  22. <?php include_once "import/html_css_files.php"; ?>
  23. <script src="js/jquery.min.js"></script>
  24. <script src="js/bootstrap/bootstrap.min.js"></script>
  25. </head>
  26. <!-- -->
  27. <body style="display: block;">
  28. <?php
  29. include('include/constantes.php');
  30. include("import/html_header.php");
  31. html_header("Consultar horario", "Sistema de gestión de checador");
  32. ?>
  33. <?= "<!-- $user -->" ?>
  34. <main class="container px-4 mt-4" id="app" v-cloak @vue:mounted="mounted">
  35. <section id="message"></section>
  36. <?php require('import/periodo.php') ?>
  37. <!-- Nuevo horario -->
  38. <form>
  39. <div class="form-group">
  40. <div class="form-box">
  41. </div>
  42. </div>
  43. </form>
  44. <!-- Horario is a (table with one a cell) within a table
  45. 7:15 - 8:45, 8:45 - 10:15, 10:30 - 12:00, 12:00 - 13:30
  46. de lunes a viernes, a excepción de que tenga sábado
  47. -->
  48. <div id="btn-excel-horario" class="mb-2 float-right hidden">
  49. <button class="btn btn-outline-secondary " title="Exportar a Excel">
  50. <span class="ing-descarga ing-fw"></span> Exportar a Excel
  51. </button>
  52. </div>
  53. <!-- Table responsive -->
  54. <div class="table-responsive">
  55. <table class="table table-bordered table-sm table-responsive-sm" id="table-horario">
  56. <thead class="thead-dark">
  57. <tr id="headers">
  58. <th scope="col" class="text-center">Hora</th>
  59. <th scope="col" class="text-center">Lunes</th>
  60. <th scope="col" class="text-center">Martes</th>
  61. <th scope="col" class="text-center">Miércoles</th>
  62. <th scope="col" class="text-center">Jueves</th>
  63. <th scope="col" class="text-center">Viernes</th>
  64. <th scope="col" class="text-center">Sábado</th>
  65. </tr>
  66. </thead>
  67. <tbody id="horario">
  68. <tr>
  69. <th scope="row" class="text-center">7:00</th>
  70. <td> Hola </td>
  71. <td> Hola </td>
  72. <td> Hola </td>
  73. <td> Hola </td>
  74. <td> Hola </td>
  75. <td> Hola </td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. </div>
  80. </main>
  81. </body>
  82. <? require_once "import/html_footer.php" ?>
  83. <script src="js/scrollables.js"></script>
  84. <script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
  85. <script src="js/moment.js"></script>
  86. </html>