bug #1739253 about the new page number in navi, thanks to Juergen Wind for the suggestions
This commit is contained in:
@@ -74,7 +74,13 @@ if (isset($disp_row) && is_array($disp_row)) {
|
|||||||
'&',
|
'&',
|
||||||
$session_max_rows,
|
$session_max_rows,
|
||||||
$pageNow,
|
$pageNow,
|
||||||
$nbTotalPage
|
$nbTotalPage,
|
||||||
|
200,
|
||||||
|
5,
|
||||||
|
5,
|
||||||
|
20,
|
||||||
|
10,
|
||||||
|
$GLOBALS['strPageNumber']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -2021,15 +2021,16 @@ function PMA_buttonOrImage($button_name, $button_class, $image_name, $text,
|
|||||||
* @param string Near the current page, how many pages should
|
* @param string Near the current page, how many pages should
|
||||||
* be considered "nearby" and displayed as
|
* be considered "nearby" and displayed as
|
||||||
* well?
|
* well?
|
||||||
|
* @param string The prompt to display (sometimes empty)
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @author Garvin Hicking (pma@supergarv.de)
|
* @author Garvin Hicking (pma@supergarv.de)
|
||||||
*/
|
*/
|
||||||
function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
|
function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
|
||||||
$showAll = 200, $sliceStart = 5, $sliceEnd = 5, $percent = 20,
|
$showAll = 200, $sliceStart = 5, $sliceEnd = 5, $percent = 20,
|
||||||
$range = 10)
|
$range = 10, $prompt = '')
|
||||||
{
|
{
|
||||||
$gotopage = $GLOBALS['strPageNumber']
|
$gotopage = $prompt
|
||||||
. ' <select name="goToPage" onchange="goToUrl(this, \''
|
. ' <select name="goToPage" onchange="goToUrl(this, \''
|
||||||
. $url . '\');">' . "\n";
|
. $url . '\');">' . "\n";
|
||||||
if ($nbTotalPage < $showAll) {
|
if ($nbTotalPage < $showAll) {
|
||||||
@@ -2118,6 +2119,7 @@ function PMA_dbPageSelector($databases_count, $pos, $_url_params, $script, $fram
|
|||||||
|
|
||||||
if ($GLOBALS['cfg']['MaxDbList']
|
if ($GLOBALS['cfg']['MaxDbList']
|
||||||
&& $GLOBALS['cfg']['MaxDbList'] < $databases_count) {
|
&& $GLOBALS['cfg']['MaxDbList'] < $databases_count) {
|
||||||
|
echo $GLOBALS['strPageNumber'] . '<br />';
|
||||||
// Move to the beginning or to the previous page
|
// Move to the beginning or to the previous page
|
||||||
if ($pos > 0) {
|
if ($pos > 0) {
|
||||||
// loic1: patch #474210 from Gosha Sakovich - part 1
|
// loic1: patch #474210 from Gosha Sakovich - part 1
|
||||||
|
@@ -36,6 +36,7 @@ form {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select#select_server,
|
||||||
select#lightm_db {
|
select#lightm_db {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user