From 7f25d41bf913302b8186f7a74e77ee690adc70ec Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Fri, 17 Apr 2009 11:56:23 +0200 Subject: [PATCH] [svn r19824] actions consistency --- main/user/subscribe_user.php | 25 ++++++++++++++++++++----- main/user/userInfo.php | 19 ++++++++++++++++--- 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/main/user/subscribe_user.php b/main/user/subscribe_user.php index 0081bbb086..3359ed049a 100644 --- a/main/user/subscribe_user.php +++ b/main/user/subscribe_user.php @@ -1,4 +1,4 @@ - "user.php", "name" => get_lang("Users")); +if ($_POST['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"); -api_display_tool_title($tool_name); +// api_display_tool_title($tool_name); /* ============================================================================== @@ -416,11 +421,19 @@ function active_filter($active, $url_params, $row) { // Build search-form echo '
'; + +$actions .= ''.Display::return_icon('members.gif').' '.get_lang('BackToUserList').''; +if ($_POST['keyword']) +{ + $actions .= ''.Display::return_icon('clean_group.gif').' '.get_lang('ClearSearchResults').''; +} + $form = new FormValidator('search_user', 'POST',api_get_self().'?type='.$_REQUEST['type'],'',null,false); $renderer = & $form->defaultRenderer(); $renderer->setElementTemplate('{element} '); $form->add_textfield('keyword', '', false); $form->addElement('style_submit_button', 'submit', get_lang('SearchButton'), 'class="search"'); +$form->addElement('static','additionalactions',null,$actions); $form->display(); echo '
'; @@ -442,13 +455,15 @@ $table->set_header($col ++, get_lang('reg'), false); $table->set_column_filter($col -1, 'reg_filter'); $table->set_form_actions(array ('subscribe' => get_lang('reg')), 'user'); -// Display table -$table->display(); - if ( !empty($_POST['keyword'])) { $keyword_name=Security::remove_XSS($_POST['keyword']); echo '
'.get_lang('SearchResultsFor').' '.$keyword_name.'
'; } + +// Display table +$table->display(); + + /* ============================================================================== FOOTER diff --git a/main/user/userInfo.php b/main/user/userInfo.php index d13f4d7f84..be3553764d 100644 --- a/main/user/userInfo.php +++ b/main/user/userInfo.php @@ -1,4 +1,4 @@ -".get_lang('BackUser')."\n"; +echo '
'; +echo ''.Display::return_icon('members.gif').get_lang('BackUser').''; +if (!is_numeric($_GET['editMainUserInfo'])) +{ + echo ''.Display::return_icon('edit.gif').get_lang('EditUser').''; +} +else +{ + echo ''.Display::return_icon('edit.gif').get_lang('ViewUser').''; +} +echo ''.Display::return_icon('statistics.gif').get_lang('UserStatistics').''; +echo '
'; + + if ($displayMode == "viewDefEdit") { /*>>>>>>>>>>>> CATEGORIES DEFINITIONS : EDIT <<<<<<<<<<<<*/