From ad405c7045c6e242080ec9d3ce4c9e586b517c4f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 14 Jan 2016 14:55:36 +0000 Subject: - Testweise 4 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_request/adminmail.phtml | 22 ++ views/mods/mod_request/adminmail_html.phtml | 21 ++ views/mods/mod_request/customermail.phtml | 16 + views/mods/mod_request/customermail_html.phtml | 15 + views/mods/mod_request/product_bottom.phtml | 43 +++ .../mods/mod_request/produkt_edit_allgemein.phtml | 13 + views/mods/mod_request/requestmail.phtml | 116 ++++++ views/mods/mod_request/requestmail_html.phtml | 202 ++++++++++ views/mods/mod_request/requestpage.phtml | 412 +++++++++++++++++++++ views/mods/mod_request/settings_edit.phtml | 23 ++ 10 files changed, 883 insertions(+) create mode 100644 views/mods/mod_request/adminmail.phtml create mode 100644 views/mods/mod_request/adminmail_html.phtml create mode 100644 views/mods/mod_request/customermail.phtml create mode 100644 views/mods/mod_request/customermail_html.phtml create mode 100644 views/mods/mod_request/product_bottom.phtml create mode 100644 views/mods/mod_request/produkt_edit_allgemein.phtml create mode 100644 views/mods/mod_request/requestmail.phtml create mode 100644 views/mods/mod_request/requestmail_html.phtml create mode 100644 views/mods/mod_request/requestpage.phtml create mode 100644 views/mods/mod_request/settings_edit.phtml (limited to 'views/mods/mod_request') diff --git a/views/mods/mod_request/adminmail.phtml b/views/mods/mod_request/adminmail.phtml new file mode 100644 index 0000000..c577018 --- /dev/null +++ b/views/mods/mod_request/adminmail.phtml @@ -0,0 +1,22 @@ +htmlMail = false; + $time = time(); + +?> + + + + +: +render(WPSG_PATH_VIEW.'/mods/mod_request/requestmail.phtml'); ?> + +: + + + + \ No newline at end of file diff --git a/views/mods/mod_request/adminmail_html.phtml b/views/mods/mod_request/adminmail_html.phtml new file mode 100644 index 0000000..60de79f --- /dev/null +++ b/views/mods/mod_request/adminmail_html.phtml @@ -0,0 +1,21 @@ +htmlMail = true; + $time = time(); + +?> +

,

+

+ +

:

+render(WPSG_PATH_VIEW.'/mods/mod_request/requestmail_html.phtml'); ?> + +

:

+

+ : 
+ :  +

\ No newline at end of file diff --git a/views/mods/mod_request/customermail.phtml b/views/mods/mod_request/customermail.phtml new file mode 100644 index 0000000..f75f6fc --- /dev/null +++ b/views/mods/mod_request/customermail.phtml @@ -0,0 +1,16 @@ +htmlMail = true; + $time = time(); + +?> +view['requestlist']['customer']['vname']), wpsg_getStr($this->view['requestlist']['customer']['name'])); ?>, + + + +: +render(WPSG_PATH_VIEW.'/mods/mod_request/requestmail.phtml'); ?> \ No newline at end of file diff --git a/views/mods/mod_request/customermail_html.phtml b/views/mods/mod_request/customermail_html.phtml new file mode 100644 index 0000000..388ad1a --- /dev/null +++ b/views/mods/mod_request/customermail_html.phtml @@ -0,0 +1,15 @@ +htmlMail = true; + $time = time(); + +?> +

view['requestlist']['customer']['vname']), wpsg_getStr($this->view['requestlist']['customer']['name'])); ?>,

+

+ +

:

