Subversion Repositories wpShopGermany4

Rev

Rev 6165 | Rev 6493 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6165 Rev 6491
Line 16... Line 16...
16
		
16
		
17
		if (typeof jQuery.validationEngine == "object")
17
		if (typeof jQuery.validationEngine == "object")
18
		{
18
		{
19
 
19
 
20
			jQuery("#form-step2").validationEngine('attach', {promptPosition : "bottomLeft", scroll: false});
20
			jQuery("#form-step2").validationEngine('attach', {promptPosition : "bottomLeft", scroll: false});
21
				
21
			
22
			jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
22
			jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
23
				jQuery("#form-step2").validationEngine('detach');						
23
				jQuery("#form-step2").validationEngine('detach');
24
			});
24
			});
25
 
25
 
26
		}
26
		}
27
		
27
		
28
		<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
28
		<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
29
 
29
 
30
		jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
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 } );
31
		jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
32
		jQuery("#form-step2").validate( { 
32
		jQuery("#form-step2").validate( {
33
			ignore: '',
33
			ignore: '',
34
			errorClass: 'wpsg_error',
34
			errorClass: 'wpsg_error',
35
			onsubmit: false,
35
			onsubmit: false,
36
			showErrors: function(errorMap, errorList) {
36
			showErrors: function(errorMap, errorList) {
37
 
37
 
38
				this.defaultShowErrors();	
38
				this.defaultShowErrors();
39
 
39
 
40
			}
40
			}
41
		} ); 
41
		} );
42
 
42
 
43
		jQuery('#wpsg_requestbutton').bind('click', function() { 
43
		jQuery('#wpsg_requestbutton').bind('click', function() {
44
 
44
 
45
			var bReturn = jQuery('#form-step2').validate().form();
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();
46
			if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
47
			return bReturn;
47
			return bReturn;
48
			  
48
			
49
		} );
49
		} );
50
		
50
		
51
		<?php } ?>
51
		<?php } ?>
52
 
52
 
53
		jQuery('.wpsg_checkout input').bind('keyup', function(e) {
53
		jQuery('.wpsg_checkout input').bind('keyup', function(e) {
Line 58... Line 58...
58
		    }
58
		    }
59
		    
59
		    
60
		} );
60
		} );
61
		
61
		
62
	} );
62
	} );
63
		
63
	
64
/* ]]> */</script>
64
/* ]]> */</script>
65
<div class="wpsg_mod_request_requestpage">
65
<div class="wpsg_mod_request_requestpage">
66
 
66
 
67
	<?php echo $this->writeFrontendMessage(); ?>
67
	<?php echo $this->writeFrontendMessage(); ?>
68
	
68
	
Line 81... Line 81...
81
						<th class="wpsg_cell_amount"><?php echo __('Anzahl', 'wpsg'); ?></th>
81
						<th class="wpsg_cell_amount"><?php echo __('Anzahl', 'wpsg'); ?></th>
82
						<th class="wpsg_cell_price"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
82
						<th class="wpsg_cell_price"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
83
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
83
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
84
						<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
84
						<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
85
						<?php } ?>
85
						<?php } ?>
86
						<th class="wpsg_cell_sumprice"><?php echo __('Gesamtpreis', 'wpsg'); ?></th>	
86
						<th class="wpsg_cell_sumprice"><?php echo __('Gesamtpreis', 'wpsg'); ?></th>
87
					</tr>
87
					</tr>
88
				</thead>
88
				</thead>
89
				<tbody>
89
				<tbody>
90
				
90
				
