From b1d55b497f193ad74da3bbaee44bdcf029dc7437 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 11 Jan 2018 08:53:51 +0000 Subject: - Vorbereitung Aboerweiterung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6855 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_abo/index.phtml | 343 +++++++++++++++++++++++ views/mods/mod_abo/produkt_addedit_content.phtml | 44 ++- views/mods/mod_abo/settings_edit.phtml | 11 +- 3 files changed, 395 insertions(+), 3 deletions(-) create mode 100644 views/mods/mod_abo/index.phtml diff --git a/views/mods/mod_abo/index.phtml b/views/mods/mod_abo/index.phtml new file mode 100644 index 0000000..edc0871 --- /dev/null +++ b/views/mods/mod_abo/index.phtml @@ -0,0 +1,343 @@ + + +
+ + + +

+ + + + render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?> + +
+ +
+
+ + view['arData']) && sizeof($this->view['arData']) > 0) { ?> + + + + + + + + + + + + + + + + view['arData'] as $oOrder) { ?> + + + + + + + + + + /* Laufzeitspalte */ + + + + + + + + +
+ + + + + + getNr(); ?> cdate), false); ?>
+ + + + admincomment) != "") { ?> + admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"> + + + comment) != "") { ?> + comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"> + + + hasShippingAdress()) { ?> + " onclick="return false;" class="glyphicon glyphicon-map-marker shippingadress" href="#"> + + +
+ getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?> +
+ + getInvoiceTitle(); ?> getInvoiceFirstname(); ?> getInvoiceName(); ?> +
+ getInvoiceStreet(); ?>
+ getInvoiceZip().' '.$oOrder->getInvoiceCity()); ?> getInvoiceCountryKuerzel(); ?> +
+
+ + + getPaymentID() == 4000 && $this->hasMod('wpsg_mod_crefopay')) { ?> + callMod('wpsg_mod_crefopay', 'getOrderPaymentName', array($oOrder->id))); ?> + + getPaymentLabel(); ?> + + + getPaymentAmount() > 0) { ?> +  - getPaymentAmount(), $this->get_option('wpsg_currency')); ?> + + + + + getShippingLabel(); ?> + + getShippingAmount() > 0) { ?> +  - getShippingAmount(), $this->get_option('wpsg_currency')); ?> + + + hasShippingAdress()) { ?> +
+ getShippingTitle(); ?> getShippingFirstName(); ?> getShippingName(); ?>
+ + getShippingStreet(); ?> + getShippingZip(); ?> getShippingCity(); ?> getShippingCountryKuerzel(); ?>
+
+ + +
+ + getOrderProducts(); ?> + + + + #3# für je #4#', 'wpsg'), + $oOrderProduct->getCount(), + WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), + $oOrderProduct->getProductName(), + wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency')) + ); ?> + + + + + getAmount(), $this->get_option('wpsg_currency')); ?> + + callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?> + + callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?> + + + + time()) { ?> + + + + + + + + + +
+ + + +
+ +
+ + + + +
+ +
+ render(WPSG_PATH_VIEW.'/admin/pager.phtml'); ?> +
+ +
+ + + + + + + + + + +
+
+ + \ No newline at end of file diff --git a/views/mods/mod_abo/produkt_addedit_content.phtml b/views/mods/mod_abo/produkt_addedit_content.phtml index e1d0f0e..e5e9fe5 100644 --- a/views/mods/mod_abo/produkt_addedit_content.phtml +++ b/views/mods/mod_abo/produkt_addedit_content.phtml @@ -53,9 +53,49 @@
+ + + + get_option('wpsg_mod_abo_moreorder_product'), array ('help' => 'wpsg_mod_abo_moreorder_product')); ?> + + + + + +
+ + get_option('wpsg_mod_abo_nomoreorder_product_text'), array('help' => 'wpsg_mod_abo_nomoreorder_product_text'));?> + +
+
- + - \ No newline at end of file + + \ 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 132b483..7d51786 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -13,6 +13,10 @@ 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_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',)); ?> +
+ +get_option('wpsg_mod_abo_perpage'), array('help' => 'wpsg_mod_abo_perpage')); ?> +
get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?> get_option('wpsg_mod_abo_autoexpire_customermail'), array ('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?> get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?> + +
+ __('Nichts', 'wpsg'), wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => __('Verlängerung direkt stoppen', 'wpsg'), @@ -40,7 +47,9 @@ - +
+ + get_option('wpsg_mod_abo_moreorder'), array ('help' => 'wpsg_mod_abo_moreorder')); ?> -- cgit v1.2.3