This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. */ include "setup.php"; if (session_status() === PHP_SESSION_NONE) { my_session_start(); } $login=false; if (isset($_SESSION["login"])) { $login = $_SESSION["login"]; } if ($login !== "admin" and $login !== "user") { header("Location: index.php"); exit; } ?>
Add students Show students Logout Logout
$nachname, $vorname ($matrikelnummer)"; echo "

Status

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach ($students[$matrikelnummer]["noten"] as $fach => $notenliste) { $fachname = $pfp[$fach]["name"]; if (!empty($notenliste["klausur"])) { $klausurnote = $notenliste["klausur"]; } else { $klausurnote = "-"; } if (!empty($notenliste["labor"])) { $labornote = $notenliste["labor"]; } else { $labornote = "-"; } echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
FachLaborKlausur
$fachname$labornote$klausurnote
"; echo "

Gruppen

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach ($groups as $semestername => $fachliste) { foreach ($fachliste as $fachname => $gruppenliste) { foreach ($gruppenliste as $gname => $teilnehmerliste) { if (in_array($matrikelnummer, $teilnehmerliste)) { $tnnamensliste = ""; foreach ($teilnehmerliste as $tnmat) { if (empty($tnnamensliste)) { $tnnamensliste = $students[$tnmat]["nachname"]; } else { $tnnamensliste = $tnnamensliste.", ".$students[$tnmat]["nachname"]; } } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } } } } echo "
SemesterFachGruppennameTeilnehmer
$semestername$fachname$gname$tnnamensliste
"; echo "

Geschichte

"; echo ""; echo ""; echo ""; echo ""; foreach ($students[$matrikelnummer]["history"] as $ereignis) { echo ""; echo ""; echo ""; } echo "
Ereignisliste
$ereignis
"; } else { echo "

Error

"; } ?>