Line 8... |
Line 8... |
8 |
?>
|
8 |
?>
|
9 |
|
9 |
|
10 |
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) { ?>
|
10 |
<?php foreach ($this->view['arOrderedAboProducts'] as $oOrderProduct) { ?>
|
11 |
|
11 |
|
12 |
<?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
|
12 |
<?php echo wpsg_drawForm_AdminboxStart($oOrderProduct->getProduct()->getProductName()); ?>
|
- |
|
13 |
|
13 |
|
14 |
<?php $tExpire = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey()))); echo wpsg_drawForm_Text(__('Laufzeit', 'wpsg'), wpsg_formatTimestamp($tExpire), false, Array('class_content_wrap' => (($tExpire > time())?'wpsg_mod_abo_future_expire':'wpsg_mod_abo_expired'))); ?>
|
- |
|
15 |
|
- |
|
16 |
<?php echo wpsg_drawForm_Text(wpsg_translate(__('Preis (#1# Tage):', 'wpsg'), $oOrderProduct->getProduct()->wpsg_mod_abo_durration), wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency'))); ?>
|
- |
|
17 |
|
14 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
18 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
15 |
|
19 |
|
16 |
<?php $abo_product_status = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?>
|
20 |
<?php $abo_product_status = $this->callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?>
|
17 |
|
21 |
|
18 |
<?php if ($abo_product_status['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
|
22 |
<?php if ($abo_product_status['status'] === wpsg_mod_abo::STATUS_ACTIVE) { ?>
|
19 |
|
23 |
|
20 |
<?php echo __('Aktiv', 'wpsg'); ?>
|
24 |
<?php echo __('Aktiv', 'wpsg'); ?>
|
21 |
|
25 |
|
22 |
[ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&product_key=<?php echo $oOrderProduct->getProductKey(); ?>&do=stop&noheader=1"><?php echo __('Anhalten'); ?></a> ]
|
26 |
[ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&product_key=<?php echo $oOrderProduct->getProductKey(); ?>&do=stop&noheader=1"><?php echo __('Deaktivieren'); ?></a> ]
|
23 |
|
27 |
|
24 |
<?php } else if ($abo_product_status['status'] === wpsg_mod_abo::STATUS_STOPPED) { ?>
|
28 |
<?php } else if ($abo_product_status['status'] === wpsg_mod_abo::STATUS_STOPPED) { ?>
|
25 |
|
29 |
|
26 |
<?php echo __('Angehalten', 'wpsg'); ?>
|
30 |
<?php echo __('Inaktiv', 'wpsg'); ?>
|
27 |
|
31 |
|
28 |
[ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&product_key=<?php echo $oOrderProduct->getProductKey(); ?>&do=run&noheader=1"><?php echo __('Fortsetzen'); ?></a> ]
|
32 |
[ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_abo&edit_id=<?php echo $_REQUEST['edit_id'] ?>&product_key=<?php echo $oOrderProduct->getProductKey(); ?>&do=run&noheader=1"><?php echo __('Aktivieren'); ?></a> ]
|
29 |
|
33 |
|
30 |
<?php } ?>
|
34 |
<?php } ?>
|
31 |
|
35 |
|
32 |
<?php echo wpsg_drawForm_TextEnd(__('Verlängerung')); ?>
|
36 |
<?php echo wpsg_drawForm_TextEnd(__('Verlängerung')); ?>
|
33 |
|
- |
|
34 |
<?php $tExpire = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id']))); echo wpsg_drawForm_Text(__('Abo läuft bis'), wpsg_formatTimestamp($tExpire), false, Array('class_content_wrap' => (($tExpire > time())?'wpsg_mod_abo_future_expire':'wpsg_mod_abo_expired'))); ?>
|
37 |
|
35 |
|
- |
|
36 |
<?php /* echo wpsg_drawForm_TextStart(); ?>
|
- |
|
37 |
|
- |
|
38 |
<?php echo wpsg_translate(_('Erstkauf am #1#', 'wpsg'), $this->view['data']['cdate']); ?>
|
- |
|
39 |
|
- |
|
40 |
<?php echo wpsg_drawForm_TextEnd(__('Verlauf', 'wpsg')); */ ?>
|
- |
|
41 |
|
- |
|
42 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
38 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
43 |
|
39 |
|
44 |
<?php } ?>
|
40 |
<?php } ?>
|
45 |
|
41 |
|