4313 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* HTML E-Mail Template für die Daten der Anfrage
|
|
|
5 |
* wird von adminmail_html.phtml und customermail_html.phtml verwendet
|
|
|
6 |
*/
|
|
|
7 |
|
4317 |
daniel |
8 |
?>
|
|
|
9 |
<div class="baskettable_wrap">
|
|
|
10 |
<table class="baskettable" cellpadding="2" cellspacing="0" style="cell-padding:4px;">
|
|
|
11 |
<tr>
|
|
|
12 |
<td><?php echo __('Pos', 'wpsg'); ?></td>
|
|
|
13 |
<td><?php echo __('Produkt', 'wpsg'); ?></td>
|
|
|
14 |
<td><?php echo __('Stückpreis', 'wpsg'); ?></td>
|
|
|
15 |
<?php if (sizeof($this->view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
16 |
<td><?php echo __('MwSt.', 'wpsg'); ?></td>
|
|
|
17 |
<?php } ?>
|
|
|
18 |
<td><?php echo __('Anzahl', 'wpsg'); ?></td>
|
|
|
19 |
<td class="col_sum"><?php echo __('Summe', 'wpsg'); ?></td>
|
|
|
20 |
</tr>
|
|
|
21 |
<?php $i = 0; foreach ((array)$this->view['requestlist']['products'] as $product_index => $request_product) { $i ++; ?>
|
|
|
22 |
<tr>
|
|
|
23 |
<td><?php echo $i; ?>.</td>
|
|
|
24 |
<td><?php echo ((wpsg_isSizedString($request_product['product_data']['detailname']))?$request_product['product_data']['detailname']:$request_product['product_data']['name']); ?></td>
|
|
|
25 |
<td><?php echo wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
26 |
<?php if (sizeof($this->view['requestlist']['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
27 |
<td><?php echo wpsg_ff($request_product['product_data']['mwst_value'], '%'); ?></td>
|
|
|
28 |
<?php } ?>
|
|
|
29 |
<td><?php echo $request_product['amount']; ?></td>
|
|
|
30 |
<td class="col_sum"><?php echo wpsg_ff($request_product['price'] * $request_product['amount'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
31 |
</tr>
|
|
|
32 |
|
|
|
33 |
<?php /* Variantenanzeige im Produkt BEGIN */ ?>
|
|
|
34 |
<?php if ($this->hasMod('wpsg_mod_varianten') && $this->callMod('wpsg_mod_varianten', 'isVariantsProductKey', array($request_product['product_key']))) { ?>
|
|
|
35 |
<tr>
|
|
|
36 |
<td colspan="2"><?php echo __('Variante', 'wpsg'); ?>:</td>
|
|
|
37 |
<td colspan="<?php echo (3 + $this->view['addColspan']); ?>"><?php echo wpsg_hspc($request_product['variantenInfo']['key']); ?></td>
|
|
|
38 |
</tr>
|
|
|
39 |
<?php } ?>
|
|
|
40 |
<?php /* Variantenanzeige im Produkt ENDE */ ?>
|
|
|
41 |
|
|
|
42 |
<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
|
|
|
43 |
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
|
|
|
44 |
<tr>
|
|
|
45 |
<td colspan="2"><?php echo __('Gewicht', 'wpsg'); ?>:</td>
|
|
|
46 |
<td colspan="<?php echo (3 + $this->view['addColspan']); ?>"><?php echo wpsg_ff($request_product['product_data']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?></td>
|
|
|
47 |
</tr>
|
|
|
48 |
<?php } ?>
|
|
|
49 |
<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
|
|
|
50 |
|
|
|
51 |
<?php /* Produktvariablen BEGIN */ ?>
|
|
|
52 |
<?php if ($this->hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['pv'])) { ?>
|
|
|
53 |
<?php foreach ($request_product['product_data']['pv'] as $pv) { ?>
|
|
|
54 |
<tr>
|
|
|
55 |
<td colspan="2"><?php echo wpsg_hspc($pv['name']); ?>:</td>
|
|
|
56 |
<td colspan="<?php echo (3 + $this->view['addColspan']); ?>">
|
|
|
57 |
<?php if ($pv['typ'] === '3') { ?>
|
|
|
58 |
<?php if (wpsg_isSizedInt($request_product['pv'][$pv['id']])) { ?><?php echo __('Ja', 'wpsg'); ?><?php } else { ?><?php echo __('Nein', 'wpsg'); ?><?php } ?>
|
|
|
59 |
<?php } else { ?>
|
|
|
60 |
<?php echo wpsg_hspc($request_product['pv'][$pv['id']]); ?>
|
|
|
61 |
<?php } ?>
|
|
|
62 |
</td>
|
|
|
63 |
</tr>
|
|
|
64 |
<?php } ?>
|
|
|
65 |
<?php } ?>
|
|
|
66 |
<?php /* Produktvariablen ENDE */ ?>
|
|
|
67 |
|
|
|
68 |
<?php } ?>
|
|
|
69 |
<tr><td colspan="<?php echo (5 + $this->view['addColspan']); ?>"> </td></tr>
|
|
|
70 |
|
|
|
71 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
|
|
|
72 |
<tr>
|
|
|
73 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
|
|
|
74 |
<td class="col_sum"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
75 |
</tr>
|
|
|
76 |
<?php foreach ((array)$this->view['requestlist']['tax'] as $tax_key => $tax) { ?>
|
|
|
77 |
<tr>
|
|
|
78 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $tax['name']); ?>:</td>
|
|
|
79 |
<td class="col_sum"><?php echo wpsg_ff($tax['tax_calc_value'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
80 |
</tr>
|
|
|
81 |
<?php } ?>
|
|
|
82 |
<tr>
|
|
|
83 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
|
|
|
84 |
<td class="col_sum"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
85 |
</tr>
|
|
|
86 |
<?php } else { ?>
|
|
|
87 |
<tr>
|
|
|
88 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
|
|
|
89 |
<td class="col_sum"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
90 |
</tr>
|
|
|
91 |
<?php foreach ((array)$this->view['requestlist']['tax'] as $tax_key => $tax) { ?>
|
|
|
92 |
<tr>
|
|
|
93 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $tax['name']); ?>:</td>
|
|
|
94 |
<td class="col_sum"><?php echo wpsg_ff($tax['tax_calc_value'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
95 |
</tr>
|
|
|
96 |
<?php } ?>
|
|
|
97 |
<tr>
|
|
|
98 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
|
|
|
99 |
<td class="col_sum"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
100 |
</tr>
|
|
|
101 |
<?php } ?>
|
|
|
102 |
|
|
|
103 |
<?php /* Gewichtsanzeige BEGIN */ ?>
|
|
|
104 |
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?>
|
|
|
105 |
<tr><td colspan="<?php echo (5 + $this->view['addColspan']); ?>"> </td></tr>
|
|
|
106 |
<tr>
|
|
|
107 |
<td colspan="<?php echo (4 + $this->view['addColspan']); ?>"><?php echo __('Gesamtgewicht', 'wpsg'); ?>:</td>
|
|
|
108 |
<td class="col_sum"><?php echo wpsg_ff($this->view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?></td>
|
|
|
109 |
</tr>
|
|
|
110 |
<?php } ?>
|
|
|
111 |
<?php /* Gewichtsanzeige ENDE */ ?>
|
|
|
112 |
|
|
|
113 |
</table>
|
|
|
114 |
</div>
|
|
|
115 |
|
|
|
116 |
<?php /* Bestellvariablen BEGIN */ ?>
|
|
|
117 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>
|
|
|
118 |
<h2><?php echo __('Zusätzliche Angaben', 'wpsg'); ?>:</h2>
|
|
|
119 |
|
|
|
120 |
<table class="contenttable">
|
|
|
121 |
<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
|
|
|
122 |
<tr>
|
|
|
123 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo wpsg_hspc($ov['name']); ?>:</td>
|
|
|
124 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1">
|
|
|
125 |
<?php if ($ov['typ'] === '3') { ?>
|
|
|
126 |
<?php if (wpsg_isSizedInt($this->view['requestlist']['ov'][$ov['id']])) { ?><?php echo __('Ja', 'wpsg'); ?><?php } else { ?><?php echo __('Nein', 'wpsg'); ?><?php } ?>
|
|
|
127 |
<?php } else { ?>
|
|
|
128 |
<?php echo wpsg_hspc($this->view['requestlist']['ov'][$ov['id']]); ?>
|
|
|
129 |
<?php } ?>
|
|
|
130 |
</td>
|
|
|
131 |
</tr>
|
|
|
132 |
<?php } ?>
|
|
|
133 |
</table>
|
|
|
134 |
<?php } ?>
|
|
|
135 |
<?php /* Bestellvariablen ENDE */ ?>
|
|
|
136 |
|
4870 |
daniel |
137 |
<?php if (wpsg_isSizedString($this->view['requestlist']['customer']['comment'])) { ?>
|
4869 |
roger |
138 |
<h2><?php echo __('Kommentar', 'wpsg'); ?>:</h2>
|
|
|
139 |
<p><?php echo wpsg_getStr($this->view['requestlist']['customer']['comment']); ?></p>
|
4870 |
daniel |
140 |
<?php } ?>
|
4869 |
roger |
141 |
|
4317 |
daniel |
142 |
<h2><?php echo __('Kontaktdaten', 'wpsg'); ?>:</h2>
|
|
|
143 |
|
|
|
144 |
<table class="contenttable">
|
|
|
145 |
<?php
|
|
|
146 |
|
|
|
147 |
// Hilfsarray, damit ich nicht so viel schreiben muss
|
|
|
148 |
$arFields = array(
|
|
|
149 |
'firma' => __('Firma', 'wpsg'),
|
|
|
150 |
'title' => __('Anrede', 'wpsg'),
|
|
|
151 |
'vname' => __('Vorname', 'wpsg'),
|
|
|
152 |
'name' => __('Name', 'wpsg'),
|
|
|
153 |
'email' => __('E-Mail', 'wpsg'),
|
|
|
154 |
'fax' => __('Fax', 'wpsg'),
|
|
|
155 |
'tel' => __('Tel.', 'wpsg'),
|
|
|
156 |
'strasse' => __('Strasse', 'wpsg'),
|
|
|
157 |
'plz' => __('PLZ', 'wpsg'),
|
|
|
158 |
'ort' => __('Ort', 'wpsg'),
|
|
|
159 |
'ustidnr' => __('UStIdNr.', 'wpsg')
|
|
|
160 |
);
|
|
|
161 |
|
|
|
162 |
?>
|
|
|
163 |
<?php foreach ($arFields as $field_name => $label) { ?>
|
|
|
164 |
<tr>
|
|
|
165 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo wpsg_hspc($label); ?>:</td>
|
|
|
166 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1"><?php
|
|
|
167 |
|
|
|
168 |
if ($field_name == "email")
|
|
|
169 |
{
|
|
|
170 |
|
|
|
171 |
echo '<a href="mailto:'.wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name])).'">'.wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name])).'</a>';
|
|
|
172 |
|
|
|
173 |
}
|
|
|
174 |
else
|
|
|
175 |
{
|
|
|
176 |
|
|
|
177 |
echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name]));
|
|
|
178 |
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
?></td>
|
|
|
182 |
</tr>
|
|
|
183 |
<?php } ?>
|
|
|
184 |
|
|
|
185 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder BEGIN */ ?>
|
|
|
186 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
|
|
|
187 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
|
|
188 |
<tr>
|
|
|
189 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo __($c['name'], 'wpsg'); ?></td>
|
|
|
190 |
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1">
|
|
|
191 |
<?php if ($c['typ'] == '2') { ?>
|
|
|
192 |
<?php if (wpsg_isSizedInt($this->view['requestlist']['customer']['custom'][$c_id])) { ?><?php echo __('Ja', 'wpsg'); ?><?php } else { ?><?php echo __('Nein', 'wpsg'); ?><?php } ?>
|
|
|
193 |
<?php } else { ?>
|
|
|
194 |
<?php echo wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id]); ?>
|
|
|
195 |
<?php } ?>
|
|
|
196 |
</td>
|
|
|
197 |
</tr>
|
|
|
198 |
<?php } } ?>
|
|
|
199 |
<?php } ?>
|
|
|
200 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
|
|
201 |
|
|
|
202 |
</table>
|