'index.php', 'name' => get_lang('Administration')]; $htmlHeadXtra[] = ''; // displaying the header Display :: display_header($tool_name); $link_add_group = ''. Display::getMdiIcon(ObjectIcon::MULTI_ELEMENT, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Enrolment by classes')).get_lang('Enrolment by classes').''; echo Display::toolbarAction('subscribe', [$link_add_group]); $form = new FormValidator('subscribe_user2course'); $form->addElement('header', '', $tool_name); $form->display(); //checking for extra field with filter on $extra_field_list = UserManager::get_extra_fields(); $new_field_list = []; if (is_array($extra_field_list)) { foreach ($extra_field_list as $extra_field) { // if is enabled to filter and is a "'; echo ''; foreach ($new_field['data'] as $option) { $checked = ''; if (ExtraField::FIELD_TYPE_TAG == $fieldtype) { if (isset($_POST[$varname])) { if ($_POST[$varname] == $option['tag']) { $checked = 'selected="true"'; } } echo ''; } else { if (isset($_POST[$varname])) { if ($_POST[$varname] == $option[1]) { $checked = 'selected="true"'; } } echo ''; } } echo ''; $extraHidden = ExtraField::FIELD_TYPE_TAG == $fieldtype ? '' : ''; echo $extraHidden; echo '  '; } echo ''; echo '

'; } } ?>


:
  :

: