From d67a2847c17e077b641a316af40f13ffc71f37dc Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 18 Dec 2017 11:03:23 +0000 Subject: - AboModul Erweiterung - Start / Stop im Backend - Automatische Verlängerung MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6830 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_abo/order_view.phtml | 44 ++++++++++++++++++++++++++++++ views/mods/mod_abo/settings_edit.phtml | 49 +++++++++++++++++++++++++++++++--- 2 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 views/mods/mod_abo/order_view.phtml (limited to 'views/mods') diff --git a/views/mods/mod_abo/order_view.phtml b/views/mods/mod_abo/order_view.phtml new file mode 100644 index 0000000..8ae8a65 --- /dev/null +++ b/views/mods/mod_abo/order_view.phtml @@ -0,0 +1,44 @@ + + +view['arOrderedAboProducts'] as $oOrderProduct) { ?> + + getProduct()->getProductName()); ?> + + + + callMod('wpsg_mod_abo', 'getAboProductStatus', Array($_REQUEST['edit_id'], $oOrderProduct->getProductKey())); ?> + + + + + +  [  ] + + + + + +  [  ] + + + + + + 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'))); ?> + + + + view['data']['cdate']); ?> + + + + + + \ No newline at end of file diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml index 8dcb052..bd57d0e 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -3,10 +3,53 @@ /** * Template für die Einstellungen des Abo Moduls */ - + + $arPaymentSelect = Array(); + foreach ($this->arPayment as $p) { $arPaymentSelect[$p['id']] = $p['name']; } + ?> get_option('wpsg_mod_abo_url'), array ('help' => 'wpsg_mod_abo_url')); ?>
get_option('wpsg_mod_abo_wpsgmodabofirstbuy'), array('hint' => wpsg_translate(__('nohspc_Mail wird bei Bezahlung der Abo Bestellung zusätzlich versendet. (mail_firstbuy.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodabofirstbuy'), 'help' => 'wpsg_mod_abo_wpsgmodabofirstbuy',)); ?> -get_option('wpsg_mod_abo_wpsgmodaboexpiration'), array('hint' => wpsg_translate(__('nohspc_Mail wird bei Auslauf eines Abos versendet. (mail_expiration.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodaboexpiration'), 'help' => 'wpsg_mod_abo_wpsgmodaboexpiration',)); ?> -get_option('wpsg_mod_abo_wpsgmodabrebuy'), array('hint' => wpsg_translate(__('nohspc_Mail wird bei Bezahlung einer Abo Verlängerung versendet. (mail_rebuy.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodabrebuy'), 'help' => 'wpsg_mod_abo_wpsgmodabrebuy',)); ?> \ No newline at end of file +get_option('wpsg_mod_abo_wpsgmodabrebuy'), array('hint' => wpsg_translate(__('nohspc_Mail wird bei Bezahlung einer Abo Verlängerung versendet. (mail_rebuy.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodabrebuy'), 'help' => 'wpsg_mod_abo_wpsgmodabrebuy',)); ?> + +
+ + _('Mail versenden', 'wpsg'), + wpsg_mod_abo::EXPIRE_AUTO => _('Automatisch verlängern', 'wpsg') +), $this->get_option('wpsg_mod_abo_expiremode'), array('help' => 'wpsg_mod_abo_expiremode')); ?> + +
+ + get_option('wpsg_mod_abo_wpsgmodaboexpiration'), array('hint' => wpsg_translate(__('nohspc_Mail wird bei Auslauf eines Abos versendet. (mail_expiration.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodaboexpiration'), 'help' => 'wpsg_mod_abo_wpsgmodaboexpiration',)); ?> + +
+ +
+ + get_option('wpsg_mod_abo_autoexpire_payment'), array()); ?> + get_option('wpsg_mod_abo_autoexpire_customermail')); ?> + get_option('wpsg_mod_abo_autoexpire_adminmail')); ?> + _('Nichts', 'wpsg'), + wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => _('Verlängerung direkt stoppen', 'wpsg'), + wpsg_mod_abo::CUSTOMER_AUTO_MAIL => _('Verlängerung über Mail an Administrator stoppen', 'wpsg') + ), $this->get_option('wpsg_mod_abo_autoexpire_customer'), array()); ?> + +
+ + -- cgit v1.2.3