'.$paramResult.'
'; return false; } $formcourse = getById('tbl_formcourses',checkParamId('id')); if($formcourse['status'] == 200) { ?>

" required>
" name="name" required class="form-control">
" name="lessons" class="form-control">
Klassenzuweisung"; echo "
"; $assignedClasses = getAssignedItems('tbl_assign_formcourses_classes', $formcourse['data']['id'], 'class_id', 'formcourses_id'); if (!empty($classesform)) { $groupedClasses = array(); foreach ($classesform as $class) { $level = $class['sek']; $groupedClasses[$level][] = $class; } foreach ($groupedClasses as $level => $levelClasses) { echo "
"; echo "
"; echo "
"; echo "$level"; echo "
"; // Checkbox für "Alle Auswählen" $idSafeLevel = str_replace(['.', ' '], '_', $level); $idSafeLevel = preg_replace('/[^A-Za-z0-9_]/', '', $idSafeLevel); echo "
"; echo ""; echo ""; echo "
"; foreach ($levelClasses as $class) { $classId = $class['id']; $className = htmlspecialchars($class['classDisplayName']); $isChecked = in_array($classId, $assignedClasses) ? 'checked' : ''; echo "
"; echo ""; echo ""; echo "
"; } echo "
"; echo "
"; } echo "
"; } else { echo "
Diesem Formularabschnitt sind keine Klassen zugewiesen.
"; } ?>
' . $formcourse["message"] . ""; } ?>