Subversion Repositories wpShopGermany4

Rev

Rev 6491 | Rev 7184 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4313 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Anfrageseite
5
	 */
6
 
7
 
8
	//wpsg_debug($this->view['requestlist']);
9
 
10
?>
4322 thomas 11
<script type="text/javascript">/* <![CDATA[ */
12
 
13
	jQuery(document).ready(function() {
14
 
15
		<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
16
 
17
		if (typeof jQuery.validationEngine == "object")
18
		{
19
 
20
			jQuery("#form-step2").validationEngine('attach', {promptPosition : "bottomLeft", scroll: false});
6491 hartmut 21
 
4322 thomas 22
			jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
6491 hartmut 23
				jQuery("#form-step2").validationEngine('detach');
4322 thomas 24
			});
25
 
26
		}
27
 
28
		<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
29
 
30
		jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
31
		jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
6491 hartmut 32
		jQuery("#form-step2").validate( {
4322 thomas 33
			ignore: '',
34
			errorClass: 'wpsg_error',
35
			onsubmit: false,
36
			showErrors: function(errorMap, errorList) {
37
 
6491 hartmut 38
				this.defaultShowErrors();
4322 thomas 39
 
40
			}
6491 hartmut 41
		} );
4322 thomas 42
 
6491 hartmut 43
		jQuery('#wpsg_requestbutton').bind('click', function() {
4322 thomas 44
 
45
			var bReturn = jQuery('#form-step2').validate().form();
46
			if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
47
			return bReturn;
6491 hartmut 48
 
4322 thomas 49
		} );
50
 
51
		<?php } ?>
52
 
53
		jQuery('.wpsg_checkout input').bind('keyup', function(e) {
54
 
55
			if(e.keyCode == 13)
56
		    {
57
		        jQuery('#wpsg_checkout2button').click();
58
		    }
59
 
60
		} );
61
 
62
	} );
6491 hartmut 63
 
4322 thomas 64
/* ]]> */</script>
4313 daniel 65
<div class="wpsg_mod_request_requestpage">
66
 
67
	<?php echo $this->writeFrontendMessage(); ?>
68
 
69
	<?php if (wpsg_isSizedArray($this->view['requestlist']['products'])) { ?>
70
 
71
		<form id="wpsg_requestpage_form" name="wpsg_requestpage_form"  method="post" action="<?php echo $this->callMod('wpsg_mod_request', 'getRequestPageUrl'); ?>">
72
 
73
			<h2><?php echo __('Produkte auf Ihrer Anfrageliste', 'wpsg'); ?></h2>
74
 
75
			<div class="wpsg_spacer"></div>
76
 
77
			<table>
78
				<thead>
79
					<tr>
80
						<th class="wpsg_cell_action">&nbsp;</th>
81
						<th class="wpsg_cell_amount"><?php echo __('Anzahl', 'wpsg'); ?></th>
82
						<th class="wpsg_cell_price"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
83
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
84
						<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
85
						<?php } ?>
6491 hartmut 86
						<th class="wpsg_cell_sumprice"><?php echo __('Gesamtpreis', 'wpsg'); ?></th>
4313 daniel 87
					</tr>
88
				</thead>
89
				<tbody>
90
 
91
					<?php foreach ($this->view['requestlist']['products'] as $request_product) { ?>
92
					<tr class="wpsg_row_product1">
93
						<td class="wpsg_cell_action" rowspan="<?php echo (2 + $request_product['addRowspan']); ?>">
94
 
95
							<a class="wpsg_requestpage_removelink" href="<?php echo $this->callMod('wpsg_mod_request', 'getRemoveLinkURL', array($request_product['product_index'])); ?>" title="<?php echo __('Produkt von Anfrageliste entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie das Produkt aus der Anfrageliste entfernen möchten?', 'wpsg'); ?>');">
96
								<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
97
							</a>
98
 
99
						</td>
100
						<td class="wpsg_cell_name" colspan="<?php echo $this->view['addColspan'] + 3; ?>">
101
 
102
							<?php /* Produktbild BEGIN */ ?>
6491 hartmut 103
							<?php if ($this->get_option('wpsg_mod_request_requestpageimage') == '1') {
4313 daniel 104
 
6491 hartmut 105
								if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);
106
								else {
107
 
108
									if (isset($request_product['product_data']['product_key'])) {
109
										//$image = $this->imagehandler->getAttachmentID($this->view['product_data']['product_key']);
110
										$image = $this->imagehandler->getAttachmentID($request_product['product_data']['product_key']);
111
									} else {
112
										$arImages = $this->imagehandler->getAttachmentIDs($request_product['product_data']['product_id']);
113
										$image = $arImages[0];
114
									}
115
 
116
								}
117
								//if (wpsg_isSizedString($image)) echo wp_get_attachment_image($image, 'medium', false, array());
4313 daniel 118
 
119
							?>
6491 hartmut 120
							<?php if (wpsg_isSizedString($image)) { ?>
4313 daniel 121
							<div class="wpsg_basket_productimage">
6491 hartmut 122
								<?php //$href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
123
								<?php //$imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
124
								<?php echo wp_get_attachment_image($image, array(50, 50), false, array()); ?>
125
								<?php //echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>
4313 daniel 126
							</div>
127
							<?php } ?>
128
							<?php } ?>
