diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-07-17 14:26:40 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-07-17 14:26:40 +0000 |
| commit | 0271bef3d4c28fae86f299b3441f6ca90a49d46d (patch) | |
| tree | d20211dff620fa62cf5c27b9174f0616c2de3447 /views/order/index.phtml | |
| parent | 0d29d2ff39a05dc1d9bff94addde26d716a1f08b (diff) | |
- Export in neues Layout integriert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5683 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/index.phtml')
| -rw-r--r-- | views/order/index.phtml | 376 |
1 files changed, 210 insertions, 166 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml index ac3efe8..7130de6 100644 --- a/views/order/index.phtml +++ b/views/order/index.phtml @@ -15,15 +15,27 @@ </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
- <li role="presentation" class="<?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo __("Bestellübersicht", "wpsg"); ?></a></li>
- <li role="presentation" class="wpsg_showhide_filter <?php echo (($this->view['hasFilter'] === true)?'active':''); ?>"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
+ <li role="presentation" class="wpsg-order-tab-a active"><a href="#" onclick="return false;"><?php echo __("Bestellübersicht", "wpsg"); ?></a></li>
+ <li role="presentation" class="wpsg-order-tab-a" id="wpsg-order-tab-0"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
+ <?php foreach ($this->view['tabs']['left'] as $k => $tab) { ?>
+ <li role="presentation" class="wpsg-order-tab-a" id="wpsg-order-tab-<?php echo $k; ?>"><a href="#" onclick="return false;"><span class="<?php echo $tab['tab_icon']; ?>"></span><?php echo $tab['tab_title']; ?></a></li>
+ <?php } ?>
</ul>
<ul class="nav navbar-nav navbar-right">
-
+ <?php foreach ($this->view['tabs']['right'] as $k => $tab) { ?>
+ <li role="presentation" class="wpsg-order-tab-a" id="wpsg-order-tab-<?php echo $k; ?>"><a href="#" onclick="return false;"><span class="<?php echo $tab['tab_icon']; ?>"></span><?php echo $tab['tab_title']; ?></a></li>
+ <?php } ?>
</ul>
</div>
</div>
- <div class="wpsg-filter container-fluid form-horizontal" style="display:<?php echo (($this->view['hasFilter'] === true)?'block':'none'); ?>;">
+
+ <?php foreach ($this->view['tabs'] as $tab_positions) { ?>
+ <?php foreach ($tab_positions as $k => $tab) { ?>
+ <div class="wpsg-filter wpsg-order-tab wpsg-order-tab-<?php echo $k ?>" style="display:none;"><?php echo $tab['tab_content']; ?></div>
+ <?php } ?>
+ <?php } ?>
+
+ <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">
<form method="post" id="filter_form">
@@ -115,181 +127,174 @@ <?php echo $this->writeBackendMessage(); ?>
- <?php $this->callMods('produkt_index_head'); ?>
- <?php $this->callMods('produkt_index_aftersearch'); ?>
-
<div class="content">
<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
- <form method="post" action="<?php echo WPSG_URL_WP ?>wp-admin/admin.php?page=wpsg-Order&noheader=1">
-
- <table class="table table-bordered table-hover table-striped wpsg-table-order">
- <thead>
- <tr>
- <th class="col_checkbox"><input type="checkbox" onclick="return wpsg_order_checkAll();" /></th>
- <th class="col_nr wpsg_order" data-order="cdate"><?php echo __('Nr', 'wpsg'); ?></th>
- <th class="col_customer wpsg_order" data-order="customer"><?php echo __('Kunde', 'wpsg'); ?></th>
- <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
- <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
- <th class="col_products wpsg_order" data-order="products"><?php echo __('Produkte', 'wpsg'); ?></th>
- <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
- <th class="col_state wpsg_order" data-order="state"><?php echo __('Status', 'wpsg'); ?></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($this->view['arData'] as $oOrder) { ?>
- <tr>
- <td class="col_checkbox">
-
- <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" />
-
- </td>
- <td class="col_nr">
-
- <?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br />
-
- <div class="actions">
- <span class="view"><a title="<?php echo __("Diese Bestellung ansehen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $oOrder->id; ?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
- |
- <span class="storno"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung stornieren möchten?', 'wpsg'); ?>');" title="<?php echo __("Diese Bestellung stornieren", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=storno&noheader=1&edit_id=<?php echo $oOrder->id; ?>"><?php echo __("Stornieren", "wpsg"); ?></a></span>
- |
- <span class="delete"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung löschen möchten?', 'wpsg'); ?>');" title="<?php echo __('Diese Bestellung löschen', 'wpsg'); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=delete&noheader=1&edit_id=<?php echo $oOrder->id; ?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
- </div>
+ <table class="table table-bordered table-hover table-striped wpsg-table-order">
+ <thead>
+ <tr>
+ <th class="col_checkbox"><input type="checkbox" onclick="return wpsg_order_checkAll();" /></th>
+ <th class="col_nr wpsg_order" data-order="cdate"><?php echo __('Nr', 'wpsg'); ?></th>
+ <th class="col_customer wpsg_order" data-order="customer"><?php echo __('Kunde', 'wpsg'); ?></th>
+ <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
+ <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
+ <th class="col_products wpsg_order" data-order="products"><?php echo __('Produkte', 'wpsg'); ?></th>
+ <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
+ <th class="col_state wpsg_order" data-order="state"><?php echo __('Status', 'wpsg'); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach ($this->view['arData'] as $oOrder) { ?>
+ <tr>
+ <td class="col_checkbox">
+
+ <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" />
+
+ </td>
+ <td class="col_nr">
+
+ <?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br />
+
+ <div class="actions">
+ <span class="view"><a title="<?php echo __("Diese Bestellung ansehen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $oOrder->id; ?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
+ |
+ <span class="storno"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung stornieren möchten?', 'wpsg'); ?>');" title="<?php echo __("Diese Bestellung stornieren", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=storno&noheader=1&edit_id=<?php echo $oOrder->id; ?>"><?php echo __("Stornieren", "wpsg"); ?></a></span>
+ |
+ <span class="delete"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung löschen möchten?', 'wpsg'); ?>');" title="<?php echo __('Diese Bestellung löschen', 'wpsg'); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=delete&noheader=1&edit_id=<?php echo $oOrder->id; ?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
+ </div>
- <?php if (trim($oOrder->admincomment) != "") { ?>
- <a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oOrder->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-info-sign admincomment" href="#"></a>
- <?php } ?>
+ <?php if (trim($oOrder->admincomment) != "") { ?>
+ <a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oOrder->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-info-sign admincomment" href="#"></a>
+ <?php } ?>
- <?php if (trim($oOrder->comment) != "") { ?>
- <a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oOrder->comment); ?>" onclick="return false;" class="glyphicon glyphicon-info-sign customercomment" href="#"></a>
- <?php } ?>
+ <?php if (trim($oOrder->comment) != "") { ?>
+ <a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oOrder->comment); ?>" onclick="return false;" class="glyphicon glyphicon-info-sign customercomment" href="#"></a>
+ <?php } ?>
- <?php if ($oOrder->hasShippingAdress()) { ?>
- <a title="<?php echo __("Lieferadresse beachten", "wpsg"); ?>" onclick="return false;" class="glyphicon glyphicon-map-marker shippingadress" href="#"></a>
- <?php } ?>
+ <?php if ($oOrder->hasShippingAdress()) { ?>
+ <a title="<?php echo __("Lieferadresse beachten", "wpsg"); ?>" onclick="return false;" class="glyphicon glyphicon-map-marker shippingadress" href="#"></a>
+ <?php } ?>
- <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
- <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 1) { ?>
- <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id)) ?>
- <?php } else if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 2) { ?>
- <?php
+ <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
+ <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 1) { ?>
+ <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id)) ?>
+ <?php } else if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id)) === 2) { ?>
+ <?php
- $origin_order_id = $this->callMod('wpsg_mod_abo', 'getOriginOrder', array($oOrder->id));
- $origin_order_data = $this->cache->loadOrder($origin_order_id);
+ $origin_order_id = $this->callMod('wpsg_mod_abo', 'getOriginOrder', array($oOrder->id));
+ $origin_order_data = $this->cache->loadOrder($origin_order_id);
- ?>
- <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($origin_order_data['id'])) ?><br />
- <?php echo wpsg_translate(__('Verlängerung zu Bestellung <a href="#1#">#2#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=view&edit_id='.$origin_order_id, $origin_order_data['onr']); ?>
- <?php } ?>
- </td>
+ ?>
+ <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($origin_order_data['id'])) ?><br />
+ <?php echo wpsg_translate(__('Verlängerung zu Bestellung <a href="#1#">#2#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=view&edit_id='.$origin_order_id, $origin_order_data['onr']); ?>
<?php } ?>
-
</td>
- <td class="col_customer">
- <?php $firma = $oOrder->getCustomer()->firma; if (wpsg_isSizedString($firma)) { ?>
- <?php echo $firma; ?><br />
- <?php } ?>
- <?php echo $oOrder->getInvoiceTitle(); ?> <?php echo $oOrder->getCustomer()->vname; ?> <?php echo $oOrder->getCustomer()->name; ?>
+ <?php } ?>
+
+ </td>
+ <td class="col_customer">
+ <?php $firma = $oOrder->getCustomer()->firma; if (wpsg_isSizedString($firma)) { ?>
+ <?php echo $firma; ?><br />
+ <?php } ?>
+ <?php echo $oOrder->getInvoiceTitle(); ?> <?php echo $oOrder->getCustomer()->vname; ?> <?php echo $oOrder->getCustomer()->name; ?>
+ <br />
+ <span class="wpsg_grey"><?php echo $oOrder->getCustomer()->strasse; ?><br />
+ <?php echo ltrim($oOrder->getCustomer()->plz.' '.$oOrder->getCustomer()->ort); ?> <?php echo $oOrder->getCustomer()->getCountryKuerzel(); ?>
+ </span>
+ </td>
+ <td class="col_payment">
+
+ <?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
+ <?php if ($oOrder->getPaymentID() == 4000 && $this->hasMod('wpsg_mod_crefopay')) { ?>
+ <?php echo wpsg_hspc($this->callMod('wpsg_mod_crefopay', 'getOrderPaymentName', array($oOrder->id))); ?>
+ <?php } else { ?>
+ <?php echo $oOrder->getPaymentLabel(); ?>
+ <?php } ?>
+
+ <?php if ($oOrder->getPaymentAmount() > 0) { ?>
+ - <?php echo wpsg_ff($oOrder->getPaymentAmount(), $this->get_option('wpsg_currency')); ?>
+ <?php } ?>
+
+ </td>
+ <td class="col_shipping">
+
+ <?php echo $oOrder->getShippingLabel(); ?>
+
+ <?php if ($oOrder->getShippingAmount() > 0) { ?>
+ - <?php echo wpsg_ff($oOrder->getShippingAmount(), $this->get_option('wpsg_currency')); ?>
+ <?php } ?>
+
+ <?php if ($oOrder->hasShippingAdress()) { ?>
<br />
- <span class="wpsg_grey"><?php echo $oOrder->getCustomer()->strasse; ?><br />
- <?php echo ltrim($oOrder->getCustomer()->plz.' '.$oOrder->getCustomer()->ort); ?> <?php echo $oOrder->getCustomer()->getCountryKuerzel(); ?>
- </span>
- </td>
- <td class="col_payment">
-
- <?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
- <?php if ($oOrder->getPaymentID() == 4000 && $this->hasMod('wpsg_mod_crefopay')) { ?>
- <?php echo wpsg_hspc($this->callMod('wpsg_mod_crefopay', 'getOrderPaymentName', array($oOrder->id))); ?>
- <?php } else { ?>
- <?php echo $oOrder->getPaymentLabel(); ?>
- <?php } ?>
-
- <?php if ($oOrder->getPaymentAmount() > 0) { ?>
- - <?php echo wpsg_ff($oOrder->getPaymentAmount(), $this->get_option('wpsg_currency')); ?>
- <?php } ?>
-
- </td>
- <td class="col_shipping">
-
- <?php echo $oOrder->getShippingLabel(); ?>
-
- <?php if ($oOrder->getShippingAmount() > 0) { ?>
- - <?php echo wpsg_ff($oOrder->getShippingAmount(), $this->get_option('wpsg_currency')); ?>
- <?php } ?>
-
- <?php if ($oOrder->hasShippingAdress()) { ?>
- <br />
- <?php echo $oOrder->getShippingTitle(); ?><?php echo $oOrder->getShippingFirstName(); ?> <?php echo $oOrder->getShippingName(); ?><br />
- <span class="wpsg_grey">
- <?php echo $oOrder->getShippingStreet(); ?>
- <?php echo $oOrder->getShippingZip(); ?> <?php echo $oOrder->getShippingCity(); ?> <?php echo $oOrder->getShippingCountryKuerzel(); ?><br />
- </span
- <?php } ?>
-
- </td>
- <td class="col_products">
-
- <?php foreach ($oOrder->getOrderProducts() as $oOrderProduct) { ?>
- <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
- $oOrderProduct->getCount(),
- WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(),
- $oOrderProduct->getProduct()->getProductName(),
- wpsg_ff($oOrderProduct->getAmount(), $this->get_option('wpsg_currency'))
- ); ?><br />
- <?php } ?>
-
- </td>
- <td class="col_sum">
- <?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
- </td>
- <td class="col_state">
- <?php echo $oOrder->getStateLabel(); ?>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
-
- <div class="alignleft actions">
-
- <select name="wpsg_action" id="wpsg_action">
- <option value="-1"><?php echo __('Aktion wählen', 'wpsg'); ?></option>
- <?php foreach ($this->arStatus as $k => $status) { ?>
- <option value="<?php echo $k; ?>"><?php echo wpsg_translate(__('Status auf "#1#" setzen.', 'wpsg'), $status); ?></option>
- <?php } ?>
- <option value="multiDelete"><?php echo __('Bestellungen löschen', 'wpsg'); ?></option>
- <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
- <option value="writeRechnung"><?php echo __('Rechnung schreiben', 'wpsg'); ?></option>
- <option value="showRechnung"><?php echo __('Rechnung ansehen', 'wpsg'); ?></option>
- <?php } ?>
- </select>
-
- <input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; }" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
-
- </div>
-
- <?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">«</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">»</span></a></li>
- <?php } ?>
- </ul>
- </nav>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- <?php $this->callMod('wpsg_mod_export', 'produkt_index_foot'); ?>
-
- </form>
+ <?php echo $oOrder->getShippingTitle(); ?><?php echo $oOrder->getShippingFirstName(); ?> <?php echo $oOrder->getShippingName(); ?><br />
+ <span class="wpsg_grey">
+ <?php echo $oOrder->getShippingStreet(); ?>
+ <?php echo $oOrder->getShippingZip(); ?> <?php echo $oOrder->getShippingCity(); ?> <?php echo $oOrder->getShippingCountryKuerzel(); ?><br />
+ </span
+ <?php } ?>
+
+ </td>
+ <td class="col_products">
+
+ <?php foreach ($oOrder->getOrderProducts() as $oOrderProduct) { ?>
+ <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
+ $oOrderProduct->getCount(),
+ WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(),
+ $oOrderProduct->getProduct()->getProductName(),
+ wpsg_ff($oOrderProduct->getAmount(), $this->get_option('wpsg_currency'))
+ ); ?><br />
+ <?php } ?>
+
+ </td>
+ <td class="col_sum">
+ <?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
+ </td>
+ <td class="col_state">
+ <?php echo $oOrder->getStateLabel(); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ </tbody>
+ </table>
+
+ <div class="alignleft actions">
+
+ <select name="wpsg_action" id="wpsg_action">
+ <option value="-1"><?php echo __('Aktion wählen', 'wpsg'); ?></option>
+ <?php foreach ($this->arStatus as $k => $status) { ?>
+ <option value="<?php echo $k; ?>"><?php echo wpsg_translate(__('Status auf "#1#" setzen.', 'wpsg'), $status); ?></option>
+ <?php } ?>
+ <option value="multiDelete"><?php echo __('Bestellungen löschen', 'wpsg'); ?></option>
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
+ <option value="writeRechnung"><?php echo __('Rechnung schreiben', 'wpsg'); ?></option>
+ <option value="showRechnung"><?php echo __('Rechnung ansehen', 'wpsg'); ?></option>
+ <?php } ?>
+ </select>
+
+ <input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; }" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
+
+ </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">«</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">»</span></a></li>
+ <?php } ?>
+ </ul>
+ </nav>
+ <?php } ?>
+
+ <div class="wpsg_clear"></div>
+
+ <?php $this->callMod('wpsg_mod_export', 'produkt_index_foot'); ?>
<?php } else { ?>
<p><?php echo __('Keine Bestellungen in der Datenbank.', 'wpsg'); ?></p>
@@ -334,4 +339,43 @@ } // function goPage(page)
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg-order-tab-a').bind('click', function() {
+
+ jQuery('.wpsg-order-tab-a').removeClass('active');
+ jQuery(this).addClass('active');
+
+ if (jQuery('.' + jQuery(this).attr("id")).length <= 0)
+ {
+
+ jQuery('.wpsg-order-tab').slideUp(250);
+
+ }
+ else
+ {
+
+ if (jQuery('.wpsg-order-tab:visible').length > 0)
+ {
+
+ jQuery('.wpsg-order-tab').hide(0);
+ jQuery('.' + jQuery(this).attr("id")).show(0);
+
+ }
+ else
+ {
+
+ jQuery('.wpsg-order-tab').hide(0);
+ jQuery('.' + jQuery(this).attr("id")).slideDown(250);
+
+ }
+
+ }
+
+ return false;
+
+ } );
+
+ } );
+
/* <