26 lines
908 B
PHTML
26 lines
908 B
PHTML
|
<?php if ($this->pageCount): ?>
|
||
|
<div class="paginationControl">
|
||
|
<!-- Previous page link -->
|
||
|
<?php if (isset($this->previous)): ?>
|
||
|
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->previous;?>)">< Previous</a>
|
||
|
<?php else: ?>
|
||
|
<span class="disabled">< Previous</span>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<!-- Numbered page links -->
|
||
|
<?php foreach ($this->pagesInRange as $page): ?>
|
||
|
<?php if ($page != $this->current): ?>
|
||
|
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $page;?>)"><?= $page; ?></a>
|
||
|
<?php else: ?>
|
||
|
<span class="current"><?= $page; ?></span>
|
||
|
<?php endif; ?>
|
||
|
<?php endforeach; ?>
|
||
|
|
||
|
<!-- Next page link -->
|
||
|
<?php if (isset($this->next)): ?>
|
||
|
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->next;?>)">Next ></a>
|
||
|
<?php else: ?>
|
||
|
<span class="disabled">Next ></span>
|
||
|
<?php endif; ?>
|
||
|
</div>
|
||
|
<?php endif; ?>
|