Merged
This commit is contained in:
@@ -198,26 +198,6 @@ try{
|
||||
"per"=>$per["periodo_id"]
|
||||
);
|
||||
}else{//reposición
|
||||
<<<<<<< HEAD
|
||||
|
||||
if(in_array($row["ClaveCarrera"] , $arreglo_claves)){
|
||||
//busca yyyy-mm-dd hh:mm:ss en la cadena
|
||||
if (preg_match("/\d{4}-\d{2}-\d{2} de \d{2}:\d{2}:\d{2}/", $row["Observaciones"], $matches)) {
|
||||
$fecha_orig = str_replace(" de", "", $matches[0]);
|
||||
$fecha_nueva = $row["FechaStr"]." ".$row["HoraInicio"];
|
||||
$hora_fin_nueva = $row["HoraFin"];
|
||||
if($debug){
|
||||
echo "<br>SELECT * FROM fi_reposicion_sgu('$fecha_orig', '".$hora_fin_nueva."','".$fecha_nueva."' ,'".$row["ClaveProfesor"]."', ".$per["periodo_id"].", ".$row["IdEspacio"].")";
|
||||
}else{
|
||||
$db->query('SELECT * FROM fi_reposicion_sgu(:fecha_orig, :hora_fin, :fecha_rep, :prof, :per, :salon)',
|
||||
[":fecha_orig"=>$fecha_orig, ":hora_fin"=>$hora_fin_nueva, ":fecha_rep"=>$fecha_nueva, ":prof"=>$row["ClaveProfesor"], ":per"=>$per["periodo_id"], ":salon"=>$row["IdEspacio"] ]);
|
||||
$log_desc .="SELECT * FROM fi_reposicion_sgu($fecha_orig, ".$fecha_nueva.", ".$row["ClaveProfesor"].", ".$per["periodo_id"].") ## ";
|
||||
}
|
||||
}else{
|
||||
if($debug)
|
||||
echo "No se encontró fecha y hora en: ".$row["Observaciones"]."<br>";
|
||||
}
|
||||
=======
|
||||
try{
|
||||
if(in_array($row["ClaveCarrera"] , $arreglo_claves)){
|
||||
//busca yyyy-mm-dd hh:mm:ss en la cadena
|
||||
@@ -239,7 +219,6 @@ try{
|
||||
}
|
||||
}catch(Exception $e){
|
||||
echo "ERROR Reposición<br>".$e->getMessage();
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -308,13 +287,6 @@ try{
|
||||
//Update fecha_fin
|
||||
$log_desc = "";
|
||||
foreach($elementos_no_en_sgu as $row){
|
||||
<<<<<<< HEAD
|
||||
if($debug){
|
||||
echo "<br>SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].");";
|
||||
}else{
|
||||
$db->query('SELECT * FROM fu_horario_deshabilita(:horario)', [":horario"=>$row["horario_id"]]);
|
||||
$log_desc .="SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].") ## ";
|
||||
=======
|
||||
try{
|
||||
if($debug){
|
||||
echo "<br>SELECT * FROM fu_horario_deshabilita(".$row["horario_id"].");";
|
||||
@@ -324,7 +296,6 @@ try{
|
||||
}
|
||||
}catch(Exception $e){
|
||||
echo "ERROR horario deshabilita<br>".$e->getMessage();
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
}
|
||||
}
|
||||
if(!$debug && !empty($log_desc)){
|
||||
|
||||
Reference in New Issue
Block a user