summaryrefslogtreecommitdiffstats
path: root/core/templates/part.pagenavi.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/part.pagenavi.php')
-rw-r--r--core/templates/part.pagenavi.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/core/templates/part.pagenavi.php b/core/templates/part.pagenavi.php
new file mode 100644
index 00000000000..0602b793882
--- /dev/null
+++ b/core/templates/part.pagenavi.php
@@ -0,0 +1,31 @@
+<center>
+ <table class="pager" cellspacing="0" cellpadding="0" border="0">
+ <tr>
+ <td width="1">
+ <?php if($_['page']>0):?>
+ <span class="pagerbutton1"><a href="<?php echo $_['url'].($_['page']-1);?>"><?php echo $l->t( 'prev' ); ?></a>&nbsp;&nbsp;</span>
+ <?php endif; ?>
+ </td>
+ <td>
+ <?php if ($_['pagestart']>0):?>
+ ...
+ <?php endif;?>
+ <?php for ($i=$_['pagestart']; $i < $_['pagestop'];$i++):?>
+ <?php if ($_['page']!=$i):?>
+ <a href="<?php echo $_['url'].$i;?>"><?php echo $i+1;?>&nbsp;</a>
+ <?php else:?>
+ <?php echo $i+1;?>&nbsp;
+ <?php endif?>
+ <?php endfor;?>
+ <?php if ($_['pagestop']<$_['pagecount']):?>
+ ...
+ <?php endif;?>
+ </td>
+ <td width="1">
+ <?php if(($_['page']+1)<$_['pagecount']):?>
+ <span class="pagerbutton2"><a href="<?php echo $_['url'].($_['page']+1);?>"><?php echo $l->t( 'next' ); ?></a></span>
+ <?php endif; ?>
+ </td>
+ </tr>
+ </table>
+</center> \ No newline at end of file