bug #1739253 about the new page number in navi, thanks to Juergen Wind for the suggestions

This commit is contained in:
Marc Delisle
2007-06-20 12:14:18 +00:00
parent 7d750dded7
commit 8b94c4cf83
3 changed files with 12 additions and 3 deletions

View File

@@ -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']
);
}
}

View File

@@ -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
. ' <select name="goToPage" onchange="goToUrl(this, \''
. $url . '\');">' . "\n";
if ($nbTotalPage < $showAll) {
@@ -2118,6 +2119,7 @@ function PMA_dbPageSelector($databases_count, $pos, $_url_params, $script, $fram
if ($GLOBALS['cfg']['MaxDbList']
&& $GLOBALS['cfg']['MaxDbList'] < $databases_count) {
echo $GLOBALS['strPageNumber'] . '<br />';
// Move to the beginning or to the previous page
if ($pos > 0) {
// loic1: patch #474210 from Gosha Sakovich - part 1

View File

@@ -36,6 +36,7 @@ form {
display: inline;
}
select#select_server,
select#lightm_db {
width: 100%;
}