|
0) { $pages = ceil($total / $_GET['PP']); } if ($pages > 1) { if ($_GET['O'] > 0) { $currentpage = ceil(($_GET['O'] + 1) / $_GET['PP']); } else { $currentpage = 1; } $morepages = $currentpage + 5; # Display links for more search results. for ($i = ($currentpage - 5); $i <= $morepages && $i <= $pages; $i++) { if ($i < 1) { $i = 1; } $pagestart = ($i - 1) * $_GET['PP']; if ($i <> $currentpage) : ?> [$i] "; endif; } # Indicate that there are more pages. if ($pages > $morepages) { echo "... '; } if ($_GET['O'] > 0): $O = $_GET['O'] - $_GET['PP']; if ($_GET['O'] < $_GET['PP']) { $O = 0; } ?> "> 0): ?> '> |