|
@@ 629-633 (lines=5) @@
|
| 626 |
|
|
| 627 |
|
// Show the pages before the current one. (prev page 1 ... >6 7< [8] 9 10 ... 15 next page) |
| 628 |
|
for ($nCont = $PageContiguous; $nCont >= 1; $nCont--) |
| 629 |
|
if ($start >= $num_per_page * $nCont) |
| 630 |
|
{ |
| 631 |
|
$tmpStart = $start - $num_per_page * $nCont; |
| 632 |
|
$pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
| 633 |
|
} |
| 634 |
|
|
| 635 |
|
// Show the current page. (prev page 1 ... 6 7 >[8]< 9 10 ... 15 next page) |
| 636 |
|
if (!$start_invalid) |
|
@@ 644-648 (lines=5) @@
|
| 641 |
|
// Show the pages after the current one... (prev page 1 ... 6 7 [8] >9 10< ... 15 next page) |
| 642 |
|
$tmpMaxPages = (int) (($max_value - 1) / $num_per_page) * $num_per_page; |
| 643 |
|
for ($nCont = 1; $nCont <= $PageContiguous; $nCont++) |
| 644 |
|
if ($start + $num_per_page * $nCont <= $tmpMaxPages) |
| 645 |
|
{ |
| 646 |
|
$tmpStart = $start + $num_per_page * $nCont; |
| 647 |
|
$pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
| 648 |
|
} |
| 649 |
|
|
| 650 |
|
// Show the '...' part near the end. (prev page 1 ... 6 7 [8] 9 10 >...< 15 next page) |
| 651 |
|
if ($start + $num_per_page * ($PageContiguous + 1) < $tmpMaxPages) |