summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-09-04 09:57:42 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-09-04 09:57:42 +0000
commitc9fd4cff09effeba36b74d51d1b7c2ee6e8b932e (patch)
tree4fdabb5b623d98d6985ee6ede65fbcb8a8dfe67e /views/mods
parent10d29b89cc400374cf31a034344e8554ed528e97 (diff)
- Pager (Backend) optimiert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6444 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_gutschein/index.phtml40
-rw-r--r--views/mods/mod_kundenverwaltung/index.phtml34
2 files changed, 10 insertions, 64 deletions
diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml
index be7f668..e311152 100644
--- a/views/mods/mod_gutschein/index.phtml
+++ b/views/mods/mod_gutschein/index.phtml
@@ -49,25 +49,11 @@
</nav>
- <?php if ($this->view['pages'] > 1) { ?>
- <nav class="pagination_wrap">
- <ul class="pagination">
- <?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">&laquo;</span></a></li>
- <?php } ?>
- <?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
- <li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
- <?php } ?>
- <?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">&raquo;</span></a></li>
- <?php } ?>
- </ul>
- </nav>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- <?php echo $this->writeBackendMessage(); ?>
+ <?php echo $this->writeBackendMessage(); ?>
+
+ <div class="wpsg_clear"></div>
+
+ <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
<div class="content">
@@ -132,21 +118,7 @@
</div>
- <?php if ($this->view['pages'] > 1) { ?>
- <nav class="pagination_wrap pagination_wrap_bottom">
- <ul class="pagination">
- <?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">&laquo;</span></a></li>
- <?php } ?>
- <?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
- <li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
- <?php } ?>
- <?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">&raquo;</span></a></li>
- <?php } ?>
- </ul>
- </nav>
- <?php } ?>
+ <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
<?php } else { ?>
diff --git a/views/mods/mod_kundenverwaltung/index.phtml b/views/mods/mod_kundenverwaltung/index.phtml
index 766426a..e04bd2b 100644
--- a/views/mods/mod_kundenverwaltung/index.phtml
+++ b/views/mods/mod_kundenverwaltung/index.phtml
@@ -49,21 +49,7 @@
</nav>
- <?php if ($this->view['pages'] > 1) { ?>
- <nav class="pagination_wrap">
- <ul class="pagination">
- <?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">&laquo;</span></a></li>
- <?php } ?>
- <?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
- <li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
- <?php } ?>
- <?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">&raquo;</span></a></li>
- <?php } ?>
- </ul>
- </nav>
- <?php } ?>
+ <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
<div class="wpsg_clear"></div>
@@ -122,21 +108,9 @@
</tbody>
</table>
- <?php if ($this->view['pages'] > 1) { ?>
- <nav class="pagination_wrap pagination_wrap_bottom">
- <ul class="pagination">
- <?php if ($this->view['arFilter']['page'] > 1) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">&laquo;</span></a></li>
- <?php } ?>
- <?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
- <li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
- <?php } ?>
- <?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
- <li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">&raquo;</span></a></li>
- <?php } ?>
- </ul>
- </nav>
- <?php } ?>
+ <div style="margin-right:-15px;">
+ <?php $this->render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?>
+ </div>
<?php } else { ?>