Actualiza fecha clase

This commit is contained in:
2024-03-22 12:30:50 -06:00
parent c3f5d04d49
commit 32f3ad0375
2 changed files with 3 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ if($horario!= null && $tipo !=3)
$materia = $horario_rs["materia_id"]; $materia = $horario_rs["materia_id"];
$dia = $horario_rs["horario_dia"]; $dia = $horario_rs["horario_dia"];
$fecha_orig = $horario_rs["horario_fecha_inicio"];
$hora_orig = $horario_rs["horario_hora"]; $hora_orig = $horario_rs["horario_hora"];
}else{ }else{
$dia = date('w', strtotime($fecha)); $dia = date('w', strtotime($fecha));
@@ -99,7 +100,7 @@ switch($tipo){
$dia_new = date('w', strtotime($fecha_new)); $dia_new = date('w', strtotime($fecha_new));
$fecha_nueva = date('d/m/Y', strtotime($fecha_new)); $fecha_nueva = date('d/m/Y', strtotime($fecha_new));
$fecha_clase = date('d/m/Y', strtotime($fecha_cambio)); $fecha_clase = date('d/m/Y', strtotime($fecha_orig));
break; break;
} }

View File

@@ -784,7 +784,7 @@ if($user->periodo_id!= ""){
$("#modal_aprobar #rep-comentarios").text(result["comentario"]); $("#modal_aprobar #rep-comentarios").text(result["comentario"]);
$('#modal_aprobar #rep-alumnos').text(result["alumnos"]); $('#modal_aprobar #rep-alumnos').text(result["alumnos"]);
if(result["supervisor_nombre"]!=""){ if(result["supervisor_nombre"]!="" && result["supervisor_nombre"]!=null){
$("#supervisor").show(); $("#supervisor").show();
$("#modal_aprobar #rep-sup").text(result["supervisor_nombre"]); $("#modal_aprobar #rep-sup").text(result["supervisor_nombre"]);
}else{ }else{