| Fecha | +Aviso | +Estado | +
|---|
From 85991cf67482220fa2a53cd4aff4630354423758 Mon Sep 17 00:00:00 2001
From: Alejandro Rosales
-
-
+
-
+
+
-
- Fecha
-
+
+
+
-
+
-
-
-
+
+ Fecha
+
- Salón
- Profesor
+ Salón
+ Profesor
- Horario
- Registro
- Supervisor
- if ($user->acceso == 'w') { ?>
- Justificar
- } ?>
-
-
- No hay clases en este horario
-
-
+
+
+ {{ registro.registro_fecha_ideal }}
-
- {{ registro.salon }}
-
- {{ registro.profesor_clave }}
- {{ registro.profesor_nombre }}
-
-
+ Horario
+ Registro
+ Supervisor
+ if ($user->acceso == 'w') { ?>
+ Justificar
+ } ?>
+
+
+ No hay clases en este horario
+
+
-
- {{ registro.registro_fecha_ideal }}
+
+ {{ registro.salon }}
+
+ {{ registro.profesor_clave }}
+ {{ registro.profesor_nombre }}
+
+
- {{ registro.horario_hora?.slice(0,5) }} -
- {{registro.horario_fin?.slice(0,5) }}
-
-
-
-
-
-
-
- if ($user->acceso == 'w') { ?>
+ {{ registro.horario_hora?.slice(0,5) }} -
+ {{registro.horario_fin?.slice(0,5) }}
+
-
- } ?>
-
+
+ if ($user->acceso == 'w') { ?>
+
+
+ } ?>
+
| Fecha | +Aviso | +Estado | +
|---|
diff --git a/avisos.php b/avisos.php index e277d73..d2481b7 100644 --- a/avisos.php +++ b/avisos.php @@ -1,265 +1,61 @@ -access(); -if($user->acceso == null){ - header('Location: main.php?error=1'); -}else{ - $user->print_to_log('Avisos'); -} -$fac = $user->facultad['facultad_id']; -if($user->admin){ - $fac = null; -} -$limit = 20; -if(isset($_POST['filter_fecha']) && $_POST['filter_fecha'] != ""){ - $filter_fecha = $_POST['filter_fecha']; -} -else{ - $filter_fecha = null; -} -if(isset($_GET['pag'])){ - $pag = $_GET['pag'] - 1; -}else{ - $pag = 0; -} -if($user->admin){ - $count = query("SELECT count(1) FROM fs_aviso(null, :fecha, :facultad_id, null, 0, null)", [':fecha' => $filter_fecha, ':facultad_id' => $fac], true); - $fs_avisos = query("SELECT * FROM fs_aviso(null, :fecha, :facultad_id, :limite, :offset, null)", [':fecha' => $filter_fecha, ':facultad_id' => $fac, ':limite' => $limit, ':offset' => $pag * $limit], false); -}else{ - $count = query("SELECT count(1) FROM fs_aviso(null, :fecha, :facultad_id, null, 0, true)", [':fecha' => $filter_fecha, ':facultad_id' => $fac], true); - $fs_avisos = query("SELECT * FROM fs_aviso(null, :fecha, :facultad_id, :limite, :offset, true)", [':fecha' => $filter_fecha, ':facultad_id' => $fac, ':limite' => $limit, ':offset' => $pag * $limit], false); -} -$paginas = ceil($count['count'] / $limit); -?>
-
- - +
+ + + +
+