XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
navigation_pages.php
Go to the documentation of this file.
1 <div class="pagination pagination-mini">
2  <ul>
3  <?php if($showing): ?><span class="showing"><?php echo $showing_legend; ?></span><?php endif; ?>
4  <?php if($caption): ?><span class="pages_caption"><?php _e('Pages:','rmcommon'); ?></span><?php endif; ?>
5  <?php if($total_pages>$steps && $current_page>$steps-1): ?>
6  <li><a href="<?php echo str_replace('{PAGE_NUM}', 1, $url); ?>" title="<?php _e('First Page','rmcommon'); ?>"><?php _e('First','twop6'); ?></a></li>
7  <?php endif; ?>
8 
9  <?php if($current_page>1): ?>
10  <li><a href="<?php echo str_replace('{PAGE_NUM}', $current_page-1, $url); ?>" title="<?php _e('Previous Page','rmcommon'); ?>"><?php _e('&laquo;','twop6'); ?></a></li>
11  <?php endif; ?>
12 
13  <?php
14  for($i=$start;$i<=$end;$i++):
15  if ($i==$current_page):
16  ?>
17  <li class="disabled"><span><?php echo $i; ?></span></li>
18  <?php else: ?>
19  <li><a href="<?php echo str_replace('{PAGE_NUM}', $i, $url); ?>" title="<?php echo sprintf(__('Page %u','rmcommon'), $i); ?>"><?php echo $i; ?></a></li>
20  <?php
21  endif;
23  ?>
24 
25  <?php if($current_page<$total_pages): ?>
26  <li><a href="<?php echo str_replace('{PAGE_NUM}', $current_page+1, $url); ?>" title="<?php _e('Next Page','rmcommon'); ?>"><?php _e('&raquo;','twop6'); ?></a></li>
27  <?php endif; ?>
28 
29  <?php if($total_pages>$steps && $current_page<($total_pages-$steps)+2): ?>
30  <li><a href="<?php echo str_replace('{PAGE_NUM}', $total_pages, $url); ?>" title="<?php _e('Last Page','rmcommon'); ?>"><?php _e('Last','twop6'); ?></a></li>
31  <?php endif; ?>
32  </ul>
33 </div>