+render(WPSG_PATH_VIEW.'/mods/mod_request/requestmail_html.phtml'); ?> \ No newline at end of file diff --git a/views/mods/mod_request/product_bottom.phtml b/views/mods/mod_request/product_bottom.phtml new file mode 100644 index 0000000..314a8ac --- /dev/null +++ b/views/mods/mod_request/product_bottom.phtml @@ -0,0 +1,43 @@ + +get_option('wpsg_mod_request_afterinsert') == wpsg_mod_request::ACTION_SHOWREQUESTPAGELB) { ?> + + \ No newline at end of file diff --git a/views/mods/mod_request/produkt_edit_allgemein.phtml b/views/mods/mod_request/produkt_edit_allgemein.phtml new file mode 100644 index 0000000..3d97432 --- /dev/null +++ b/views/mods/mod_request/produkt_edit_allgemein.phtml @@ -0,0 +1,13 @@ + + + __('Nein', 'wpsg'), + wpsg_mod_request::TYP_YES => __('Ja, ohne Warenkorbfunktion', 'wpsg'), + wpsg_mod_request::TYP_YESWITHBASKET => __('Ja, mit zusätzlicher Warenkorbfunktion', 'wpsg') +), $this->view['oProduct']->getMeta('wpsg_mod_request_set'), array('help' => 'wpsg_mod_request_set')); ?> \ No newline at end of file diff --git a/views/mods/mod_request/requestmail.phtml b/views/mods/mod_request/requestmail.phtml new file mode 100644 index 0000000..fb98558 --- /dev/null +++ b/views/mods/mod_request/requestmail.phtml @@ -0,0 +1,116 @@ +view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?> + + + + +view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + +---------------------------------------------------------------------------- +view['requestlist']['products'] as $product_index => $request_product) { $i ++; ?> + + +get_option('wpsg_currency')).' ', 15); ?> +view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + +get_option('wpsg_currency')), 15); ?> + +hasMod('wpsg_mod_varianten') && $this->callMod('wpsg_mod_varianten', 'isVariantsProductKey', array($request_product['product_key']))) { ?> + +: + + + +hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?> + + +: get_option('wpsg_mod_weight_unit')); ?> + + + +hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['pv'])) { ?> + + +: + + + + + + + + + +getFrontendTaxview() == WPSG_NETTO) { ?> +view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')), 46); ?> +view['requestlist']['tax'] as $tax_key => $tax) { ?> +get_option('wpsg_currency')), 31); ?> + +view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')), 46); ?> + +view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')), 46); ?> +view['requestlist']['tax'] as $tax_key => $tax) { ?> +get_option('wpsg_currency')), 31); ?> + +view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')), 46); ?> + + +hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?> + +view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')), 15); ?> + + + +get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?> +: + +view['orderVars'] as $ov_index => $ov) { ?> + +view['requestlist']['ov'][$ov['id']])) { ?> + +view['requestlist']['ov'][$ov['id']], 46); ?> + + + + + + +view['requestlist']['customer']['comment'])) { ?> +: +view['requestlist']['customer']['comment']); ?> + +: + +view['requestlist']['customer']['firma']), 46); ?> +view['requestlist']['customer']['title']), 46); ?> +view['requestlist']['customer']['vname']), 46); ?> +view['requestlist']['customer']['name']), 46); ?> +view['requestlist']['customer']['email']), 46); ?> +view['requestlist']['customer']['fax']), 46); ?> +view['requestlist']['customer']['tel']), 46); ?> +view['requestlist']['customer']['strasse']), 46); ?> +view['requestlist']['customer']['plz']), 46); ?> +view['requestlist']['customer']['ort']), 46); ?> +view['requestlist']['customer']['ustidnr']), 46); ?> + +get_option('wpsg_mod_request_customerdata'))) { ?> +view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?> + +view['requestlist']['customer']['custom'][$c_id])) { ?> + +view['requestlist']['customer']['custom'][$c_id]), 46); ?> + + + + \ No newline at end of file diff --git a/views/mods/mod_request/requestmail_html.phtml b/views/mods/mod_request/requestmail_html.phtml new file mode 100644 index 0000000..6fc20fa --- /dev/null +++ b/views/mods/mod_request/requestmail_html.phtml @@ -0,0 +1,202 @@ + +
+ + + + + + view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + view['requestlist']['products'] as $product_index => $request_product) { $i ++; ?> + + + + + view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> + + + + + + + + hasMod('wpsg_mod_varianten') && $this->callMod('wpsg_mod_varianten', 'isVariantsProductKey', array($request_product['product_key']))) { ?> + + + + + + + + + hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?> + + + + + + + + + hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['pv'])) { ?> + + + + + + + + + + + + + getFrontendTaxview() == WPSG_NETTO) { ?> + + + + + view['requestlist']['tax'] as $tax_key => $tax) { ?> + + + + + + + + + + + + + + + view['requestlist']['tax'] as $tax_key => $tax) { ?> + + + + + + + + + + + + + hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?> + + + + + + + + +
.get_option('wpsg_currency')); ?>get_option('wpsg_currency')); ?>
:
:get_option('wpsg_mod_weight_unit')); ?>
: + + + + + +
 