91
					<?php foreach ($this->view['requestlist']['products'] as $request_product) { ?>
91
					<?php foreach ($this->view['requestlist']['products'] as $request_product) { ?>
Line 98... Line 98...
98
							
98
							
99
						</td>
99
						</td>
100
						<td class="wpsg_cell_name" colspan="<?php echo $this->view['addColspan'] + 3; ?>">
100
						<td class="wpsg_cell_name" colspan="<?php echo $this->view['addColspan'] + 3; ?>">
101
						
101
						
102
							<?php /* Produktbild BEGIN */ ?>
102
							<?php /* Produktbild BEGIN */ ?>
103
							<?php if ($this->hasMod('wpsg_mod_produktbilder') && $this->get_option('wpsg_mod_request_requestpageimage') == '1') { 
103
							<?php if ($this->get_option('wpsg_mod_request_requestpageimage') == '1') {
104
						
104
						
105
								if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);						
105
								//if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);						
106
								else $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($request_product['product_id'])); 
106
								//else $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($request_product['product_id'])); 
-
 
107
 
-
 
108
								if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);
-
 
109
								else {
-
 
110
							
-
 
111
									if (isset($request_product['product_data']['product_key'])) {
-
 
112
										//$image = $this->imagehandler->getAttachmentID($this->view['product_data']['product_key']);
-
 
113
										$image = $this->imagehandler->getAttachmentID($request_product['product_data']['product_key']);
-
 
114
									} else {
-
 
115
										$arImages = $this->imagehandler->getAttachmentIDs($request_product['product_data']['product_id']);
-
 
116
										$image = $arImages[0];
-
 
117
									}
-
 
118
									
-
 
119
								}
-
 
120
								//if (wpsg_isSizedString($image)) echo wp_get_attachment_image($image, 'medium', false, array());
107
								
121
								
108
							?>
122
							?>
109
							<?php if (wpsg_isSizedArray($arBilder)) { ?>
123
							<?php if (wpsg_isSizedString($image)) { ?>
110
							<div class="wpsg_basket_productimage">
124
							<div class="wpsg_basket_productimage">
111
								<?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
125
								<?php //$href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
112
								<?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
126
								<?php //$imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
-
 
127
								<?php echo wp_get_attachment_image($image, array(50, 50), false, array()); ?>
113
								<img src="<?php echo $href[0]; ?>" width="30" height="30" alt="<?php echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>" />
128
								<?php //echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>
114
							</div>
129
							</div>
115
							<?php } ?>
130
							<?php } ?>
116
							<?php } ?>
131
							<?php } ?>
117
							<?php /* Produktbild ENDE */ ?>
132
							<?php /* Produktbild ENDE */ ?>
118
						
133
						
Line 121... Line 136...
121
							<?php if ($this->getProduktLink($request_product)) { ?></a><?php } ?>
136
							<?php if ($this->getProduktLink($request_product)) { ?></a><?php } ?>
122
						</td>
137
						</td>
123
					</tr>
138
					</tr>
124
					<tr class="wpsg_row_product2">
139
					<tr class="wpsg_row_product2">
125
						<td class="wpsg_cell_amount">
140
						<td class="wpsg_cell_amount">
126
							<input type="text" name="wpsg[amount][<?php echo $request_product['product_index']; ?>]" value="<?php echo wpsg_hspc($request_product['amount']); ?>" size="3" />
141
							<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" />
127
						</td>
142
						</td>
128
						<td class="wpsg_cell_price">
143
						<td class="wpsg_cell_price">
129
							<?php echo wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')); ?>
144
							<?php echo wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')); ?>
130
						</td>
145
						</td>
131
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
146
						<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
Line 150... Line 165...
150
					<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
165
					<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
151
					<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
166
					<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
152
					<tr class="wpsg_row_product_weight">
167
					<tr class="wpsg_row_product_weight">
153
						<td class="wpsg_cell_label"><?php echo __('Gewicht', 'wpsg'); ?>:</td>
168
						<td class="wpsg_cell_label"><?php echo __('Gewicht', 'wpsg'); ?>:</td>
154
						<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>
169
						<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>
155
					</tr>										
170
					</tr>
156
					<?php } ?>
171
					<?php } ?>
157
					<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
172
					<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
158
					
173
					
159
					
174
					
160
					<?php /* Produktvariablen BEGIN */ ?>
175
					<?php /* Produktvariablen BEGIN */ ?>
