|
|
|
@ -103,6 +103,10 @@ if (is_array($extra_field_list)) { |
|
|
|
|
|
|
|
|
|
$usergroup = new UserGroup(); |
|
|
|
|
$id = intval($_GET['id']); |
|
|
|
|
|
|
|
|
|
if (empty($id)) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
|
} |
|
|
|
|
$first_letter_user = ''; |
|
|
|
|
|
|
|
|
|
if (isset($_POST['form_sent']) && $_POST['form_sent']) { |
|
|
|
@ -163,15 +167,12 @@ $filters = array( |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$searchForm = new FormValidator('search', 'get', api_get_self().'?id='.$id); |
|
|
|
|
//$searchForm->addElement('html', '<table>'); |
|
|
|
|
$searchForm->add_header(get_lang('FilterUser')); |
|
|
|
|
$searchForm->add_header(get_lang('AdvancedSearch')); |
|
|
|
|
$renderer =& $searchForm->defaultRenderer(); |
|
|
|
|
|
|
|
|
|
$searchForm->addElement('hidden', 'id', $id); |
|
|
|
|
foreach ($filters as $param) { |
|
|
|
|
//$searchForm->addElement('html', '<tr>'); |
|
|
|
|
$searchForm->addElement($param['type'], $param['name'], $param['label']); |
|
|
|
|
//$searchForm->addElement('html', '</tr>'); |
|
|
|
|
} |
|
|
|
|
$searchForm->addElement('button', 'submit', get_lang('Search')); |
|
|
|
|
//$searchForm->addElement('html', '</table>'); |
|
|
|
|