129
							<?php /* Produktbild ENDE */ ?>
130
 
131
							<?php if ($this->getProduktLink($request_product)) { ?><a href="<?php echo $this->getProduktLink($request_product); ?>"><?php } ?>
132
							<?php echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>
133
							<?php if ($this->getProduktLink($request_product)) { ?></a><?php } ?>
134
						</td>
135
					</tr>
136
					<tr class="wpsg_row_product2">
137
						<td class="wpsg_cell_amount">
6491 hartmut 138
							<input type="text" style="padding:0.3em;" name="wpsg[amount][<?php echo $request_product['product_index']; ?>]" value="<?php echo wpsg_hspc($request_product['amount']); ?>" size="3" />
4313 daniel 139
						</td>
140
						<td class="wpsg_cell_price">
141
							<?php echo wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')); ?>
142
						</td>
143
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
144
						<td class="wpsg_cell_mwst">
145
							<?php echo wpsg_ff($request_product['product_data']['mwst_value'], '%'); ?>
146
						</td>
147
						<?php } ?>
148
						<td class="wpsg_cell_sumprice">
149
							<?php echo wpsg_ff($request_product['price'] * $request_product['amount'], $this->get_option('wpsg_currency')); ?>
150
						</td>
151
					</tr>
152
 
153
					<?php /* Variantenanzeige im Produkt BEGIN */ ?>
6165 hartmut 154
					<?php if ($this->hasMod('wpsg_mod_productvariants') && $this->callMod('wpsg_mod_productvariants', 'isVariantsProductKey', array($request_product['product_key']))) { ?>
4313 daniel 155
					<tr class="wpsg_row_product_varianten">
156
						<td class="wpsg_cell_label"><?php echo __('Variante', 'wpsg'); ?>:</td>
157
						<td class="wpsg_cell_value" colspan="<?php echo (2 + $this->view['addColspan']); ?>"><?php echo wpsg_hspc($request_product['variantenInfo']['key']); ?></td>
158
					</tr>
159
					<?php } ?>
160
					<?php /* Variantenanzeige im Produkt ENDE */ ?>
161
 
162
					<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
163
					<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
164
					<tr class="wpsg_row_product_weight">
165
						<td class="wpsg_cell_label"><?php echo __('Gewicht', 'wpsg'); ?>:</td>
166
						<td class="wpsg_cell_value" colspan="<?php echo (2 + $this->view['addColspan']); ?>"><?php echo wpsg_ff($request_product['product_data']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?></td>
6491 hartmut 167
					</tr>
4313 daniel 168
					<?php } ?>
169
					<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
170
 
4733 thomas 171
 
4313 daniel 172
					<?php /* Produktvariablen BEGIN */ ?>
