Add new files and make code improvements

This commit is contained in:
2024-03-06 15:14:39 +00:00
parent 113ac2aedd
commit 0a712e1864
55 changed files with 9390 additions and 973 deletions

View File

@@ -7,7 +7,9 @@ $user or die("Error: no se pudo cargar el usuario");
<div class="col-12">
<?php
$target = $target ?? strtok($_SERVER["REQUEST_URI"], '?');
$niveles = $db->get("nivel");
$niveles = $db
->orderBy('nivel_nombre')
->get("nivel");
// collect facultad_id's with facultad from $periodos
?>
@@ -33,7 +35,8 @@ $user or die("Error: no se pudo cargar el usuario");
WHERE
nivel_id = :nivel_id AND
(facultad_id = :facultad_id OR :facultad_id IS NULL)
GROUP BY periodo_id, periodo_nombre',
GROUP BY periodo_id, periodo_nombre, periodo_fecha_inicio
ORDER BY periodo_fecha_inicio DESC',
[
':nivel_id' => $nivel['nivel_id'],
':facultad_id' => $user->facultad['facultad_id']