From d0fce093ef2f16fc2897baf7ddf93b6f969890bf Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Fri, 30 Jan 2026 17:59:23 +0100 Subject: initial commit The first prototype where you can upload student data from moodle and change the marks. In student view the results for the logged in person can be viewed. --- admin-show.php | 154 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 admin-show.php (limited to 'admin-show.php') diff --git a/admin-show.php b/admin-show.php new file mode 100644 index 0000000..10394d8 --- /dev/null +++ b/admin-show.php @@ -0,0 +1,154 @@ + + + + + +

Listenansicht

+ + + + + + + +
+ Add students + + Show students + + Logout +
+ +"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +//echo ""; +echo ""; +//echo "
SemesterPrüfungGruppeNachnameVornameLaborKlausur
"; +echo ""; +echo ""; +echo ""; +echo ""; +echo ""; +echo "
"; + +//echo "
"; +//echo ""; +foreach ($groups as $semester => $pruefungen) { + if ($selectedsemester === "alle" or $selectedsemester === $semester) { + foreach ($pruefungen as $pruefung => $groupsperpruefung) { + if ($selectedpruefung === "alle" or $selectedpruefung === $pruefung) { + foreach ($groupsperpruefung as $groupname => $teilnehmerarray) { + foreach ($teilnehmerarray as $matrikelnummer) { + echo ""; + echo ""; + echo ""; + echo ""; + $student = $students[$matrikelnummer]; + $nachname = $student["nachname"]; + $vorname = $student["vorname"]; + if (!empty($student["noten"][$pruefung]["klausur"])) { + $klausurnote = $student["noten"][$pruefung]["klausur"]; + } else { + $klausurnote = ""; + } + if (!empty($student["noten"][$pruefung]["labor"])) { + $labornote = $student["noten"][$pruefung]["labor"]; + } else { + $labornote = ""; + } + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + } + } + } + } +} +echo "
$semester $pruefung $groupname $nachname $vorname
"; +echo ""; +echo "
"; +?> + + + \ No newline at end of file -- cgit v1.2.3