This commit is contained in:
Marc Delisle
2008-07-26 19:07:27 +00:00
parent 739ea70e08
commit f17860205d

View File

@@ -2022,7 +2022,7 @@ function PMA_buttonOrImage($button_name, $button_class, $image_name, $text,
* @param string current page number * @param string current page number
* @param string number of total pages * @param string number of total pages
* @param string If the number of pages is lower than this * @param string If the number of pages is lower than this
* variable, no pages will be ommitted in * variable, no pages will be omitted in
* pagination * pagination
* @param string How many rows at the beginning should always * @param string How many rows at the beginning should always
* be shown? * be shown?
@@ -2061,12 +2061,11 @@ function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
} }
// garvin: Based on the number of results we add the specified // garvin: Based on the number of results we add the specified
// $percent percentate to each page number, // $percent percentage to each page number,
// so that we have a representing page number every now and then to // so that we have a representing page number every now and then to
// immideately jump to specific pages. // immediately jump to specific pages.
// As soon as we get near our currently chosen page ($pageNow - // As soon as we get near our currently chosen page ($pageNow -
// $range), every page number will be // $range), every page number will be shown.
// shown.
$i = $sliceStart; $i = $sliceStart;
$x = $nbTotalPage - $sliceEnd; $x = $nbTotalPage - $sliceEnd;
$met_boundary = false; $met_boundary = false;
@@ -2077,7 +2076,7 @@ function PMA_pageselector($url, $rows, $pageNow = 1, $nbTotalPage = 1,
$i++; $i++;
$met_boundary = true; $met_boundary = true;
} else { } else {
// We add the percentate increment to our current page to // We add the percentage increment to our current page to
// hop to the next one in range // hop to the next one in range
$i = $i + floor($nbTotalPage / $percent); $i = $i + floor($nbTotalPage / $percent);