';
echo '
';
- // Build search-form
- $form = new FormValidator('search_user', 'get', '', '', null, FormValidator::LAYOUT_INLINE);
- $form->addText('keyword', '', false);
- $form->addButtonSearch(get_lang('SearchButton'));
- $form->display();
+ // Build search-form
+ $form = new FormValidator(
+ 'search_user',
+ 'get',
+ api_get_self().'?type='.$type,
+ '',
+ null,
+ FormValidator::LAYOUT_INLINE
+ );
+ $form->addHidden('type', $type);
+ $form->addText('keyword', '', false);
+ $form->addElement('hidden', 'cidReq', api_get_course_id());
+ $form->addButtonSearch(get_lang('SearchButton'));
+ $form->display();
echo '
';
echo '
';
echo '';
$allowTutors = api_get_setting('allow_tutors_to_assign_students_to_session');
- if (api_is_allowed_to_edit() && $allowTutors == 'true') {
+ if (api_is_allowed_to_edit() && $allowTutors === 'true') {
$actions .= '