@@ 646-650 (lines=5) @@ | ||
643 | ||
644 | // Show the pages before the current one. (prev page 1 ... >6 7< [8] 9 10 ... 15 next page) |
|
645 | for ($nCont = $PageContiguous; $nCont >= 1; $nCont--) |
|
646 | if ($start >= $num_per_page * $nCont) |
|
647 | { |
|
648 | $tmpStart = $start - $num_per_page * $nCont; |
|
649 | $pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
|
650 | } |
|
651 | ||
652 | // Show the current page. (prev page 1 ... 6 7 >[8]< 9 10 ... 15 next page) |
|
653 | if (!$start_invalid) |
|
@@ 661-665 (lines=5) @@ | ||
658 | // Show the pages after the current one... (prev page 1 ... 6 7 [8] >9 10< ... 15 next page) |
|
659 | $tmpMaxPages = (int) (($max_value - 1) / $num_per_page) * $num_per_page; |
|
660 | for ($nCont = 1; $nCont <= $PageContiguous; $nCont++) |
|
661 | if ($start + $num_per_page * $nCont <= $tmpMaxPages) |
|
662 | { |
|
663 | $tmpStart = $start + $num_per_page * $nCont; |
|
664 | $pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
|
665 | } |
|
666 | ||
667 | // Show the '...' part near the end. (prev page 1 ... 6 7 [8] 9 10 >...< 15 next page) |
|
668 | if ($start + $num_per_page * ($PageContiguous + 1) < $tmpMaxPages) |