Limmat/admin/students-delete-archived-with-active-classes.php
2025-01-07 03:45:35 +01:00

17 lines
412 B
PHP

<?php
require '../config/function.php';
$archivedStudents = getArchivedStudentsWithActiveClasses();
$studentDeleteRes = deleteArchivedStudentsWithActiveClasses($archivedStudents);
if($studentDeleteRes)
{
redirect('archive.php','Schüler:innen wurden erfolgreich entfernt','success');
}
else
{
redirect('archive.php','Ein Fehler ist aufgetreten','danger');
}
?>