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="rmc_pages_navigation_container">
2 
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  <a href="<?php echo str_replace('{PAGE_NUM}', 1, $url); ?>" title="<?php _e('First Page','rmcommon'); ?>" class="image"><img src="<?php echo RMCURL; ?>/images/first.gif" alt="<?php _e('First Page','rmcommon'); ?>" /></a>
7  <?php endif; ?>
8 
9  <?php if($current_page>1): ?>
10  <a href="<?php echo str_replace('{PAGE_NUM}', $current_page-1, $url); ?>" title="<?php _e('Previous Page','rmcommon'); ?>" class="image"><img src="<?php echo RMCURL; ?>/images/prev.gif" alt="<?php _e('Previous Page','rmcommon'); ?>" /></a>
11  <?php endif; ?>
12 
13  <?php if($start>1): ?><span class="page_separators"><img src="<?php echo RMCURL; ?>/images/points.gif" alt="" /></span><?php endif; ?>
14 
15  <?php
16  for($i=$start;$i<=$end;$i++):
17  if ($i==$current_page):
18  ?>
19  <span class="current_page"><?php echo $i; ?></span>
20  <?php else: ?>
21  <a href="<?php echo str_replace('{PAGE_NUM}', $i, $url); ?>" title="<?php echo sprintf(__('Page %u','rmcommon'), $i); ?>"><?php echo $i; ?></a>
22  <?php
23  endif;
25  ?>
26 
27  <?php if($start<=$total_pages-$steps): ?><span class="page_separators"><img src="<?php echo RMCURL; ?>/images/points.gif" alt="" /></span><?php endif; ?>
28 
29  <?php if($current_page<$total_pages): ?>
30  <a href="<?php echo str_replace('{PAGE_NUM}', $current_page+1, $url); ?>" title="<?php _e('Next Page','rmcommon'); ?>" class="image"><img src="<?php echo RMCURL; ?>/images/next.gif" alt="<?php _e('Next Page','rmcommon'); ?>" /></a>
31  <?php endif; ?>
32 
33  <?php if($total_pages>$steps && $current_page<($total_pages-$steps)+2): ?>
34  <a href="<?php echo str_replace('{PAGE_NUM}', $total_pages, $url); ?>" title="<?php _e('Last Page','rmcommon'); ?>" class="image"><img src="<?php echo RMCURL; ?>/images/last.gif" alt="<?php _e('Last Page','rmcommon'); ?>" /></a>
35  <?php endif; ?>
36 
37 </div>