96 lines
3.5 KiB
PHP
96 lines
3.5 KiB
PHP
<?php
|
|
require_once 'class/c_login.php';
|
|
if (!isset($_SESSION['user']))
|
|
die(header('Location: index.php'));
|
|
|
|
$user = unserialize($_SESSION['user']);
|
|
$user->access();
|
|
if (!$user->admin && in_array($user->acceso, ['n']))
|
|
die(header('Location: main.php?error=1'));
|
|
|
|
$user->print_to_log('Consultar horario');
|
|
|
|
$write = $user->admin || in_array($user->acceso, ['w']);
|
|
// var_dump($user);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>Consultar horario |
|
|
<?= $user->facultad['facultad'] ?>
|
|
</title>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="content-type" content="text/plain; charset=UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<?php include_once "import/html_css_files.php"; ?>
|
|
<script src="js/jquery.min.js"></script>
|
|
<script src="js/bootstrap/bootstrap.min.js"></script>
|
|
|
|
</head>
|
|
<!-- -->
|
|
|
|
<body style="display: block;">
|
|
<?php
|
|
include('include/constantes.php');
|
|
include("import/html_header.php");
|
|
html_header("Consultar horario", "Sistema de gestión de checador");
|
|
?>
|
|
<?= "<!-- $user -->" ?>
|
|
<main class="container px-4 mt-4" id="app" v-cloak @vue:mounted="mounted">
|
|
<section id="message"></section>
|
|
<?php require('import/periodo.php') ?>
|
|
|
|
<!-- Nuevo horario -->
|
|
<form>
|
|
<div class="form-group">
|
|
<div class="form-box">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
<!-- Horario is a (table with one a cell) within a table
|
|
7:15 - 8:45, 8:45 - 10:15, 10:30 - 12:00, 12:00 - 13:30
|
|
de lunes a viernes, a excepción de que tenga sábado
|
|
-->
|
|
<div id="btn-excel-horario" class="mb-2 float-right hidden">
|
|
<button class="btn btn-outline-secondary " title="Exportar a Excel">
|
|
<span class="ing-descarga ing-fw"></span> Exportar a Excel
|
|
</button>
|
|
</div>
|
|
<!-- Table responsive -->
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered table-sm table-responsive-sm" id="table-horario">
|
|
<thead class="thead-dark">
|
|
<tr id="headers">
|
|
<th scope="col" class="text-center">Hora</th>
|
|
<th scope="col" class="text-center">Lunes</th>
|
|
<th scope="col" class="text-center">Martes</th>
|
|
<th scope="col" class="text-center">Miércoles</th>
|
|
<th scope="col" class="text-center">Jueves</th>
|
|
<th scope="col" class="text-center">Viernes</th>
|
|
<th scope="col" class="text-center">Sábado</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="horario">
|
|
<tr>
|
|
<th scope="row" class="text-center">7:00</th>
|
|
<td> Hola </td>
|
|
<td> Hola </td>
|
|
<td> Hola </td>
|
|
<td> Hola </td>
|
|
<td> Hola </td>
|
|
<td> Hola </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
<? require_once "import/html_footer.php" ?>
|
|
<script src="js/scrollables.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
|
|
<script src="js/moment.js"></script>
|
|
|
|
</html>
|