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)){
|
||||
|
||||
@@ -199,19 +199,6 @@ $periodos = $db
|
||||
</thead>
|
||||
<tbody>
|
||||
<script>
|
||||
<<<<<<< HEAD
|
||||
async function borrarMateria(id) {
|
||||
const url = `https://paad.lci.ulsa.mx/postgrest/materia?materia_id=eq.${id}`;
|
||||
|
||||
const options = {
|
||||
method: 'DELETE',
|
||||
};
|
||||
const response = await fetch(url, options)
|
||||
.then(response => response.json())
|
||||
|
||||
console.log(`Materia borrada: ${id}`);
|
||||
|
||||
=======
|
||||
async function copiar_seleccionados() {
|
||||
// en mi clipboard quiero (join con ,)
|
||||
const materias_seleccionadas = Array.from(document.querySelectorAll("input[name='materia_id']:checked"))
|
||||
@@ -221,19 +208,15 @@ $periodos = $db
|
||||
await navigator.clipboard.writeText(materias_seleccionadas);
|
||||
// mostrar mensaje de éxito
|
||||
alert("Copiado al portapapeles");
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
}
|
||||
</script>
|
||||
<?php foreach ($materias as $materia) { ?>
|
||||
<tr>
|
||||
<td>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<input type="checkbox" name="materia_id" id="materia_id"
|
||||
value="<?= $materia["materia_id"] ?>">
|
||||
</td>
|
||||
<td>
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
<?= $materia["materia_id"] ?>
|
||||
<small>
|
||||
(
|
||||
@@ -255,14 +238,6 @@ $periodos = $db
|
||||
</small>
|
||||
<?= $materia["facultad_nombre"] ?>
|
||||
</td>
|
||||
<<<<<<< HEAD
|
||||
<td>
|
||||
<button
|
||||
onclick="borrarMateria(<?= $materia['materia_id'] ?>)">Borrar</button>
|
||||
<button>Editar</button>
|
||||
</td>
|
||||
=======
|
||||
>>>>>>> 7688f1aac1824c234bc5f19b154e9ad1f4808d4f
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user