bug 735439

This commit is contained in:
Marc Delisle
2003-05-10 11:18:05 +00:00
parent c19783a34e
commit 51a589ca6d
2 changed files with 13 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-05-10 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php3: bug 735439: if too many page numbers,
show just the pages near the current page
2003-05-10 Michal Cihar <nijel@users.sourceforge.net>
* libraries/common.lib.php3: Whole tab is now link.
* libraries/display_export.lib.php3: Disable CSV export for multiple

View File

@@ -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."&amp;session_max_rows=".$session_max_rows."&amp;disp_direction=".$disp_direction."&amp;repeat_cells=".$repeat_cells."&amp;goto=".$goto."&amp;dontlimitchars=".$dontlimitchars."&amp;".PMA_generate_common_url($db, $table)."&amp;"; ?>')">
<?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 {