Line 172... Line 187...
172
							<?php if ($pv['typ'] === '1') { $possible_options = explode('|', $pv['auswahl']); /* Auswahl */ ?>
187
							<?php if ($pv['typ'] === '1') { $possible_options = explode('|', $pv['auswahl']); /* Auswahl */ ?>
173
							<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':''); ?>">							
188
							<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':''); ?>">							
174
								<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
189
								<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
175
								<?php foreach ((array)$possible_options as $option) { ?>
190
								<?php foreach ((array)$possible_options as $option) { ?>
176
								<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>
191
								<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>
177
								<?php } ?>							
192
								<?php } ?>
178
							</select>
193
							</select>
179
							<?php } else if ($pv['typ'] === '2') { /* Text */ ?>
194
							<?php } else if ($pv['typ'] === '2') { /* Text */ ?>
180
							<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':''); ?>" />
195
							<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':''); ?>" />
181
							<?php } else if ($pv['typ'] === '3') { /* Checkbox */ ?>
196
							<?php } else if ($pv['typ'] === '3') { /* Checkbox */ ?>
182
							<input type="hidden" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="0" />
197
							<input type="hidden" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="0" />
183
							<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':''); ?>" />							
198
							<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':''); ?>" />							
184
							<?php } ?>
199
							<?php } ?>
185
												
200
							
186
						</td>
201
						</td>
187
					</tr>
202
					</tr>
188
					<?php } ?>
203
					<?php } ?>
189
					<?php } ?>
204
					<?php } ?>
190
					<?php /* Produktvariablen ENDE */ ?>
205
					<?php /* Produktvariablen ENDE */ ?>
191
					
206
					
192
					<?php } ?>
207
					<?php } ?>
193
															
208
					
194
				</tbody>			
209
				</tbody>
195
				<tfoot>
210
				<tfoot>
196
					<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
211
					<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
197
					<tr class="wpsg_cell_total_price">
212
					<tr class="wpsg_cell_total_price">
198
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
213
						<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
199
						<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>	
214
						<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>	
Line 222... Line 237...
222
					<?php } ?>
237
					<?php } ?>
223
					<?php /* Gewichtsanzeige ENDE */ ?>
238
					<?php /* Gewichtsanzeige ENDE */ ?>
224
					
239
					
225
				</tfoot>
240
				</tfoot>
226
			</table>
241
			</table>
227
					
242
			
228
			<input type="submit" name="submit_requestpage_refresh" id="wpsg_requestbutton" class="wpsg_mod_request_button_refresh" value="<?php echo __('Anfrageliste aktualisieren', 'wpsg'); ?>" />
243
			<input type="submit" name="submit_requestpage_refresh" id="wpsg_requestbutton" class="wpsg_mod_request_button_refresh" value="<?php echo __('Anfrageliste aktualisieren', 'wpsg'); ?>" />
229
		
244
		
230
			<?php /* Anfang Bestellvariablen */ ?>
245
			<?php /* Anfang Bestellvariablen */ ?>
231
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>			
246
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>
232
			<h2><?php echo __('Zusätzliche Angaben', 'wpsg'); ?></h2>
247
			<h2><?php echo __('Zusätzliche Angaben', 'wpsg'); ?></h2>
233
			<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
248
			<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
234
			<div class="wpsg_checkoutblock" id="wpsg_checkoutblock_<?php echo $ov['id']; ?>">				
249
			<div class="wpsg_checkoutblock" id="wpsg_checkoutblock_<?php echo $ov['id']; ?>">
235
				<?php if ($ov['typ'] === '1') { $possible_options = explode('|', $ov['auswahl']); /* Auswahl */ ?>
250
				<?php if ($ov['typ'] === '1') { $possible_options = explode('|', $ov['auswahl']); /* Auswahl */ ?>
236
				<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>:
251
				<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>
237
				<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']; ?>">
252
				<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']; ?>">
238
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
253
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
239
					<?php foreach ($possible_options as $option) { ?>
254
					<?php foreach ($possible_options as $option) { ?>
240
					<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>
255
					<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>
241
					<?php } ?>
256
					<?php } ?>
Line 245... Line 260...
245
				<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']])); ?>" />
260
				<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']])); ?>" />
246
				<?php } else if ($ov['typ'] === '3') { /* Checkbox */ ?>
261
				<?php } else if ($ov['typ'] === '3') { /* Checkbox */ ?>
247
				<input type="hidden" value="0" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" />
262
				<input type="hidden" value="0" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" />
248
				<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" />
263
				<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" />
249
				<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> 
264
				<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> 
250
				<?php } ?>		
265
				<?php } ?>
251
			</div>			
266
			</div>
252
			<?php } ?>
267
			<?php } ?>
253
			<?php } ?>
268
			<?php } ?>
254
			<?php /* Ende Bestellvariablen */ ?>
269
			<?php /* Ende Bestellvariablen */ ?>
