This commit is contained in:
Cloud User
2024-03-06 18:16:15 -06:00
parent 0e123fe70f
commit 4b8ca02a2a
14 changed files with 7 additions and 496 deletions

View File

@@ -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>