diff options
| author | thomas <noreply@maennchen1.de> | 2018-03-27 13:11:19 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2018-03-27 13:11:19 +0000 |
| commit | 2616a079e863c19da80001fdaeb54687962f181e (patch) | |
| tree | d73c5b73f3be18fc8ec549a8847e2a0c8d13597c /views/mods | |
| parent | 658d233f84f4ff52d92b0d9f1fce5ed041622863 (diff) | |
- Modul: Druckerei4.0.6
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6958 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
| -rw-r--r-- | views/mods/mod_surfaceproduct/basket_row.phtml | 27 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/mail_row.html.phtml | 20 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/mail_row.phtml | 21 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/overview_row.phtml | 27 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/product.phtml | 42 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/produkt_edit_sidebar.phtml | 58 | ||||
| -rw-r--r-- | views/mods/mod_surfaceproduct/settings_edit.phtml | 13 |
7 files changed, 208 insertions, 0 deletions
diff --git a/views/mods/mod_surfaceproduct/basket_row.phtml b/views/mods/mod_surfaceproduct/basket_row.phtml new file mode 100644 index 0000000..d99a0b5 --- /dev/null +++ b/views/mods/mod_surfaceproduct/basket_row.phtml @@ -0,0 +1,27 @@ +<?php
+
+ /**
+ * Template für die Anzeige der FlächenProdukte im Warenkorb
+ */
+
+?>
+<div class="product_info">
+
+ <div>
+ <span class="fa fa-cut"></span>
+ <?php echo __('Bemessungen', 'wpsg');?>:
+ <strong><?php if (($this->hasMod('wpsg_mod_surfaceproduct_mode')) == '1') {?>
+
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+ <?php } else {?>
+
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+ <?php } ?></strong>
+
+ </div>
+
+</div>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/mail_row.html.phtml b/views/mods/mod_surfaceproduct/mail_row.html.phtml new file mode 100644 index 0000000..ca2fbc2 --- /dev/null +++ b/views/mods/mod_surfaceproduct/mail_row.html.phtml @@ -0,0 +1,20 @@ +<?php
+
+ /**
+ * Template für die Intergration der FlächenProdukt-Daten in die HTML Kunden- und Adminmail
+ */
+
+?>
+<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos"> </td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Bemessungen', 'wpsg'); ?></td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name">
+ <?php if (($this->hasMod('wpsg_mod_surfaceproduct_mode')) == '1') {?>
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+ <?php } else {?>
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+ <?php } ?>
+ </td>
+</tr>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/mail_row.phtml b/views/mods/mod_surfaceproduct/mail_row.phtml new file mode 100644 index 0000000..685c927 --- /dev/null +++ b/views/mods/mod_surfaceproduct/mail_row.phtml @@ -0,0 +1,21 @@ +<?php
+
+ /**
+ * Template für die Intergration der FlächenProdukt-Daten
+ *
+ */
+
+?>
+<?php if (($this->hasMod('wpsg_mod_surfaceproduct_mode')) == '1') {?>
+
+<?php echo wpsg_pad_left(__('Bemessungen', 'wpsg').' ', 15); ?>: <?php echo $this->view['wpsg_mod_surface']['']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+<?php } else {?>
+
+<?php echo wpsg_pad_left(__('Bemessungen', 'wpsg').' ', 15); ?>:
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/overview_row.phtml b/views/mods/mod_surfaceproduct/overview_row.phtml new file mode 100644 index 0000000..e2437d5 --- /dev/null +++ b/views/mods/mod_surfaceproduct/overview_row.phtml @@ -0,0 +1,27 @@ +<?php
+
+ /**
+ * Template für die Anzeige der FlächenProdukte im Overview
+ */
+
+?>
+<div class="product_info">
+
+ <div>
+ <span class="fa fa-cut"></span>
+ <?php echo __('Bemessungen', 'wpsg');?>:
+ <strong><?php if (($this->hasMod('wpsg_mod_surfaceproduct_mode')) == '1') {?>
+
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+ <?php } else {?>
+
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_length']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?> x
+ <?php echo $this->view['wpsg_mod_surface']['surfaceproduct_running_both']; ?><?php echo $this->view['wpsg_mod_surface']['wpsg_mod_surfaceproduct_einheit']; ?>
+
+ <?php } ?></strong>
+
+ </div>
+
+</div>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/product.phtml b/views/mods/mod_surfaceproduct/product.phtml new file mode 100644 index 0000000..782a9e4 --- /dev/null +++ b/views/mods/mod_surfaceproduct/product.phtml @@ -0,0 +1,42 @@ +<?php
+
+ /**
+ * Template für die Flächenprodukte wird vom Produkttemplate z.B. standard.phtml geladen
+ */
+
+?>
+<?php /* Flächenprodukt Anzeige START */ ?>
+<?php if ($this->hasMod('wpsg_mod_surfaceproduct') && $this->get_option('wpsg_mod_surfaceproduct_productactiv') == '1') { ?>
+
+ <?php if (($this->hasMod('wpsg_mod_surfaceproduct_mode')) == '1') {?>
+
+ <?php /* Flächenprodukt (Höhe x Breite) */ ?>
+ <span class="label label_surfaceproduct">
+ <label class="surfaceproduct_length"><?php echo wpsg_translate (__('Bitte die Länge eintragen [in #1#]:', 'wpsg')); ?></label>
+ <input />
+ <label class="surfaceproduct_both"><?php echo wpsg_translate (__('Bitte die Breite eintragen [in #1#]:', 'wpsg')); ?></label>
+ <input />
+ </span>
+
+ <?php /* Lagerbestand beachten --> St. zu Quadratmeter */ ?>
+
+ <?php } else {?>
+
+ <?php /* Flächenprodukt (Laufmeter)*/ ?>
+ <span class="label label_surfaceproduct">
+ <label class="surfaceproduct_running_both"><?php echo wpsg_translate (__('Die Breite liegt bei #1# #2#', 'wpsg')); ?>
+ <?php echo $this->view['data']['wpsg_mod_surfaceproduct_einheit']; ?></label>
+ <label class="surfaceproduct_running_length"><?php echo wpsg_translate(__('Bitte die Laufmeter eintragen [in #1#]:', 'wpsg')); ?>
+ <input />
+ </span>
+
+ <br />
+
+ <?php echo wpsg_translate (__('Laufmeterlänge bitte eintragen [in #1#]:', 'wpsg')); ?>
+
+
+ <?php /* Lagerbestand beachten --> St. zu Laufmeter */ ?>
+
+ <?php } ?>
+
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/produkt_edit_sidebar.phtml b/views/mods/mod_surfaceproduct/produkt_edit_sidebar.phtml new file mode 100644 index 0000000..c92a617 --- /dev/null +++ b/views/mods/mod_surfaceproduct/produkt_edit_sidebar.phtml @@ -0,0 +1,58 @@ +<php
+
+ /**
+ * Integriert die FlächenProdukt-Einstellungen in das Produkt
+ * Es werden folgende Module in Kombination empfohlen: Staffelpreise (Staffelung von Flächeneinheiten), Produktvarianten (Spezifizierunge mit Größen, Farben, Druckmöglichkeiten, ...), Bestellupload (Bilderupload pro Produkt)
+ */
+
+?>
+<?php echo wpsg_drawForm_AdminboxStart(__('Berechnungsgrundlage für das FlächenProdukt', 'wpsg')); ?>
+
+ <?php /* Druckereiprodukt? --> Preisberechnungssonderfall (hinzufügen von Optionen in Varianten */ ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_surfaceproduct[wpsg_mod_surfaceproduct_productactiv]', __('Produkt ist ein Druckereiprodukt', 'wpsg'), wpsg_getStr($this->view['data']['wpsg_mod_surfaceproduct_productactiv'], '0'), array('help' => 'wpsg_mod_surfaceproductactiv')); ?>
+
+ <div class="wpsg_mod_surfaceproduct_product wpsg_mod_surfaceproduct_product_1">
+
+ <br />
+
+ <?php echo wpsg_drawForm_Select('wpsg_mod_surfaceproduct[wpsg_mod_surfaceproduct_mode]', __('Eingabetyp', 'wpsg'), array(
+ wpsg_mod_surfaceproduct::MODE_HEIGHTWIDE => __('Höhe x Breite', 'wpsg'),
+ wpsg_mod_surfaceproduct::MODE_RUNNING => __('Laufmeter', 'wpsg')
+ ), $this->view['data']['wpsg_mod_surfaceproduct_mode'], array('help' => 'wpsg_mod_surfaceproduct_mode')); ?>
+ <div id="wpsg_mod_surfaceproduct_mode_<?php echo wpsg_mod_surfaceproduct::MODE_RUNNING; ?>" class="wpsg_mod_surfaceproduct_mode">
+ <?php echo wpsg_drawForm_Input('wpsg_mod_surfaceproduct[wpsg_mod_surfaceproduct_mode_running]', __('vordefinierte Breite:', 'wpsg'), $this->view['data']['wpsg_mod_surfaceproduct_mode_running'], array('help' => 'wpsg_mod_surfaceproduct_mode_running')); ?>
+ </div>
+ <?php echo wpsg_drawForm_Text(__('Einheit:', 'wpsg'), $this->view['data']['wpsg_mod_surfaceproduct_einheit'], array('help' => 'wpsg_mod_surfaceproduct_einheit')); ?>
+ <div id="wpsg_mod_surfaceproduct_mode_<?php echo wpsg_mod_surfaceproduct::MODE_HEIGHTWIDE; ?>" class="wpsg_mod_surfaceproduct_mode"></div>
+
+ </div>
+
+ <br />
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_surfaceproduct"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Druckereimoduls', 'wpsg'); ?></a>
+
+
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_surfaceproduct_productactiv').bind('change', function() {
+
+ jQuery('.wpsg_mod_surfaceproduct_product').hide();
+ if (jQuery(this).prop('checked')) jQuery('.wpsg_mod_surfaceproduct_product_1').show();
+
+ } ).change();
+
+
+ jQuery('#wpsg_mod_surfaceproduct_mode').on('change', function() {
+
+ jQuery('.wpsg_mod_surfaceproduct_mode').hide();
+ jQuery ('#wpsg_mod_surfaceproduct_mode_'+jQuery(this).val()).show();
+
+ } );
+
+ } );
+
+/* ]]> */</script>
\ No newline at end of file diff --git a/views/mods/mod_surfaceproduct/settings_edit.phtml b/views/mods/mod_surfaceproduct/settings_edit.phtml new file mode 100644 index 0000000..fcab241 --- /dev/null +++ b/views/mods/mod_surfaceproduct/settings_edit.phtml @@ -0,0 +1,13 @@ +<?php
+
+ /**
+ * Template für die Einstellungen des Moduls "FlächenProdukt"
+ */
+
+?>
+<?php /* Einheiten: m², cm², ... */ ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_surfaceproduct_einheit', __('Flächeneinheit', 'wpsg'), $this->get_option('wpsg_mod_surfaceproduct_einheit'), array('help' => 'wpsg_mod_surfaceproduct_einheit')); ?>
+<?php /* Auswahl von Vorgabe */ ?>
+
+<?php /* Faktor Frontend-Backend */ ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_surfaceproduct_faktor', __('Umrechnungsfaktor', 'wpsg'), $this->get_option('wpsg_mod_surfaceproduct_faktor'), array('help' => 'wpsg_mod_surfaceproduct_faktor')); ?>
|
