bug 735439
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$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>
|
2003-05-10 Michal Cihar <nijel@users.sourceforge.net>
|
||||||
* libraries/common.lib.php3: Whole tab is now link.
|
* libraries/common.lib.php3: Whole tab is now link.
|
||||||
* libraries/display_export.lib.php3: Disable CSV export for multiple
|
* libraries/display_export.lib.php3: Disable CSV export for multiple
|
||||||
|
@@ -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)."&"; ?>')">
|
<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
|
<?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) {
|
if ($i == $pageNow) {
|
||||||
$selected = 'selected="selected"';
|
$selected = 'selected="selected"';
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user