Kursanmeldungen

'.$paramResult.'
'; return false; } ?>
Für diese Kategorie werden keine Anmeldungen benötigt.'; } else { ?>
0, '2_semester' => 0 ]; $enrolledStudents[$course['id']] = 0; } foreach ($students as $student) { foreach ($courses as $course) { $data = getStudentCourseData($student['id'], $course['id']); if ($data !== null) { if ($data['status'] === 'Genehmigt') { if (($data['semester'] ?? '') === '1. Semester') { $approvedStudents[$course['id']]['1_semester']++; } elseif (($data['semester'] ?? '') === '2. Semester') { $approvedStudents[$course['id']]['2_semester']++; } } if ($data['status'] === 'Angemeldet') { $enrolledStudents[$course['id']]++; } } } } return ['approved' => $approvedStudents, 'enrolled' => $enrolledStudents]; } $counts = countApprovedAndEnrolledStudents($students, $courses); foreach ($courses as $course) { echo ''; } } ?> '; // Name des Schülers in der ersten Spalte echo ''; echo ''; $class = getById('tbl_classes',$student['class']); echo ''; $allAssignedCourses = getAllAssignedCoursesByCategory($student['id'], $category['data']['id']); $numAssignedCourses = count($allAssignedCourses); echo ''; // Spalten für die Kurse mit Zuweisungen foreach ($courses as $course) { // Abfrage, um den Status des Schülers für diesen Kurs zu erhalten $studentID = $student['id']; $courseID = $course['id']; $data = getStudentCourseData($studentID, $courseID); if(($category['data']['registration'] == 'custom') && ($course['registration'] == 'no')) { echo ''; } else{ ?> '; } ?>
Vorname Nachname Klasse Anz. ' . $course['name'] ;//' '; if(($category['data']['registration'] == 'yes' && $category['data']['confirmation'] == 'yes' && $category['data']['type'] == 'semester') || ($category['data']['registration'] == 'yes' && $category['data']['confirmation'] == 'custom' && $category['data']['type'] == 'semester') || ($category['data']['registration'] == 'custom' && $category['data']['type'] == 'semester')){ echo '
Von Schülern ausgewählt: ' . $counts['enrolled'][$course['id']] . '
1. Sem. Soll: (' . $course['minstudents_1sem'] . ' - ' . $course['maxstudents_1sem'] . ')
1. Sem. Ist: ' . $counts['approved'][$course['id']]['1_semester'] . '
2. Sem. Soll: (' . $course['minstudents_2sem'] . ' - ' . $course['maxstudents_2sem'] . ')
2. Sem. Ist: ' . $counts['approved'][$course['id']]['2_semester'] . '
' . $student['firstname'] . '' . $student['lastname'] . '' . $class['data']['sek'] . ' ' . $class['data']['type'] . ' - ' . $class['data']['name'] .'' . $numAssignedCourses . '
> > >
> >
> > >
'.$category['message'].''; } ?>