westdc-zf1/application/default/views/scripts/data/pagination_related.phtml

28 lines
1010 B
PHTML
Raw Normal View History

<?php if ($this->pageCount): ?>
<div class="pagination pagination-mini">
<ul>
<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
<li><a href="javascript:void(0);" onclick="related(<?php echo $this->previous;?>)">&laquo;</a></li>
<?php else: ?>
<li class="disabled"><a href="javascript:;">&laquo;</a></li>
<?php endif; ?>
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
<?php if ($page != $this->current): ?>
<li><a href="javascript:void(0);" onclick="related(<?php echo $page;?>)"><?= $page; ?></a></li>
<?php else: ?>
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
<?php endif; ?>
<?php endforeach; ?>
<!-- Next page link -->
<?php if (isset($this->next)): ?>
<li><a href="javascript:void(0);" onclick="related(<?php echo $this->next;?>)">&raquo;</a></li>
<?php else: ?>
<li class="disabled"><a href="javascript:;">&raquo;</a></li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>