4733 thomas 173
					<?php if ($this->hasMod('wpsg_mod_productvars') && wpsg_isSizedInt($this->get_option('wpsg_mod_request_productvars')) && wpsg_isSizedArray($request_product['product_data']['pv'])) { ?>
4313 daniel 174
					<?php foreach ($request_product['product_data']['pv'] as $pv) { ?>
175
					<tr class="wpsg_row_product_pv">
176
						<td class="wpsg_cell_label">
177
							<label class="wpsg_checkout" for="wpsg_request_pv_<?php echo $pv['id']; ?>_<?php echo $request_product['product_index']; ?>">
178
								<?php echo wpsg_hspc($pv['name']); ?>
4733 thomas 179
								<?php if (wpsg_isSizedInt($pv['pflicht'])) { ?><span class="wpsg_required">*</span><?php } ?>:
4313 daniel 180
							</label>
181
						</td>
182
						<td class="wpsg_cell_value" colspan="<?php echo (2 + $this->view['addColspan']); ?>">
183
 
184
							<?php if ($pv['typ'] === '1') { $possible_options = explode('|', $pv['auswahl']); /* Auswahl */ ?>
5382 daniel 185
							<select id="wpsg_request_pv_<?php echo $pv['id']; ?>_<?php echo $request_product['product_index']; ?>" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" class="<?php echo ((in_array("pv_".$pv['id'], (array)$this->view['error']))?'wpsg_error':''); ?>">
4313 daniel 186
								<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
187
								<?php foreach ((array)$possible_options as $option) { ?>
188
								<option value="<?php echo wpsg_hspc($option) ?>" <?php echo (($option == wpsg_hspc(wpsg_getStr($request_product['pv'][$pv['id']])))?'selected="selected"':''); ?>><?php echo wpsg_hspc($option); ?></option>
6491 hartmut 189
								<?php } ?>
4313 daniel 190
							</select>
191
							<?php } else if ($pv['typ'] === '2') { /* Text */ ?>
5382 daniel 192
							<input id="wpsg_request_pv_<?php echo $pv['id']; ?>_<?php echo $request_product['product_index']; ?>" type="text" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="<?php echo wpsg_hspc(wpsg_getStr($request_product['pv'][$pv['id']])); ?>" class="<?php echo ((in_array("pv_".$pv['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" />
4313 daniel 193
							<?php } else if ($pv['typ'] === '3') { /* Checkbox */ ?>
194
							<input type="hidden" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="0" />
5382 daniel 195
							<input id="wpsg_request_pv_<?php echo $pv['id']; ?>_<?php echo $request_product['product_index']; ?>" type="checkbox" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="1" <?php echo ((wpsg_isSizedInt($request_product['pv'][$pv['id']]))?'checked="checked"':''); ?> class="<?php echo ((in_array("pv_".$pv['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" />
4313 daniel 196
							<?php } ?>
6491 hartmut 197
 
4313 daniel 198
						</td>
199
					</tr>
200
					<?php } ?>
201
					<?php } ?>
202
					<?php /* Produktvariablen ENDE */ ?>
203
 
204
					<?php } ?>
6491 hartmut 205
 
206
				</tbody>
4313 daniel 207
				<tfoot>
208
					<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
209
					<tr class="wpsg_cell_total_price">
210
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
211
						<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
212
					</tr>
213
					<tr class="wpsg_cell_total_price">
214
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
215
						<td class="wpsg_cell_total_brutto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
216
					</tr>
217
					<?php } else { ?>
218
					<tr class="wpsg_cell_total_price">
219
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
220
						<td class="wpsg_cell_total_brutto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
221
					</tr>
222
					<tr class="wpsg_cell_total_price">
223
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
224
						<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
225
					</tr>
226
					<?php } ?>
227
 
228
					<?php /* Gewichtsanzeige BEGIN */ ?>
229
					<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?>
230
					<tr class="wpsg_cell_total_weight">
231
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtgewicht', 'wpsg'); ?>:</td>
232
						<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
233
					</tr>
234
					<?php } ?>
235
					<?php /* Gewichtsanzeige ENDE */ ?>
236
 
237
				</tfoot>
238
			</table>
6491 hartmut 239
 
4322 thomas 240
			<input type="submit" name="submit_requestpage_refresh" id="wpsg_requestbutton" class="wpsg_mod_request_button_refresh" value="<?php echo __('Anfrageliste aktualisieren', 'wpsg'); ?>" />
4313 daniel 241
 
242
			<?php /* Anfang Bestellvariablen */ ?>
6491 hartmut 243
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>
4313 daniel 244
			<h2><?php echo __('Zusätzliche Angaben', 'wpsg'); ?></h2>
245
			<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
6491 hartmut 246
			<div class="wpsg_checkoutblock" id="wpsg_checkoutblock_<?php echo $ov['id']; ?>">
4313 daniel 247
				<?php if ($ov['typ'] === '1') { $possible_options = explode('|', $ov['auswahl']); /* Auswahl */ ?>
6491 hartmut 248
				<label class="wpsg_checkout_typ_<?php echo $ov['typ']; ?> wpsg_checkout" for="wpsg_ov_<?php echo $ov['id']; ?>"><?php echo wpsg_hspc($ov['name']); ?><?php if (wpsg_isSizedInt($ov['pflicht'])) { ?>&nbsp;<span class="wpsg_required">*</span><?php } ?>:</label>
4313 daniel 249
				<select name="wpsg[request][ov][<?php echo $ov['id']; ?>]" class="<?php echo ((wpsg_isSizedInt($ov['pflicht']))?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ov_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_ov_<?php echo $ov['id']; ?>">
250
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
251
					<?php foreach ($possible_options as $option) { ?>
252
					<option value="<?php echo wpsg_hspc($option) ?>" <?php echo (($option == wpsg_hspc(wpsg_getStr($this->view['requestlist']['ov'][$ov['id']])))?'selected="selected"':''); ?>><?php echo wpsg_hspc($option); ?></option>
253
					<?php } ?>
254
				</select>
255
				<?php } else if ($ov['typ'] === '2') { /* Textfeld */ ?>
4317 daniel 256
				<label class="wpsg_checkout_typ_<?php echo $ov['typ']; ?> wpsg_checkout" for="wpsg_ov_<?php echo $ov['id']; ?>"><?php echo wpsg_hspc($ov['name']); ?><?php if (wpsg_isSizedInt($ov['pflicht'])) { ?> <span class="wpsg_required">*</span><?php } ?>:</label>
4313 daniel 257
				<input type="text" class="<?php echo ((wpsg_isSizedInt($ov['pflicht']))?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ov_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_ov_<?php echo $ov['id']; ?>" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['ov'][$ov['id']])); ?>" />
