|
0):
$O = $_GET['O'] - $_GET['PP'];
if ($_GET['O'] < $_GET['PP']) {
$O = 0;
}
?>
">
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;
print (($currentpage-5) > 1) ? '...' : '';
# 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;
}
print ($pages > $morepages) ? '...' : '';
?>
0): ?>
'>
|