patch #1873188 [GUI] Making db pager work when js is disabled

This commit is contained in:
Marc Delisle
2008-01-25 17:42:23 +00:00
parent 294fac0719
commit 9d633c5c82
2 changed files with 5 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1871038 [import] Notice: undefined variable first_sql_delimiter - bug #1871038 [import] Notice: undefined variable first_sql_delimiter
- bug #1873110 [export] Problem exporting with a LIMIT clause - bug #1873110 [export] Problem exporting with a LIMIT clause
- bug #1871164 [GUI] Empty and navigation frame synch. - bug #1871164 [GUI] Empty and navigation frame synch.
- patch #1873188 [GUI] Making db pager work when js is disabled,
thanks to Jürgen Wind - windkiel
2.11.4.0 (2008-01-12) 2.11.4.0 (2008-01-12)
- bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE - bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE

View File

@@ -2059,7 +2059,7 @@ function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
$range = 10, $prompt = '') $range = 10, $prompt = '')
{ {
$gotopage = $prompt $gotopage = $prompt
. ' <select name="goToPage" onchange="goToUrl(this, \'' . ' <select name="pos" onchange="goToUrl(this, \''
. $url . '\');">' . "\n"; . $url . '\');">' . "\n";
if ($nbTotalPage < $showAll) { if ($nbTotalPage < $showAll) {
$pages = range(1, $nbTotalPage); $pages = range(1, $nbTotalPage);
@@ -2123,7 +2123,7 @@ function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
$gotopage .= ' <option ' . $selected . ' value="' . (($i - 1) * $rows) . '">' . $i . '</option>' . "\n"; $gotopage .= ' <option ' . $selected . ' value="' . (($i - 1) * $rows) . '">' . $i . '</option>' . "\n";
} }
$gotopage .= ' </select>'; $gotopage .= ' </select><noscript><input type="submit" value="' . $GLOBALS['strGo'] . '" /></noscript>';
return $gotopage; return $gotopage;
} // end function } // end function
@@ -2175,7 +2175,7 @@ function PMA_listNavigator($count, $pos, $_url_params, $script, $frame, $max_cou
. $caption2 . '</a>'; . $caption2 . '</a>';
} }
echo '<form action="./' . $script . '" method="post">' . "\n"; echo "\n", '<form action="./', basename($script), '" method="post" target="', $frame, '">', "\n";
echo PMA_generate_common_hidden_inputs($_url_params); echo PMA_generate_common_hidden_inputs($_url_params);
echo PMA_pageselector( echo PMA_pageselector(
$script . PMA_generate_common_url($_url_params) . '&', $script . PMA_generate_common_url($_url_params) . '&',