From 754a5c89e217a89f3ffa652f35e680f1bfb63375 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 17 Nov 2020 12:53:35 +0000 Subject: - K git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7809 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_abo/index.phtml | 83 +++++++++++-------- views/mods/mod_abo/order_view.phtml | 160 +++++++++++++++++++----------------- 2 files changed, 136 insertions(+), 107 deletions(-) (limited to 'views') diff --git a/views/mods/mod_abo/index.phtml b/views/mods/mod_abo/index.phtml index aaf9cb3..d188f46 100644 --- a/views/mods/mod_abo/index.phtml +++ b/views/mods/mod_abo/index.phtml @@ -1,8 +1,9 @@
@@ -133,7 +134,12 @@ - view['arData'] as $oAbo) { $oOrder = $oAbo->getOrder(); ?> + view['arData'] as $oAbo) { + + $oOrder = $oAbo->getOrder(); + $oOrderProduct = $oAbo->getOrderProduct(); + + ?> @@ -154,7 +160,7 @@ | @@ -213,19 +219,21 @@ - getOrderProducts(); ?> - - - - #3# für je #4#', 'wpsg'), - $oOrderProduct->getCount(), + + + + + + + #3# für je #4#', 'wpsg'), + $oOrderProduct->getCount(), wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.$oOrderProduct->getProductId()), - $oOrderProduct->getProductName(), - wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency')) - ); ?> + $oOrderProduct->getProductName(), + wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency')) + ); ?> + + - - getAmount(), $this->get_option('wpsg_currency')); ?> @@ -233,23 +241,32 @@ - callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?> - - callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?> - - time()) { ?> - - - - - - - - - -
- - + + + + + + + + callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?> + + callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?> + + time()) { ?> + + + + + + + + + +
+ + + + diff --git a/views/mods/mod_abo/order_view.phtml b/views/mods/mod_abo/order_view.phtml index 52ea434..3242993 100644 --- a/views/mods/mod_abo/order_view.phtml +++ b/views/mods/mod_abo/order_view.phtml @@ -10,86 +10,98 @@ view['arOrderedAboProducts'] as $oOrderProduct) { - $oAbo = wpsg_abo::getFromOrderAndProduct($view['oOrder']->getId(), $oOrderProduct->getId()); + try { + + $oAbo = wpsg_abo::getFromOrderAndProduct($view['oOrder']->getId(), $oOrderProduct->getId()); + + ?> - ?> - - getProduct()->getProductName()); ?> - - callMod('wpsg_mod_abo', 'getOrderAboExpiration', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey()))); ?> - 'wpsg_abo_state wpsg_abo_state_class_'.$oAbo->getState())); ?> + getProduct()->getProductName()); ?> - + + getProduct()->wpsg_mod_abo_durration), wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency'))); ?> + callMod('wpsg_mod_abo', 'getRebuyLink', [$view['oOrder']->getId(), $oOrderProduct->getProductKey()]); + $strURL = ''.$strURL.''; + + echo wpsg_drawForm_Text(__('URL für den Kauf einer Verlängerung', 'wpsg'), $strURL); + + ?> + + - jQuery('#wpsg_mod_abo_duration').editable({ - type: 'combodate', - display: function(value) { - - jQuery(this).html(value.format('DD.MM.YYYY HH:mm:ss')); - - }, - success: function(response, newValue) { - - jQuery.ajax({ - url: 'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_abo&subaction=admin_inlineEdit&noheader=1', - data: { - field: 'duration', - product_key: 'getProductKey(); ?>', - order_id: 'getId() ?>', - date: newValue.format() - }, - success: function(response) { - - jQuery('.wpsg_abo_state').attr("class", "col-sm-6 wpsg_abo_state_class_" + response.state) - - } - }) - - }, - format: 'DD.MM.YYYY HH:mm:ss', - viewformat: 'DD.MM.YYYY HH:mm:ss', - template: 'D MMM YYYY HH:mm:ss', - combodate: { - minYear: 2000, - maxYear: , - minuteStep: 1 - } - }); + callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?> + + - - - getProduct()->wpsg_mod_abo_durration), wpsg_ff($oOrderProduct->getProduct()->wpsg_mod_abo_price, $this->get_option('wpsg_currency'))); ?> - callMod('wpsg_mod_abo', 'getRebuyLink', [$view['oOrder']->getId(), $oOrderProduct->getProductKey()]); - $strURL = ''.$strURL.''; + + +  [  ] + + + + - echo wpsg_drawForm_Text(__('URL für den Kauf einer Verlängerung', 'wpsg'), $strURL); +  [  ] - ?> - - - - callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?> - - - - - -  [  ] - - - - + + + + + + + -  [  ] - - - - - - + getProduct()->getProductName()); ?> + +

+ + + + \ No newline at end of file -- cgit v1.2.3