if (isset($_GET['keyword']) && $_GET['keyword']) {
    $interbreadcrumb[] = array("url" => "subscribe_user.php?type=" . Security::remove_XSS($_GET['type']), "name" => $tool_name);
    $tool_name = get_lang('SearchResults');
}
Display::display_header($tool_name, "User");
// Build search-form
echo '<div class="actions">';
$actions = null;
if (isset($_GET['keyword'])) {
    $actions .= '<a href="subscribe_user.php?type=' . $type . '">' . Display::return_icon('clean_group.gif') . ' ' . get_lang('ClearSearchResults') . '</a>';
}
if (isset($_GET['subscribe_user_filter_value']) and !empty($_GET['subscribe_user_filter_value'])) {
    $actions .= '<a href="subscribe_user.php?type=' . $type . '">' . Display::return_icon('clean_group.gif') . ' ' . get_lang('ClearFilterResults') . '</a>';
}
if (api_get_setting('ProfilingFilterAddingUsers') == 'true') {
    display_extra_profile_fields_filter($type);
}
// Build search-form
$form = new FormValidator('search_user', 'get', '', '', null, false);
$renderer = $form->defaultRenderer();
$renderer->setElementTemplate('<span>{element}</span> ');
$form->add_textfield('keyword', '', false);
$form->addElement('hidden', 'type', $type);
$form->addElement('style_submit_button', 'submit', get_lang('SearchButton'), 'class="search"');
$form->addElement('static', 'additionalactions', null, $actions);
$form->display();
echo '</div>';
/*
		MAIN SECTION
*/
$current_session_id = api_get_session_id();
示例#2
0
        $url = api_get_path(WEB_CODE_PATH) . 'user/user.php?' . api_get_cidreq() . '';
        break;
    case COURSEMANAGER:
        $url = api_get_path(WEB_CODE_PATH) . 'user/user.php?' . api_get_cidreq() . '&type=' . COURSEMANAGER;
        break;
}
echo Display::url(Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM), $url);
$actions = '';
if (isset($keyword)) {
    $actions .= '<a href="subscribe_user.php?type=' . $type . '&">' . Display::return_icon('clean_group.gif') . ' ' . get_lang('ClearSearchResults') . '</a>';
}
if (isset($_GET['subscribe_user_filter_value']) and !empty($_GET['subscribe_user_filter_value'])) {
    $actions .= '<a href="subscribe_user.php?type=' . $type . '">' . Display::return_icon('clean_group.gif') . ' ' . get_lang('ClearFilterResults') . '</a>';
}
if (api_get_setting('ProfilingFilterAddingUsers') == 'true') {
    display_extra_profile_fields_filter();
}
// Build search-form
$form = new FormValidator('search_user', 'get', '', '', null, FormValidator::LAYOUT_INLINE);
$form->addText('keyword', '', false);
$form->addElement('hidden', 'type', $type);
$form->addButtonSearch(get_lang('Search'));
$form->addElement('static', 'additionalactions', null, $actions);
$form->display();
echo '</div>';
$option = $type == COURSEMANAGER ? 2 : 1;
echo UserManager::getUserSubscriptionTab($option);
// Display table
$table->display();
Display::display_footer();
/*		SHOW LIST OF USERS  */