6444 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Pager im Backend
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
|
|
|
9 |
<?php if ($this->view['pages'] > 1) { ?>
|
|
|
10 |
<nav class="pagination_wrap">
|
|
|
11 |
<ul class="pagination">
|
|
|
12 |
|
|
|
13 |
<?php $offset = 5; ?>
|
|
|
14 |
|
|
|
15 |
<?php if ($this->view['arFilter']['page'] > 2) { $offset --; ?>
|
|
|
16 |
<li><a onclick="return goPage(1);" href="#" aria-label="<?php echo __('Erste Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-backward"></i></span></a></li>
|
|
|
17 |
<?php } ?>
|
|
|
18 |
|
|
|
19 |
<?php if ($this->view['arFilter']['page'] > 1) { $offset --; ?>
|
|
|
20 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-backward"></i></span></a></li>
|
|
|
21 |
<?php } ?>
|
|
|
22 |
|
|
|
23 |
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
|
|
|
24 |
|
|
|
25 |
<?php if ($i > $this->view['arFilter']['page'] - $offset && $i < $this->view['arFilter']['page'] + $offset) { ?>
|
|
|
26 |
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
|
|
|
27 |
<?php } else if ($i == $this->view['arFilter']['page'] - $offset || $i == $this->view['arFilter']['page'] + $offset) { ?>
|
|
|
28 |
<li class=""><span class="more">..</span></li>
|
|
|
29 |
<?php } ?>
|
|
|
30 |
|
|
|
31 |
<?php } ?>
|
|
|
32 |
|
|
|
33 |
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
|
|
|
34 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-play"></i></span></a></li>
|
|
|
35 |
<?php } ?>
|
|
|
36 |
|
|
|
37 |
<?php if ($this->view['arFilter']['page'] + 2 <= $this->view['pages']) { ?>
|
|
|
38 |
<li><a onclick="return goPage(<?php echo $this->view['pages']; ?>);" href="#" aria-label="<?php echo __('Letzte Seite'); ?>"><span aria-hidden="true"><i class="glyphicon glyphicon-step-forward"></i></span></a></li>
|
|
|
39 |
<?php } ?>
|
|
|
40 |
|
|
|
41 |
</ul>
|
|
|
42 |
</nav>
|
|
|
43 |
<?php } ?>
|