diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2018-12-11 13:24:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2018-12-11 13:24:36 +0000 |
| commit | 3a21f4ee844a9f61276950a9956f20117220136f (patch) | |
| tree | cef3143b0e06b8a7886894c8bf692ca0598ea35f /views | |
| parent | a66d4b897521e0efa554cffd6c9f863a483d627b (diff) | |
- Filterung nach Produktgruppen in Bestellübersicht
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7229 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/order/index.phtml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml index 1dc7aba..1a7850d 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -35,7 +35,7 @@ <div class="wpsg-filter wpsg-order-tab wpsg-order-tab-0 container-fluid form-horizontal" style="display:<?php echo (($this->view['hasFilter'] === true)?'block':'none'); ?>;">
<div class="row">
- <div class="col-lg-4">
+ <div class="col-lg-5">
<form method="post" id="filter_form" >
<input id="wpsg_seite" type="hidden" name="seite" value="<?php echo @$this->view['arFilter']['page']; ?>" class="current-page" />
@@ -45,7 +45,21 @@ <?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
<?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
<?php echo wpsg_drawForm_Select('filter[status]', __('Bestellstatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus), @$this->view['arFilter']['status']); ?>
-
+
+ <?php /* if ($this->hasMod('wpsg_mod_produktartikel')) { Vorbereitet aber Joins in wpsg_order nach den wp Ktegorien noch nicht umgesetzt! ?>
+
+ <?php $arCatSelect = []; $arCat = $this->callMod('wpsg_mod_produktartikel', 'getProductcategorySelect'); foreach ($arCat as $cat) $arCatSelect[$cat['term_id']] = $cat['label']; ?>
+ <?php echo wpsg_drawForm_Select('filter[cat_term_id]', __('Bestellungen mit Produkten aus Kategorie'), ['0' => __('Alle', 'wpsg')] + $arCatSelect, wpsg_getStr($this->view['arFilter']['cat_term_id'])); ?>
+
+ <?php } */ ?>
+
+ <?php if ($this->hasMod('wpsg_mod_productgroups')) { ?>
+
+ <?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'])); ?>
+
+ <?php } ?>
+
<?php echo wpsg_drawForm_TextStart(); ?>
<div class="row">
<div class="col-lg-6">
|
