|
|
@ -617,20 +617,19 @@ if (!empty($action)) { |
|
|
|
|
|
|
|
|
|
|
|
// Create a search-box |
|
|
|
// Create a search-box |
|
|
|
$form = new FormValidator('search_simple','get', '', '', array('class' => 'form-search'),false); |
|
|
|
$form = new FormValidator('search_simple','get', '', '', array('class' => 'form-search'),false); |
|
|
|
$renderer =& $form->defaultRenderer(); |
|
|
|
/*$renderer =& $form->defaultRenderer(); |
|
|
|
$renderer->setElementTemplate('<span>{element}</span> '); |
|
|
|
$renderer->setElementTemplate('<span>{element}</span> ');*/ |
|
|
|
$form->addElement('text','keyword',get_lang('keyword'), 'size="25"'); |
|
|
|
$form->addElement('text', 'keyword', get_lang('keyword')); |
|
|
|
$form->addElement('style_submit_button', 'submit',get_lang('Search'),'class="btn"'); |
|
|
|
$form->addElement('button', 'submit' ,get_lang('Search')); |
|
|
|
$form->addElement('advanced_settings', 'user_list_filter', get_lang('AdvancedSearch')); |
|
|
|
$form->addElement('advanced_settings', 'user_list_filter', get_lang('AdvancedSearch')); |
|
|
|
$actions = ''; |
|
|
|
$actions = ''; |
|
|
|
if (api_is_platform_admin()) { |
|
|
|
if (api_is_platform_admin()) { |
|
|
|
$actions .= '<span style="float:right;">'. |
|
|
|
$actions .= '<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_add.php">'. |
|
|
|
'<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_add.php">'. |
|
|
|
Display::return_icon('new_user.png',get_lang('AddUsers'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
Display::return_icon('new_user.png',get_lang('AddUsers'),'',ICON_SIZE_MEDIUM).'</a>'. |
|
|
|
|
|
|
|
'</span>'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$actions .= $form->return_form(); |
|
|
|
$actions .= $form->return_form(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset ($_GET['keyword'])) { |
|
|
|
if (isset ($_GET['keyword'])) { |
|
|
|
$parameters = array ('keyword' => Security::remove_XSS($_GET['keyword'])); |
|
|
|
$parameters = array ('keyword' => Security::remove_XSS($_GET['keyword'])); |
|
|
|
} elseif (isset ($_GET['keyword_firstname'])) { |
|
|
|
} elseif (isset ($_GET['keyword_firstname'])) { |
|
|
|