255
		
270
		
256
			<h2><?php echo __('Kontaktdaten', 'wpsg'); ?></h2>			
271
			<h2><?php echo __('Kontaktdaten', 'wpsg'); ?></h2>
257
		 		
272
		 	
258
			<div class="wpsg_checkoutblock" id="wpsg_firma">
273
			<div class="wpsg_checkoutblock" id="wpsg_firma">
259
				<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
274
				<label for="wpsg_firma" class="wpsg_checkout"><?php echo __("Firma", "wpsg"); ?>
260
				<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
275
				<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
261
				</label>
276
				</label>
262
				<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'])); ?>" />
277
				<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'])); ?>" />
263
			</div>
278
			</div>
264
		
279
		
Line 267... Line 282...
267
				<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
282
				<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
268
				<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]">
283
				<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]">
269
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
284
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
270
					<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
285
					<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
271
					<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['requestlist']['customer']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
286
					<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['requestlist']['customer']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
272
				<?php } ?>						
287
				<?php } ?>
273
				</select>
288
				</select>
274
			</div>
289
			</div>
275
			
290
			
276
			<div class="wpsg_checkoutblock" id="wpsg_vorname">
291
			<div class="wpsg_checkoutblock" id="wpsg_vorname">
277
				<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?> 
292
				<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
278
				<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
293
				<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
279
				</label>
294
				</label>
280
				<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'])); ?>" />		
295
				<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'])); ?>" />		
281
			</div>
296
			</div>
282
			
297
			
Line 286... Line 301...
286
				</label>
301
				</label>
287
				<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'])); ?>" />
302
				<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'])); ?>" />
288
			</div>
303
			</div>
289
			
304
			
290
			<div class="wpsg_checkoutblock" id="wpsg_email">
305
			<div class="wpsg_checkoutblock" id="wpsg_email">
291
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?> 
306
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
292
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
307
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
293
				</label>
308
				</label>
294
				<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'])); ?>" />
309
				<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'])); ?>" />
295
			</div>
310
			</div>
296
			
311
			
297
			<?php if (wpsg_isSizedInt($this->view['pflicht']['emailconfirm'])) { ?>
312
			<?php if (wpsg_isSizedInt($this->view['pflicht']['emailconfirm'])) { ?>
298
			<div class="wpsg_checkoutblock" id="wpsg_email2">
313
			<div class="wpsg_checkoutblock" id="wpsg_email2">
299
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?> 
314
				<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>
300
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
315
				<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
301
				</label>
316
				</label>
302
				<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'])); ?>" />
317
				<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'])); ?>" />
303
			</div>
318
			</div>
304
			<?php } ?>
319
			<?php } ?>
Line 307... Line 322...
307
				<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
322
				<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
308
				<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
323
				<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
309
				</label>
324
				</label>
310
				<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'])); ?>" />
325
				<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'])); ?>" />
311
			</div>
326
			</div>
312
					
327
			
313
			<div class="wpsg_checkoutblock" id="wpsg_fax">
328
			<div class="wpsg_checkoutblock" id="wpsg_fax">
314
				<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
329
				<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
315
				<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
330
				<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
316
				</label>
331
				</label>
317
				<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'])); ?>" />
332
				<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'])); ?>" />
Line 323... Line 338...
323
				</label>
338
				</label>
324
				<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'])); ?>" />
339
				<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'])); ?>" />
325
			</div>
340
			</div>
326
		
341
		
327
			<div class="wpsg_checkoutblock" id="wpsg_strasse">
342
			<div class="wpsg_checkoutblock" id="wpsg_strasse">
328
				<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?> 
343
				<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
329
				<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
344
				<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
330
				</label>
345
				</label>
331
				<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'])); ?>" />		
346
				<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'])); ?>" />		
332
			</div>
347
			</div>
333
		
348
		
334
			<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
349
			<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
335
				<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?> 
350
				<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
336
				<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
351
				<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
337
				</label>
352
				</label>
338
				<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'])); ?>" />
353
				<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'])); ?>" />
339
			</div>
354
			</div>
340
			
355
			
341
			<div class="wpsg_checkoutblock" id="wpsg_ort">
356
			<div class="wpsg_checkoutblock" id="wpsg_ort">
342
				<label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?> 
357
				<label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?>