:view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?>
:get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?>
:get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?>
 
:view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
+
+ + +get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?> +

:

+ + + view['orderVars'] as $ov_index => $ov) { ?> + + + + + +
: + + view['requestlist']['ov'][$ov['id']])) { ?> + + view['requestlist']['ov'][$ov['id']]); ?> + +
+ + + +view['requestlist']['customer']['comment'])) { ?> +

:

+

view['requestlist']['customer']['comment']); ?>

+ + +

:

+ + + __('Firma', 'wpsg'), + 'title' => __('Anrede', 'wpsg'), + 'vname' => __('Vorname', 'wpsg'), + 'name' => __('Name', 'wpsg'), + 'email' => __('E-Mail', 'wpsg'), + 'fax' => __('Fax', 'wpsg'), + 'tel' => __('Tel.', 'wpsg'), + 'strasse' => __('Strasse', 'wpsg'), + 'plz' => __('PLZ', 'wpsg'), + 'ort' => __('Ort', 'wpsg'), + 'ustidnr' => __('UStIdNr.', 'wpsg') + ); + + ?> + $label) { ?> + + + + + + + + get_option('wpsg_mod_request_customerdata'))) { ?> + view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?> + + + + + + + + +
:view['requestlist']['customer'][$field_name])).'">'.wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name])).''; + + } + else + { + + echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name])); + + } + + ?>
+ + view['requestlist']['customer']['custom'][$c_id])) { ?> + + view['requestlist']['customer']['custom'][$c_id]); ?> + +
\ No newline at end of file diff --git a/views/mods/mod_request/requestpage.phtml b/views/mods/mod_request/requestpage.phtml new file mode 100644 index 0000000..1060635 --- /dev/null +++ b/views/mods/mod_request/requestpage.phtml @@ -0,0 +1,412 @@ +view['requestlist']); + +?> + +
+ + writeFrontendMessage(); ?> + + view['requestlist']['products'])) { ?> + +
+ +

+ +
+ + + + + + + + view['addColspan'])) { ?> + + + + + + + + view['requestlist']['products'] as $request_product) { ?> + + + + + + + + view['addColspan'])) { ?> + + + + + + + hasMod('wpsg_mod_varianten') && $this->callMod('wpsg_mod_varianten', 'isVariantsProductKey', array($request_product['product_key']))) { ?> + + + + + + + + + hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?> + + + + + + + + + + hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['product_data']['pv'])) { ?> + + + + + + + + + + + + + + getFrontendTaxview() == WPSG_NETTO) { ?> + + + + + + + + + + + + + + + + + + + + + hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?> + + + + + + + +
 
+ + + <?php echo __('Löschen', 'wpsg'); ?> + + + + + + hasMod('wpsg_mod_produktbilder') && $this->get_option('wpsg_mod_request_requestpageimage') == '1') { + + if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']); + else $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($request_product['product_id'])); + + ?> + +
+ <?php echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?> +
+ + + + + getProduktLink($request_product)) { ?> + + getProduktLink($request_product)) { ?> +
+ + + get_option('wpsg_currency')); ?> + + + + get_option('wpsg_currency')); ?> +
:
:get_option('wpsg_mod_weight_unit')); ?>
+ + + + + + + + + + /> + + +
:view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?>
:view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?> +
+ + + + + get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?> +

