| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <p><?php
- if (!isset($separator)) {
- if (defined('PAGINATOR_SEPARATOR')) {
- $separator = PAGINATOR_SEPARATOR;
- } else {
- $separator = ' ';
- }
- }
- if (empty($first)) {
- $first = __('first');
- }
- if (empty($last)) {
- $last = __('last');
- }
- if (empty($prev)) {
- $prev = __('previous');
- }
- if (empty($next)) {
- $next = __('next');
- }
- if (!empty($reverse)) {
- $tmp = $first;
- $first = $last;
- $last = $tmp;
-
- $tmp = $prev;
- $prev = $next;
- $next = $tmp;
- }
- if (!empty($addArrows)) {
- $prev = '« '.$prev;
- $next .= ' »';
- }
- echo $this->Paginator->counter(array(
- 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total')));?></p>
- <div class="paging">
- <?php echo $this->Paginator->first($first, array());?>
- <?php echo $separator; ?>
- <?php echo $this->Paginator->prev($prev, array(), null, array('class' => 'disabled'));?>
- <?php echo $separator; ?>
- <?php echo $this->Paginator->numbers(array('separator' => $separator));?>
- <?php echo $separator; ?>
- <?php echo $this->Paginator->next($next, array(), null, array('class' => 'disabled'));?>
- <?php echo $separator; ?>
- <?php echo $this->Paginator->last($last, array());?>
- </div>
|