'.$paramResult.'
'; return false; } $formcontent = getById('tbl_formcontents',checkParamId('id')); if($formcontent['status'] == 200) { $form = getById('tbl_forms',$formcontent["data"]["form_id"]); ?>

" required>
Klassenzuweisung"; echo "
"; $assignedClasses = getAssignedItems('tbl_assign_formcontents_classes', $formcontent['data']['id'], 'class_id', 'formcontent_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 Formular sind keine Klassen zugewiesen.
"; } ?>

Kurse

0) { foreach($formcontents as $formcontentEntry) { ?>
Keine Kurse vorhanden
' . $formcontent["message"] . ""; } ?>