343
				<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
358
				<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
344
				</label>
359
				</label>
345
				<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'])); ?>" />
360
				<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'])); ?>" />
346
			</div>
361
			</div>
347
			
362
			
348
			<div class="wpsg_checkoutblock" id="wpsg_land">
363
			<div class="wpsg_checkoutblock" id="wpsg_land">
349
				<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?> 
364
				<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
350
				<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
365
				<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
351
				</label>					
366
				</label>
352
				<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">
367
				<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">
353
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
368
					<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
354
					<?php foreach ($this->view['countries'] as $oCountry) { ?>
369
					<?php foreach ($this->view['countries'] as $oCountry) { ?>
355
					<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>
370
					<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>
356
					<?php } ?>
371
					<?php } ?>
357
				</select>
372
				</select>
358
			</div>
373
			</div>
359
			
374
			
360
			<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
375
			<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
361
				<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?> 
376
				<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
362
				<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
377
				<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
363
				</label>
378
				</label>
364
				<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'])); ?>" />
379
				<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'])); ?>" />
365
			</div>
380
			</div>
366
			
381
			
Line 368... Line 383...
368
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
383
			<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
369
			<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
384
			<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
370
			<div class="wpsg_checkoutblock">
385
			<div class="wpsg_checkoutblock">
371
				<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
386
				<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
372
					<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
387
					<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
373
				</label>					
388
				</label>
374
				<?php if ($c['typ'] == '0') { // Textfeld ?>					
389
				<?php if ($c['typ'] == '0') { // Textfeld ?>
375
				<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])); ?>" />
390
				<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])); ?>" />
376
				<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
391
				<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
377
					<?php if ($c['show'] == '0') { ?>
392
					<?php if ($c['show'] == '0') { ?>
378
					<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; ?>]">
393
					<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; ?>]">
379
						<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
394
						<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
380
						<?php foreach ((array)$arAuswahl as $a) { ?>
395
						<?php foreach ((array)$arAuswahl as $a) { ?>
381
						<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>
396
						<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>
382
						<?php } ?>
397
						<?php } ?>
383
					</select>
398
					</select>
384
					<?php } else if ($c['typ'] == '2') { // Checkbox ?>
399
					<?php } else if ($c['typ'] == '2') { // Checkbox ?>
385
					<input type="hidden" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" value="0" /> 
400
					<input type="hidden" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" value="0" />
386
					<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"':''); ?> />
401
					<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"':''); ?> />
387
					<?php } ?>				
402
					<?php } ?>
388
				<?php } ?>
403
				<?php } ?>
389
			</div>
404
			</div>
390
			<?php } } ?>
405
			<?php } } ?>
391
			<?php } ?>
406
			<?php } ?>
392
			<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
407
			<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
393
						
408
			
394
			<h2><?php echo __('Kommentar', 'wpsg'); ?></h2>
409
			<h2><?php echo __('Kommentar', 'wpsg'); ?></h2>
395
			
410
			
396
			<div class="wpsg_spacer"></div>
411
			<div class="wpsg_spacer"></div>
397
			
412
			
398
			<div class="wpsg_inner wpsg_commentblock">
413
			<div class="wpsg_inner wpsg_commentblock">
Line 400... Line 415...
400
			</div>
415
			</div>
401
		
416
		
402
			<br />
417
			<br />
403
		
418
		
404
			<input type="submit" name="submit_requestpage" class="wpsg_mod_request_button_submit" value="<?php echo __('Anfrage starten', 'wpsg'); ?>" />
419
			<input type="submit" name="submit_requestpage" class="wpsg_mod_request_button_submit" value="<?php echo __('Anfrage starten', 'wpsg'); ?>" />
405
					
420
			
406
			<br />
421
			<br />
407
						 
422
			
408
		</form>
423
		</form>
409
	
424
	
410
	<?php } else { ?>
425
	<?php } else { ?>
411
	<p class="wpsg_mod_request_requestpage_noentrys"><?php echo __('Es befinden sich keine Produkte auf der Anfrageliste.', 'wpsg'); ?>
426
	<p class="wpsg_mod_request_requestpage_noentrys"><?php echo __('Es befinden sich keine Produkte auf der Anfrageliste.', 'wpsg'); ?>
412
	<?php } ?>
427
	<?php } ?>