@@ 240-244 (lines=5) @@ | ||
237 | ||
238 | // Show the pages before the current one. (prev page 1 ... >6 7< [8] 9 10 ... 15 next page) |
|
239 | for ($nCont = $PageContiguous; $nCont >= 1; $nCont--) |
|
240 | if ($start >= $num_per_page * $nCont) |
|
241 | { |
|
242 | $tmpStart = $start - $num_per_page * $nCont; |
|
243 | $pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
|
244 | } |
|
245 | ||
246 | // Show the current page. (prev page 1 ... 6 7 >[8]< 9 10 ... 15 next page) |
|
247 | if (!$start_invalid && empty($show['all_selected'])) |
|
@@ 255-259 (lines=5) @@ | ||
252 | // Show the pages after the current one... (prev page 1 ... 6 7 [8] >9 10< ... 15 next page) |
|
253 | $tmpMaxPages = (int) (($max_value - 1) / $num_per_page) * $num_per_page; |
|
254 | for ($nCont = 1; $nCont <= $PageContiguous; $nCont++) |
|
255 | if ($start + $num_per_page * $nCont <= $tmpMaxPages) |
|
256 | { |
|
257 | $tmpStart = $start + $num_per_page * $nCont; |
|
258 | $pageindex .= sprintf($base_link, $tmpStart, $tmpStart / $num_per_page + 1); |
|
259 | } |
|
260 | ||
261 | // Show the '...' part near the end. (prev page 1 ... 6 7 [8] 9 10 >...< 15 next page) |
|
262 | if ($start + $num_per_page * ($PageContiguous + 1) < $tmpMaxPages) |