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