summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-12-18 11:03:23 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-12-18 11:03:23 +0000
commitd67a2847c17e077b641a316af40f13ffc71f37dc (patch)
tree97e13a66be4da9727f2c8cb2053d8aa4a82f4530 /views/order
parent0fda8e4e52c31a8d3e725463842d56da6db49db6 (diff)
- AboModul Erweiterung
- Start / Stop im Backend - Automatische Verlängerung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6830 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order')
-rw-r--r--views/order/index.phtml26
1 files changed, 20 insertions, 6 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml
index 223f688..7c8f463 100644
--- a/views/order/index.phtml
+++ b/views/order/index.phtml
@@ -171,20 +171,34 @@
<?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 if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
+
+ <?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id))); ?>
+
+ <?php echo __('Abo:', 'wpsg'); ?>
+
+ <?php if ($abo_expiration > time()) { ?>
+ <span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
+ <?php } else { ?>
+ <span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
+ <?php } ?>
+
+ <?php } ?>
+
+ <?php 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);
?>
- <?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 } ?>
+
+ <?php } ?>
</td>
<td class="col_customer">