Subversion Repositories wpShopGermany4

Rev

Rev 6165 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 */ ?>
6165 hartmut 34
		<?php if ($this->hasMod('wpsg_mod_productvariants') && $this->callMod('wpsg_mod_productvariants', 'isVariantsProductKey', array($request_product['product_key']))) { ?>
4317 daniel 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']); ?>">&nbsp;</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']); ?>">&nbsp;</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'),
6053 hartmut 156
			'strasse' => __('Straße', 'wpsg'),
7247 daniel 157
			'nr' => __('Hausnummer', 'wpsg'),
4317 daniel 158
			'plz' => __('PLZ', 'wpsg'),
159
			'ort' => __('Ort', 'wpsg'),
160
			'ustidnr' => __('UStIdNr.', 'wpsg')
161
		);
162
 
163
	?>
164
	<?php foreach ($arFields as $field_name => $label) { ?>
165
	<tr>
166
		<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo wpsg_hspc($label); ?>:</td>
167
		<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1"><?php
168
 
169
			if ($field_name == "email")
170
			{
171
 
172
				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>';
173
 
174
			}
175
			else
176
			{
177
 
178
				echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer'][$field_name]));
179
 
180
			}
181
 
182
		?></td>
183
	</tr>
184
	<?php } ?>
185
 
186
	<?php /* Automatische Einbindung der benutzerdefinierten Felder BEGIN */ ?>
187
	<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
188
	<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
189
	<tr>
190
		<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo __($c['name'], 'wpsg'); ?></td>
191
		<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1">
192
			<?php if ($c['typ'] == '2') { ?>
193
				<?php if (wpsg_isSizedInt($this->view['requestlist']['customer']['custom'][$c_id])) { ?><?php echo __('Ja', 'wpsg'); ?><?php } else { ?><?php echo __('Nein', 'wpsg'); ?><?php } ?>
194
			<?php } else { ?>
195
				<?php echo wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id]); ?>
196
			<?php } ?>
197
		</td>
198
	</tr>
199
	<?php } } ?>
200
	<?php } ?>
201
	<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
202
 
203
</table>