258
				<?php } else if ($ov['typ'] === '3') { /* Checkbox */ ?>
259
				<input type="hidden" value="0" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" />
4317 daniel 260
				<input type="checkbox" <?php echo ((wpsg_isSizedInt($this->view['requestlist']['ov'][$ov['id']]))?'checked="checked"':''); ?> class="<?php echo ((wpsg_isSizedInt($ov['pflicht']))?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ov_".$ov['id'], (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_ov_<?php echo $ov['id']; ?>" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" value="1" />
261
				<label class="wpsg_checkout_typ_<?php echo $ov['typ']; ?> wpsg_checkout" for="wpsg_ov_<?php echo $ov['id']; ?>"><?php echo wpsg_hspc($ov['name']); ?><?php if (wpsg_isSizedInt($ov['pflicht'])) { ?> <span class="wpsg_required">*</span><?php } ?></label>
6491 hartmut 262
				<?php } ?>
263
			</div>
4313 daniel 264
			<?php } ?>
265
			<?php } ?>
266
			<?php /* Ende Bestellvariablen */ ?>
267
 
6491 hartmut 268
			<h2><?php echo __('Kontaktdaten', 'wpsg'); ?></h2>
269
 
4313 daniel 270
			<div class="wpsg_checkoutblock" id="wpsg_firma">
6491 hartmut 271
				<label for="wpsg_firma" class="wpsg_checkout"><?php echo __("Firma", "wpsg"); ?>
4313 daniel 272
				<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
273
				</label>
274
				<input class="<?php echo (($this->view['pflicht']['firma'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("firma", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_firma" name="wpsg[request][customer][firma]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['firma'])); ?>" />
275
			</div>
276
 
277
			<div class="wpsg_checkoutblock" id="wpsg_anrede">
278
				<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
279
				<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
280
				<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[request][customer][title]">
281
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
6107 hartmut 282
					<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
283
					<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['requestlist']['customer']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
6491 hartmut 284
				<?php } ?>
4313 daniel 285
				</select>
286
			</div>
287
 
288
			<div class="wpsg_checkoutblock" id="wpsg_vorname">
6491 hartmut 289
				<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
4313 daniel 290
				<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
291
				</label>
292
				<input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[request][customer][vname]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['vname'])); ?>" />
293
			</div>
294
 
295
			<div class="wpsg_checkoutblock" id="wpsg_name">
296
				<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
297
				<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
298
				</label>
299
				<input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[request][customer][name]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['name'])); ?>" />
300
			</div>
301
 
302
			<div class="wpsg_checkoutblock" id="wpsg_email">
6491 hartmut 303
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
4313 daniel 304
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
305
				</label>
306
				<input class="<?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email" name="wpsg[request][customer][email]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['email'])); ?>" />
307
			</div>
308
 
309
			<?php if (wpsg_isSizedInt($this->view['pflicht']['emailconfirm'])) { ?>
310
			<div class="wpsg_checkoutblock" id="wpsg_email2">
6491 hartmut 311
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>
4313 daniel 312
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
313
				</label>
314
				<input class="<?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email2" name="wpsg[request][customer][email2]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['email2'])); ?>" />
315
			</div>
316
			<?php } ?>
317
 
318
			<div class="wpsg_checkoutblock" id="wpsg_geburtsdatum">
5382 daniel 319
				<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
4313 daniel 320
				<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
321
				</label>
322
				<input class="<?php echo (($this->view['pflicht']['geb'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("geb", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="geb" name="wpsg[request][customer][geb]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['geb'])); ?>" />
323
			</div>
6491 hartmut 324
 
4313 daniel 325
			<div class="wpsg_checkoutblock" id="wpsg_fax">
326
				<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
