bug 735439
This commit is contained in:
@@ -362,7 +362,15 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
<select name="goToPage" onChange="goToUrl(this, '<?php echo "sql.php3?sql_query=".$encoded_query."&session_max_rows=".$session_max_rows."&disp_direction=".$disp_direction."&repeat_cells=".$repeat_cells."&goto=".$goto."&dontlimitchars=".$dontlimitchars."&".PMA_generate_common_url($db, $table)."&"; ?>')">
|
||||
|
||||
<?php
|
||||
for ($i=1; $i<=$nbTotalPage; $i++){
|
||||
if ($nbTotalPage < 200) {
|
||||
$firstPage = 1;
|
||||
$lastPage = $nbTotalPage;
|
||||
} else {
|
||||
$range = 20;
|
||||
$firstPage = ($pageNow - $range < 1 ? 1 : $pageNow - $range);
|
||||
$lastPage = ($pageNow + $range > $nbTotalPage ? $nbTotalPage : $pageNow + $range);
|
||||
}
|
||||
for ($i=$firstPage; $i<=$lastPage; $i++){
|
||||
if ($i == $pageNow) {
|
||||
$selected = 'selected="selected"';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user