This commit is contained in:
@@ -67,6 +67,7 @@ try {
|
||||
[
|
||||
'horarios' => $db->query(
|
||||
"SELECT " . implode(', ', $columns) . <<<SQL
|
||||
, NULL, NULL, 0 AS tipo
|
||||
FROM horario_view
|
||||
inner JOIN periodo using(periodo_id)
|
||||
JOIN bloque_horario ON (bloque_horario.hora_inicio, bloque_horario.hora_fin) OVERLAPS (horario_view.horario_hora, horario_view.horario_hora + horario_view.duracion)
|
||||
@@ -90,7 +91,7 @@ try {
|
||||
// 'query' => $db->getLastQuery(),
|
||||
'reposiciones' => $db->query(
|
||||
'SELECT ' . implode(', ', $columns) . <<<SQL
|
||||
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal
|
||||
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal, 1 AS tipo
|
||||
FROM horario_view
|
||||
inner JOIN periodo using(periodo_id)
|
||||
NATURAL JOIN registro
|
||||
|
||||
27
test.php
27
test.php
@@ -1,27 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Consultar horario |
|
||||
<?= $user->facultad['facultad'] ?? 'General' ?>
|
||||
</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"; ?>
|
||||
</head>
|
||||
<!-- -->
|
||||
|
||||
<body style="display: block;">
|
||||
adiós a todos mis amigos
|
||||
<?
|
||||
# throw an uncaught exception
|
||||
//throw new Exception('Uncaught Exception');
|
||||
?>
|
||||
</body>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/bootstrap/bootstrap.min.js"></script>
|
||||
<script>
|
||||
</script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user