From 8b94c4cf839b5d0c932db8cb0d9c8e1db9596b86 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 20 Jun 2007 12:14:18 +0000 Subject: [PATCH] bug #1739253 about the new page number in navi, thanks to Juergen Wind for the suggestions --- browse_foreigners.php | 8 +++++++- libraries/common.lib.php | 6 ++++-- themes/original/css/theme_left.css.php | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/browse_foreigners.php b/browse_foreigners.php index 82187e782..9b10288f0 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -74,7 +74,13 @@ if (isset($disp_row) && is_array($disp_row)) { '&', $session_max_rows, $pageNow, - $nbTotalPage + $nbTotalPage, + 200, + 5, + 5, + 20, + 10, + $GLOBALS['strPageNumber'] ); } } diff --git a/libraries/common.lib.php b/libraries/common.lib.php index f2ee8556c..7a75fc2a8 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2021,15 +2021,16 @@ function PMA_buttonOrImage($button_name, $button_class, $image_name, $text, * @param string Near the current page, how many pages should * be considered "nearby" and displayed as * well? + * @param string The prompt to display (sometimes empty) * * @access public * @author Garvin Hicking (pma@supergarv.de) */ function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1, $showAll = 200, $sliceStart = 5, $sliceEnd = 5, $percent = 20, - $range = 10) + $range = 10, $prompt = '') { - $gotopage = $GLOBALS['strPageNumber'] + $gotopage = $prompt . '