Add basing pagin support in HTML catalog

This commit is contained in:
Sébastien Lucas 2012-09-21 13:36:52 +02:00
parent 96312d71cf
commit be4bcf3e9f
2 changed files with 46 additions and 0 deletions

View file

@ -218,6 +218,30 @@
}
?>
</div>
<?php
if ($config['cops_max_item_per_page'] != -1 && $currentPage->totalNumber != -1) {
$prevLink = $currentPage->getPrevLink ();
$nextLink = $currentPage->getNextLink ();
?>
<div>
<?php
if (!is_null ($prevLink)) {
?>
<a href="<?php echo $prevLink->hrefXhtml () ?>" >Prev</a>
<?php
}
?>
<?php
if (!is_null ($nextLink)) {
?>
<a href="<?php echo $nextLink->hrefXhtml () ?>" >Next</a>
<?php
}
?>
</div>
<?php
}
?>
</div>
</body>
</html>