+ view['orderVars'] as $ov_index => $ov) { ?> +
+ + : + + + + view['error']))?'wpsg_error':''); ?>" id="wpsg_ov_" name="wpsg[request][ov][]" value="view['requestlist']['ov'][$ov['id']])); ?>" /> + + + view['requestlist']['ov'][$ov['id']]))?'checked="checked"':''); ?> class=" wpsg_checkout view['error']))?'wpsg_error':''); ?>" id="wpsg_ov_" name="wpsg[request][ov][]" value="1" /> + + +
+ + + + +

+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_firma" name="wpsg[request][customer][firma]" value="view['requestlist']['customer']['firma'])); ?>" /> +
+ +
+ + +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[request][customer][vname]" value="view['requestlist']['customer']['vname'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[request][customer][name]" value="view['requestlist']['customer']['name'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="email" name="wpsg[request][customer][email]" value="view['requestlist']['customer']['email'])); ?>" /> +
+ + view['pflicht']['emailconfirm'])) { ?> +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="email2" name="wpsg[request][customer][email2]" value="view['requestlist']['customer']['email2'])); ?>" /> +
+ + +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="geb" name="wpsg[request][customer][geb]" value="view['requestlist']['customer']['geb'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="fax" name="wpsg[request][customer][fax]" value="view['requestlist']['customer']['fax'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="tel" name="wpsg[request][customer][tel]" value="view['requestlist']['customer']['tel'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[request][customer][strasse]" value="view['requestlist']['customer']['strasse'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[request][customer][plz]" value="view['requestlist']['customer']['plz'])); ?>" /> +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[request][customer][ort]" value="view['requestlist']['customer']['ort'])); ?>" /> +
+ +
+ + +
+ +
+ + view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[request][customer][ustidnr]" value="view['requestlist']['customer']['ustidnr'])); ?>" /> +
+ + + get_option('wpsg_mod_request_customerdata'))) { ?> + view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?> +
+ +
+ + + + +

+ +
+ +
+ +
+ +
+ + + +
+ +
+ + +

+ + +

\ No newline at end of file diff --git a/views/mods/mod_request/settings_edit.phtml b/views/mods/mod_request/settings_edit.phtml new file mode 100644 index 0000000..174cbf1 --- /dev/null +++ b/views/mods/mod_request/settings_edit.phtml @@ -0,0 +1,23 @@ + + +view['pages'], $this->get_option('wpsg_mod_request_page'), array ('help' => 'wpsg_mod_request_page')); ?> +view['pages'], $this->get_option('wpsg_mod_request_redirect'), array ('help' => 'wpsg_mod_request_redirect')); ?> + __('Auf Seite bleiben', 'wpsg'), + wpsg_mod_request::ACTION_GOTOREQUESTPAGE => __('Zur Anfrageseite leiten', 'wpsg'), + wpsg_mod_request::ACTION_SHOWREQUESTPAGELB => __('Anfrageseite im Fenster anzeigen', 'wpsg') +), $this->get_option('wpsg_mod_request_afterinsert'), array ('help' => 'wpsg_mod_request_afterinsert')); ?> +
+get_option('wpsg_mod_request_customerdata'), array('help' => 'wpsg_mod_request_customerdata')); ?> +hasMod('wpsg_mod_ordervars')) { ?> +get_option('wpsg_mod_request_ordervars'), array('help' => 'wpsg_mod_request_ordersvar')); ?> + +hasMod('wpsg_mod_productvars')) { ?> +get_option('wpsg_mod_request_productvars'), array('help' => 'wpsg_mod_request_productvars')); ?> + \ No newline at end of file -- cgit v1.2.3