327
				<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
328
				</label>
329
				<input class="<?php echo (($this->view['pflicht']['fax'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("fax", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="fax" name="wpsg[request][customer][fax]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['fax'])); ?>" />
330
			</div>
331
 
332
			<div class="wpsg_checkoutblock" id="wpsg_telefon">
333
				<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
334
				<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
335
				</label>
336
				<input class="<?php echo (($this->view['pflicht']['tel'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("tel", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="tel" name="wpsg[request][customer][tel]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['tel'])); ?>" />
337
			</div>
338
 
339
			<div class="wpsg_checkoutblock" id="wpsg_strasse">
6491 hartmut 340
				<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
4313 daniel 341
				<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
342
				</label>
343
				<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[request][customer][strasse]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['strasse'])); ?>" />
344
			</div>
345
 
346
			<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
6491 hartmut 347
				<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
4313 daniel 348
				<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
349
				</label>
350
				<input class="<?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[request][customer][plz]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['plz'])); ?>" />
351
			</div>
352
 
353
			<div class="wpsg_checkoutblock" id="wpsg_ort">
6491 hartmut 354
				<label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?>
4313 daniel 355
				<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
356
				</label>
357
				<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[request][customer][ort]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['ort'])); ?>" />
358
			</div>
359
 
360
			<div class="wpsg_checkoutblock" id="wpsg_land">
6491 hartmut 361
				<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
4313 daniel 362
				<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
6491 hartmut 363
				</label>
4313 daniel 364
				<select name="wpsg[request][customer][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
365
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
366
					<?php foreach ($this->view['countries'] as $oCountry) { ?>
367
					<option value="<?php echo wpsg_hspc($oCountry->id); ?>" <?php echo (($oCountry->id == $this->view['requestlist']['customer']['land'])?'selected="selected"':((!wpsg_isSizedInt($this->view['requestlist']['customer']['land']) && $this->get_option('wpsg_defaultland') == $oCountry->id)?'selected="selected"':'')); ?>><?php echo wpsg_hspc($oCountry->getName()); ?></option>
368
					<?php } ?>
369
				</select>
370
			</div>
371
 
372
			<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
6491 hartmut 373
				<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
4313 daniel 374
				<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
375
				</label>
376
				<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[request][customer][ustidnr]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['ustidnr'])); ?>" />
377
			</div>
378
 
379
			<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
380
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
381
			<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
382
			<div class="wpsg_checkoutblock">
5382 daniel 383
				<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
4313 daniel 384
					<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
6491 hartmut 385
				</label>
386
				<?php if ($c['typ'] == '0') { // Textfeld ?>
5382 daniel 387
				<input id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" type="text" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id])); ?>" />
388
				<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
389
					<?php if ($c['show'] == '0') { ?>
4317 daniel 390
					<select id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]">
4313 daniel 391
						<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
392
						<?php foreach ((array)$arAuswahl as $a) { ?>
393
						<option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id]))?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
394
						<?php } ?>
395
					</select>
396
					<?php } else if ($c['typ'] == '2') { // Checkbox ?>
6491 hartmut 397
					<input type="hidden" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" value="0" />
4317 daniel 398
					<input id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> checkbox" type="checkbox" value="1" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" value="1" <?php echo ((wpsg_getStr($this->view['requestlist']['customer']['custom'][$c_id]) == '1')?'checked="checked"':''); ?> />
6491 hartmut 399
					<?php } ?>
5382 daniel 400
				<?php } ?>
4313 daniel 401
			</div>
402
			<?php } } ?>
403
			<?php } ?>
404
			<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
6491 hartmut 405
 
4313 daniel 406
			<h2><?php echo __('Kommentar', 'wpsg'); ?></h2>
407
 
408
			<div class="wpsg_spacer"></div>
409
 
410
			<div class="wpsg_inner wpsg_commentblock">
411
				<textarea name="wpsg[request][customer][comment]" id="wpsg_request_comment"><?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['comment'])); ?></textarea>
412
			</div>
413
 
4317 daniel 414
			<br />
415
 
4313 daniel 416
			<input type="submit" name="submit_requestpage" class="wpsg_mod_request_button_submit" value="<?php echo __('Anfrage starten', 'wpsg'); ?>" />
6491 hartmut 417
 
4317 daniel 418
			<br />
6491 hartmut 419
 
4313 daniel 420
		</form>
421
 
422
	<?php } else { ?>
423
	<p class="wpsg_mod_request_requestpage_noentrys"><?php echo __('Es befinden sich keine Produkte auf der Anfrageliste.', 'wpsg'); ?>
424
	<?php } ?>
425
 
426
</div>