Correción horarios
This commit is contained in:
@@ -55,7 +55,7 @@ try {
|
||||
$RelevantColumns = implode(', ', $relevant_columns);
|
||||
|
||||
$_SESSION['fecha_inicio'] = $_GET['fecha'] ?? $_GET['fecha_inicio'] ?? date('Y-m-d');
|
||||
$_SESSION['fecha_fin'] = date('Y-m-d H:i:s', strtotime($baseDate ?? 'now'));
|
||||
$_SESSION['fecha_fin'] = date('Y-m-d 23:59:59', strtotime($baseDate ?? 'now'));
|
||||
|
||||
$fechas = [
|
||||
'fecha_inicio' => $_SESSION['fecha_inicio'],
|
||||
@@ -110,7 +110,7 @@ try {
|
||||
CASE
|
||||
WHEN registro.registro_retardo THEN 'warning'
|
||||
ELSE 'primary'
|
||||
END AS color
|
||||
END AS color,
|
||||
FROM horario
|
||||
JOIN fechas USING (horario_id)
|
||||
JOIN profesor USING (profesor_id)
|
||||
|
||||
@@ -25,13 +25,13 @@ try {
|
||||
:registro_fecha_ideal as registro_fecha_ideal,
|
||||
horario_hora,
|
||||
horario_fin,
|
||||
profesor_nombre,
|
||||
COALESCE(materia_asignacion.materia_asignacion_profesor, profesor.profesor_nombre) AS profesor_nombre,
|
||||
profesor_correo,
|
||||
profesor_clave,
|
||||
horario.facultad_id,
|
||||
materia_nombre as materia,
|
||||
COALESCE(materia_asignacion.materia_asignacion_materia, materia.materia_nombre) AS materia,
|
||||
facultad_nombre as facultad,
|
||||
carrera_nombre as carrera,
|
||||
COALESCE(materia_asignacion.materia_asignacion_carrera, carrera.carrera_nombre) AS carrera,
|
||||
registro_fecha,
|
||||
registro_fecha_supervisor,
|
||||
estado_color,
|
||||
@@ -49,11 +49,15 @@ try {
|
||||
ELSE 'primary'
|
||||
END AS color
|
||||
FROM horario
|
||||
NATURAL JOIN facultad
|
||||
NATURAL JOIN materia
|
||||
NATURAL JOIN carrera
|
||||
NATURAL JOIN horario_profesor
|
||||
NATURAL JOIN profesor
|
||||
JOIN facultad ON facultad.facultad_id = COALESCE(horario.facultad_id, 0)
|
||||
|
||||
LEFT JOIN materia USING (MATERIA_ID)
|
||||
LEFT JOIN carrera USING (carrera_id)
|
||||
|
||||
LEFT JOIN materia_asignacion USING (horario_id)
|
||||
|
||||
LEFT JOIN registro ON
|
||||
REGISTRO.HORARIO_ID = HORARIO.HORARIO_ID AND
|
||||
REGISTRO.PROFESOR_ID = HORARIO_PROFESOR.PROFESOR_ID AND
|
||||
|
||||
Reference in New Issue
Block a user