include_once $relPath . 'BrowseUtility.inc'; include_once 'menu.inc'; include_once 'search.inc'; require_login(); output_header(_('Authors')); echo_menu(); ?> <h1 align="center">Authors</h1> <?php $message = @$_GET['message']; if (isset($message)) { echo '<center>' . html_safe($message) . '</center><br />'; } $sortUtility = new SortUtility('authors_listing'); prepare_search(); echo_search_form(); ?> <h2 align="center"><?php echo get_search_title(); ?> </h2> <?php $can_edit = user_is_PM() || user_is_authors_db_manager(); $result = search(); $browseUtility = new BrowseUtility($result); // "Displaying entries x-y of z" echo '<p align="center">' . $browseUtility->getDisplayingString() . '</p>'; // "Previous" and/or "Next" links?
$dialogBox->success(get_lang('Deletion of the user was done sucessfully')); } else { $dialogBox->error(get_lang('You can not change your own settings!')); } break; case 'rqDelete': if (empty($userIdReq)) { $dialogBox->error(get_lang('User id missing')); } else { $user_properties = user_get_properties($userIdReq); if (is_array($user_properties)) { $dialogBox->question(get_lang('Are you sure to delete user %firstname %lastname', array('%firstname' => $user_properties['firstname'], '%lastname' => $user_properties['lastname'])) . '<br/><br/>' . "\n" . '<a href="' . $_SERVER['PHP_SELF'] . '?cmd=exDelete&user_id=' . $userIdReq . '&offset=' . $offset . $addToURL . '">' . get_lang('Yes') . '</a>' . ' | ' . '<a href="' . $_SERVER['PHP_SELF'] . '">' . get_lang('No') . '</a>' . "\n"); } } } $searchInfo = prepare_search(); $isSearched = $searchInfo['isSearched']; $addtoAdvanced = $searchInfo['addtoAdvanced']; if (count($searchInfo['isSearched'])) { $isSearched = array_map('strip_tags', $isSearched); $isSearchedHTML = implode('<br />', $isSearched); } else { $isSearchedHTML = ''; } //get the search keyword, if any $search = isset($_REQUEST['search']) ? $_REQUEST['search'] : ''; $sql = get_sql_filtered_user_list(); $myPager = new claro_sql_pager($sql, $offset, $userPerPage); if (array_key_exists('sort', $_GET)) { $dir = array_key_exists('dir', $_GET) && $_GET['dir'] == SORT_DESC ? SORT_DESC : SORT_ASC; $sortKey = strip_tags($_GET['sort']);