summaryrefslogtreecommitdiff
path: root/views/order/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/order/index.phtml')
-rw-r--r--views/order/index.phtml33
1 files changed, 32 insertions, 1 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml
index 1a7850d..afa5697 100644
--- a/views/order/index.phtml
+++ b/views/order/index.phtml
@@ -53,7 +53,7 @@
<?php } */ ?>
- <?php if ($this->hasMod('wpsg_mod_productgroups')) { ?>
+ <?php if ($this->hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_order_filter') === '1') { ?>
<?php $arProductgroups = $this->callMod('wpsg_mod_productgroups', 'getAllProductGroups'); ?>
<?php echo wpsg_drawForm_Select('filter[productgroup_id]', __('Bestellungen mit Produkten aus Produktgruppe'), ['0' => __('Alle', 'wpsg')] + $arProductgroups, wpsg_getStr($this->view['arFilter']['productgroup_id'])); ?>
@@ -184,7 +184,25 @@
</nav>
<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
+
+ <?php if ($this->hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_order_filter') === '1') { $arPG = $this->callMod('wpsg_mod_productgroups', 'getAllProductGroups', [true]); ?>
+ <div class="container-fluid">
+ <div class="row">
+ <div class="pagination_wrap wpsg_status_link_wrap">
+
+ <ul class="pagination">
+ <?php foreach ($arPG as $pg_id => $pg_name) { ?>
+ <li class="<?php echo ((wpsg_getStr($this->view['arFilter']['productgroup_id']) == $pg_id)?'active':''); ?>"><a href="#" onclick="return wpsg_setFilterProductgroup('<?php echo $pg_id; ?>');"><?php echo $pg_name; ?></a></li>
+ <?php } ?>
+ </ul>
+
+ </div>
+ </div>
+ </div>
+
+ <?php } ?>
+
<div class="pagination_wrap wpsg_status_link_wrap">
<ul class="pagination">
@@ -405,7 +423,20 @@
jQuery('.col_set_checkbox').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } );
}
+
+ <?php if ($this->hasMod('wpsg_mod_productgroups') && $this->get_option('wpsg_mod_productgroups_order_filter') === '1') { ?>
+ function wpsg_setFilterProductgroup(pgroup_id) {
+
+ jQuery('#filterproductgroup_id').val(pgroup_id);
+
+ jQuery('#seite').val(1);
+ jQuery('#filter_form').submit();
+ return false;
+
+ }
+ <?php } ?>
+
function wpsg_setFilterStatus(state)
{