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 |
} );
|
7184 |
thomas |
63 |
|
|
|
64 |
<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
|
|
|
65 |
window.onload = function() {
|
|
|
66 |
|
7247 |
daniel |
67 |
var email2 = document.getElementById('email2');
|
7184 |
thomas |
68 |
|
|
|
69 |
email2.onpaste = function(e) {
|
|
|
70 |
|
|
|
71 |
e.preventDefault();
|
|
|
72 |
|
|
|
73 |
}
|
|
|
74 |
}
|
6491 |
hartmut |
75 |
|
4322 |
thomas |
76 |
/* ]]> */</script>
|
4313 |
daniel |
77 |
<div class="wpsg_mod_request_requestpage">
|
|
|
78 |
|
|
|
79 |
<?php echo $this->writeFrontendMessage(); ?>
|
|
|
80 |
|
|
|
81 |
<?php if (wpsg_isSizedArray($this->view['requestlist']['products'])) { ?>
|
|
|
82 |
|
|
|
83 |
<form id="wpsg_requestpage_form" name="wpsg_requestpage_form" method="post" action="<?php echo $this->callMod('wpsg_mod_request', 'getRequestPageUrl'); ?>">
|
|
|
84 |
|
|
|
85 |
<h2><?php echo __('Produkte auf Ihrer Anfrageliste', 'wpsg'); ?></h2>
|
|
|
86 |
|
|
|
87 |
<div class="wpsg_spacer"></div>
|
|
|
88 |
|
|
|
89 |
<table>
|
|
|
90 |
<thead>
|
|
|
91 |
<tr>
|
|
|
92 |
<th class="wpsg_cell_action"> </th>
|
|
|
93 |
<th class="wpsg_cell_amount"><?php echo __('Anzahl', 'wpsg'); ?></th>
|
|
|
94 |
<th class="wpsg_cell_price"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
|
|
|
95 |
<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
|
|
|
96 |
<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
|
|
|
97 |
<?php } ?>
|
6491 |
hartmut |
98 |
<th class="wpsg_cell_sumprice"><?php echo __('Gesamtpreis', 'wpsg'); ?></th>
|
4313 |
daniel |
99 |
</tr>
|
|
|
100 |
</thead>
|
|
|
101 |
<tbody>
|
|
|
102 |
|
|
|
103 |
<?php foreach ($this->view['requestlist']['products'] as $request_product) { ?>
|
|
|
104 |
<tr class="wpsg_row_product1">
|
|
|
105 |
<td class="wpsg_cell_action" rowspan="<?php echo (2 + $request_product['addRowspan']); ?>">
|
|
|
106 |
|
|
|
107 |
<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'); ?>');">
|
|
|
108 |
<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
|
|
|
109 |
</a>
|
|
|
110 |
|
|
|
111 |
</td>
|
|
|
112 |
<td class="wpsg_cell_name" colspan="<?php echo $this->view['addColspan'] + 3; ?>">
|
|
|
113 |
|
|
|
114 |
<?php /* Produktbild BEGIN */ ?>
|
6491 |
hartmut |
115 |
<?php if ($this->get_option('wpsg_mod_request_requestpageimage') == '1') {
|
4313 |
daniel |
116 |
|
6491 |
hartmut |
117 |
if (wpsg_isSizedString($request_product['product_data']['varianten_image'])) $arBilder = array($request_product['product_data']['varianten_image']);
|
|
|
118 |
else {
|
|
|
119 |
|
|
|
120 |
if (isset($request_product['product_data']['product_key'])) {
|
|
|
121 |
//$image = $this->imagehandler->getAttachmentID($this->view['product_data']['product_key']);
|
|
|
122 |
$image = $this->imagehandler->getAttachmentID($request_product['product_data']['product_key']);
|
|
|
123 |
} else {
|
|
|
124 |
$arImages = $this->imagehandler->getAttachmentIDs($request_product['product_data']['product_id']);
|
|
|
125 |
$image = $arImages[0];
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
}
|
|
|
129 |
//if (wpsg_isSizedString($image)) echo wp_get_attachment_image($image, 'medium', false, array());
|
4313 |
daniel |
130 |
|
|
|
131 |
?>
|
6491 |
hartmut |
132 |
<?php if (wpsg_isSizedString($image)) { ?>
|
4313 |
daniel |
133 |
<div class="wpsg_basket_productimage">
|
6491 |
hartmut |
134 |
<?php //$href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
|
|
|
135 |
<?php //$imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
|
|
|
136 |
<?php echo wp_get_attachment_image($image, array(50, 50), false, array()); ?>
|
|
|
137 |
<?php //echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>
|
4313 |
daniel |
138 |
</div>
|
|
|
139 |
<?php } ?>
|
|
|
140 |
<?php } ?>
|
|
|
141 |
<?php /* Produktbild ENDE */ ?>
|
|
|
142 |
|
|
|
143 |
<?php if ($this->getProduktLink($request_product)) { ?><a href="<?php echo $this->getProduktLink($request_product); ?>"><?php } ?>
|
|
|
144 |
<?php echo wpsg_hspc((($request_product['product_data']['detailname'] != '')?$request_product['product_data']['detailname']:$request_product['product_data']['name'])); ?>
|
|
|
145 |
<?php if ($this->getProduktLink($request_product)) { ?></a><?php } ?>
|
|
|
146 |
</td>
|
|
|
147 |
</tr>
|
|
|
148 |
<tr class="wpsg_row_product2">
|
|
|
149 |
<td class="wpsg_cell_amount">
|
6491 |
hartmut |
150 |
<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 |
151 |
</td>
|
|
|
152 |
<td class="wpsg_cell_price">
|
|
|
153 |
<?php echo wpsg_ff($request_product['price'], $this->get_option('wpsg_currency')); ?>
|
|
|
154 |
</td>
|
|
|
155 |
<?php if (wpsg_isSizedInt($this->view['addColspan'])) { ?>
|
|
|
156 |
<td class="wpsg_cell_mwst">
|
|
|
157 |
<?php echo wpsg_ff($request_product['product_data']['mwst_value'], '%'); ?>
|
|
|
158 |
</td>
|
|
|
159 |
<?php } ?>
|
|
|
160 |
<td class="wpsg_cell_sumprice">
|
|
|
161 |
<?php echo wpsg_ff($request_product['price'] * $request_product['amount'], $this->get_option('wpsg_currency')); ?>
|
|
|
162 |
</td>
|
|
|
163 |
</tr>
|
|
|
164 |
|
|
|
165 |
<?php /* Variantenanzeige im Produkt BEGIN */ ?>
|
6165 |
hartmut |
166 |
<?php if ($this->hasMod('wpsg_mod_productvariants') && $this->callMod('wpsg_mod_productvariants', 'isVariantsProductKey', array($request_product['product_key']))) { ?>
|
4313 |
daniel |
167 |
<tr class="wpsg_row_product_varianten">
|
|
|
168 |
<td class="wpsg_cell_label"><?php echo __('Variante', 'wpsg'); ?>:</td>
|
|
|
169 |
<td class="wpsg_cell_value" colspan="<?php echo (2 + $this->view['addColspan']); ?>"><?php echo wpsg_hspc($request_product['variantenInfo']['key']); ?></td>
|
|
|
170 |
</tr>
|
|
|
171 |
<?php } ?>
|
|
|
172 |
<?php /* Variantenanzeige im Produkt ENDE */ ?>
|
|
|
173 |
|
|
|
174 |
<?php /* Gewichtsanzeige im Produkt BEGIN */ ?>
|
|
|
175 |
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPageProduct'))) { ?>
|
|
|
176 |
<tr class="wpsg_row_product_weight">
|
|
|
177 |
<td class="wpsg_cell_label"><?php echo __('Gewicht', 'wpsg'); ?>:</td>
|
|
|
178 |
<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 |
179 |
</tr>
|
4313 |
daniel |
180 |
<?php } ?>
|
|
|
181 |
<?php /* Gewichtsanzeige im Produkt ENDE */ ?>
|
|
|
182 |
|
4733 |
thomas |
183 |
|
4313 |
daniel |
184 |
<?php /* Produktvariablen BEGIN */ ?>
|
4733 |
thomas |
185 |
<?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 |
186 |
<?php foreach ($request_product['product_data']['pv'] as $pv) { ?>
|
|
|
187 |
<tr class="wpsg_row_product_pv">
|
|
|
188 |
<td class="wpsg_cell_label">
|
|
|
189 |
<label class="wpsg_checkout" for="wpsg_request_pv_<?php echo $pv['id']; ?>_<?php echo $request_product['product_index']; ?>">
|
|
|
190 |
<?php echo wpsg_hspc($pv['name']); ?>
|
4733 |
thomas |
191 |
<?php if (wpsg_isSizedInt($pv['pflicht'])) { ?><span class="wpsg_required">*</span><?php } ?>:
|
4313 |
daniel |
192 |
</label>
|
|
|
193 |
</td>
|
|
|
194 |
<td class="wpsg_cell_value" colspan="<?php echo (2 + $this->view['addColspan']); ?>">
|
|
|
195 |
|
|
|
196 |
<?php if ($pv['typ'] === '1') { $possible_options = explode('|', $pv['auswahl']); /* Auswahl */ ?>
|
5382 |
daniel |
197 |
<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 |
198 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
199 |
<?php foreach ((array)$possible_options as $option) { ?>
|
|
|
200 |
<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 |
201 |
<?php } ?>
|
4313 |
daniel |
202 |
</select>
|
|
|
203 |
<?php } else if ($pv['typ'] === '2') { /* Text */ ?>
|
5382 |
daniel |
204 |
<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 |
205 |
<?php } else if ($pv['typ'] === '3') { /* Checkbox */ ?>
|
|
|
206 |
<input type="hidden" name="wpsg[request][pv][<?php echo $request_product['product_index']; ?>][<?php echo $pv['id']; ?>]" value="0" />
|
5382 |
daniel |
207 |
<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 |
208 |
<?php } ?>
|
6491 |
hartmut |
209 |
|
4313 |
daniel |
210 |
</td>
|
|
|
211 |
</tr>
|
|
|
212 |
<?php } ?>
|
|
|
213 |
<?php } ?>
|
|
|
214 |
<?php /* Produktvariablen ENDE */ ?>
|
|
|
215 |
|
|
|
216 |
<?php } ?>
|
6491 |
hartmut |
217 |
|
|
|
218 |
</tbody>
|
4313 |
daniel |
219 |
<tfoot>
|
|
|
220 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
|
|
|
221 |
<tr class="wpsg_cell_total_price">
|
|
|
222 |
<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
|
|
|
223 |
<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
224 |
</tr>
|
|
|
225 |
<tr class="wpsg_cell_total_price">
|
|
|
226 |
<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
|
|
|
227 |
<td class="wpsg_cell_total_brutto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
228 |
</tr>
|
|
|
229 |
<?php } else { ?>
|
|
|
230 |
<tr class="wpsg_cell_total_price">
|
|
|
231 |
<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:</td>
|
|
|
232 |
<td class="wpsg_cell_total_brutto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_brutto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
233 |
</tr>
|
|
|
234 |
<tr class="wpsg_cell_total_price">
|
|
|
235 |
<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:</td>
|
|
|
236 |
<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['price_netto'], $this->get_option('wpsg_currency')); ?></td>
|
|
|
237 |
</tr>
|
|
|
238 |
<?php } ?>
|
|
|
239 |
|
|
|
240 |
<?php /* Gewichtsanzeige BEGIN */ ?>
|
|
|
241 |
<?php if ($this->hasMod('wpsg_mod_weight') && wpsg_isSizedInt($this->get_option('wpsg_mod_weight_showRequestPage'))) { ?>
|
|
|
242 |
<tr class="wpsg_cell_total_weight">
|
|
|
243 |
<td class="wpsg_cell_total_label" colspan="<?php echo $this->view['addColspan'] + 3; ?>"><?php echo __('Gesamtgewicht', 'wpsg'); ?>:</td>
|
|
|
244 |
<td class="wpsg_cell_total_netto"><?php echo wpsg_ff($this->view['requestlist']['sum']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
|
|
|
245 |
</tr>
|
|
|
246 |
<?php } ?>
|
|
|
247 |
<?php /* Gewichtsanzeige ENDE */ ?>
|
|
|
248 |
|
|
|
249 |
</tfoot>
|
|
|
250 |
</table>
|
6491 |
hartmut |
251 |
|
4322 |
thomas |
252 |
<input type="submit" name="submit_requestpage_refresh" id="wpsg_requestbutton" class="wpsg_mod_request_button_refresh" value="<?php echo __('Anfrageliste aktualisieren', 'wpsg'); ?>" />
|
4313 |
daniel |
253 |
|
|
|
254 |
<?php /* Anfang Bestellvariablen */ ?>
|
6491 |
hartmut |
255 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_ordervars')) && wpsg_isSizedArray($this->view['orderVars'])) { ?>
|
4313 |
daniel |
256 |
<h2><?php echo __('Zusätzliche Angaben', 'wpsg'); ?></h2>
|
|
|
257 |
<?php foreach ($this->view['orderVars'] as $ov_index => $ov) { ?>
|
6491 |
hartmut |
258 |
<div class="wpsg_checkoutblock" id="wpsg_checkoutblock_<?php echo $ov['id']; ?>">
|
4313 |
daniel |
259 |
<?php if ($ov['typ'] === '1') { $possible_options = explode('|', $ov['auswahl']); /* Auswahl */ ?>
|
6491 |
hartmut |
260 |
<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 |
261 |
<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']; ?>">
|
|
|
262 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
263 |
<?php foreach ($possible_options as $option) { ?>
|
|
|
264 |
<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>
|
|
|
265 |
<?php } ?>
|
|
|
266 |
</select>
|
|
|
267 |
<?php } else if ($ov['typ'] === '2') { /* Textfeld */ ?>
|
4317 |
daniel |
268 |
<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 |
269 |
<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']])); ?>" />
|
|
|
270 |
<?php } else if ($ov['typ'] === '3') { /* Checkbox */ ?>
|
|
|
271 |
<input type="hidden" value="0" name="wpsg[request][ov][<?php echo $ov['id']; ?>]" />
|
4317 |
daniel |
272 |
<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" />
|
|
|
273 |
<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 |
274 |
<?php } ?>
|
|
|
275 |
</div>
|
4313 |
daniel |
276 |
<?php } ?>
|
|
|
277 |
<?php } ?>
|
|
|
278 |
<?php /* Ende Bestellvariablen */ ?>
|
|
|
279 |
|
6491 |
hartmut |
280 |
<h2><?php echo __('Kontaktdaten', 'wpsg'); ?></h2>
|
|
|
281 |
|
4313 |
daniel |
282 |
<div class="wpsg_checkoutblock" id="wpsg_firma">
|
6491 |
hartmut |
283 |
<label for="wpsg_firma" class="wpsg_checkout"><?php echo __("Firma", "wpsg"); ?>
|
4313 |
daniel |
284 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
285 |
</label>
|
|
|
286 |
<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'])); ?>" />
|
|
|
287 |
</div>
|
|
|
288 |
|
|
|
289 |
<div class="wpsg_checkoutblock" id="wpsg_anrede">
|
|
|
290 |
<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
|
|
|
291 |
<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
|
|
|
292 |
<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]">
|
|
|
293 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
6107 |
hartmut |
294 |
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
|
|
|
295 |
<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 |
296 |
<?php } ?>
|
4313 |
daniel |
297 |
</select>
|
|
|
298 |
</div>
|
|
|
299 |
|
|
|
300 |
<div class="wpsg_checkoutblock" id="wpsg_vorname">
|
6491 |
hartmut |
301 |
<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
|
4313 |
daniel |
302 |
<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
303 |
</label>
|
|
|
304 |
<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'])); ?>" />
|
|
|
305 |
</div>
|
|
|
306 |
|
|
|
307 |
<div class="wpsg_checkoutblock" id="wpsg_name">
|
|
|
308 |
<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
|
|
|
309 |
<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
310 |
</label>
|
|
|
311 |
<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'])); ?>" />
|
|
|
312 |
</div>
|
|
|
313 |
|
|
|
314 |
<div class="wpsg_checkoutblock" id="wpsg_email">
|
6491 |
hartmut |
315 |
<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
|
4313 |
daniel |
316 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
317 |
</label>
|
|
|
318 |
<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'])); ?>" />
|
|
|
319 |
</div>
|
|
|
320 |
|
|
|
321 |
<?php if (wpsg_isSizedInt($this->view['pflicht']['emailconfirm'])) { ?>
|
|
|
322 |
<div class="wpsg_checkoutblock" id="wpsg_email2">
|
6491 |
hartmut |
323 |
<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung)", "wpsg"); ?>
|
4313 |
daniel |
324 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
325 |
</label>
|
|
|
326 |
<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'])); ?>" />
|
|
|
327 |
</div>
|
|
|
328 |
<?php } ?>
|
|
|
329 |
|
|
|
330 |
<div class="wpsg_checkoutblock" id="wpsg_geburtsdatum">
|
5382 |
daniel |
331 |
<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)',"wpsg"); ?>
|
4313 |
daniel |
332 |
<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
333 |
</label>
|
|
|
334 |
<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'])); ?>" />
|
|
|
335 |
</div>
|
6491 |
hartmut |
336 |
|
4313 |
daniel |
337 |
<div class="wpsg_checkoutblock" id="wpsg_fax">
|
|
|
338 |
<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
|
|
|
339 |
<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
340 |
</label>
|
|
|
341 |
<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'])); ?>" />
|
|
|
342 |
</div>
|
|
|
343 |
|
|
|
344 |
<div class="wpsg_checkoutblock" id="wpsg_telefon">
|
|
|
345 |
<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
|
|
|
346 |
<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
347 |
</label>
|
|
|
348 |
<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'])); ?>" />
|
|
|
349 |
</div>
|
|
|
350 |
|
|
|
351 |
<div class="wpsg_checkoutblock" id="wpsg_strasse">
|
7247 |
daniel |
352 |
|
|
|
353 |
<?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
|
|
|
354 |
|
|
|
355 |
<div class="wpsg_checkoutblock" id="wpsg_streetnr">
|
|
|
356 |
|
|
|
357 |
<label for="strasse" class="street wpsg_checkout"><?php echo __("Straße", "wpsg"); ?>
|
|
|
358 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
359 |
<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'])); ?>" />
|
|
|
360 |
</label>
|
|
|
361 |
<label for="nr" class="nr wpsg_checkout"><?php echo __('Nr', 'wpsg'); ?>
|
|
|
362 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
363 |
<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("nr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="nr" name="wpsg[request][customer][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['requestlist']['customer']['nr'])); ?>" />
|
|
|
364 |
</label>
|
|
|
365 |
|
|
|
366 |
</div>
|
|
|
367 |
|
|
|
368 |
<?php } else { ?>
|
|
|
369 |
|
|
|
370 |
<label for="strasse" class="wpsg_checkout"><?php echo __("Straße Nr.", "wpsg"); ?>
|
|
|
371 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
372 |
</label>
|
|
|
373 |
<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'])); ?>" />
|
|
|
374 |
|
|
|
375 |
<?php } ?>
|
|
|
376 |
|
4313 |
daniel |
377 |
</div>
|
|
|
378 |
|
|
|
379 |
<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
|
6491 |
hartmut |
380 |
<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
|
4313 |
daniel |
381 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
382 |
</label>
|
|
|
383 |
<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'])); ?>" />
|
|
|
384 |
</div>
|
|
|
385 |
|
|
|
386 |
<div class="wpsg_checkoutblock" id="wpsg_ort">
|
6491 |
hartmut |
387 |
<label for="ort" class="wpsg_checkout"><?php echo __("Ort", "wpsg"); ?>
|
4313 |
daniel |
388 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
389 |
</label>
|
|
|
390 |
<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'])); ?>" />
|
|
|
391 |
</div>
|
|
|
392 |
|
|
|
393 |
<div class="wpsg_checkoutblock" id="wpsg_land">
|
6491 |
hartmut |
394 |
<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
|
4313 |
daniel |
395 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
6491 |
hartmut |
396 |
</label>
|
4313 |
daniel |
397 |
<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">
|
|
|
398 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
399 |
<?php foreach ($this->view['countries'] as $oCountry) { ?>
|
|
|
400 |
<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>
|
|
|
401 |
<?php } ?>
|
|
|
402 |
</select>
|
|
|
403 |
</div>
|
|
|
404 |
|
|
|
405 |
<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
|
6491 |
hartmut |
406 |
<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
|
4313 |
daniel |
407 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
408 |
</label>
|
|
|
409 |
<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'])); ?>" />
|
|
|
410 |
</div>
|
|
|
411 |
|
|
|
412 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
|
|
|
413 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
|
|
|
414 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
|
|
415 |
<div class="wpsg_checkoutblock">
|
5382 |
daniel |
416 |
<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
|
4313 |
daniel |
417 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
6491 |
hartmut |
418 |
</label>
|
|
|
419 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
5382 |
daniel |
420 |
<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])); ?>" />
|
|
|
421 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
|
|
422 |
<?php if ($c['show'] == '0') { ?>
|
4317 |
daniel |
423 |
<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 |
424 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
425 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
|
|
426 |
<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>
|
|
|
427 |
<?php } ?>
|
|
|
428 |
</select>
|
|
|
429 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
6491 |
hartmut |
430 |
<input type="hidden" name="wpsg[request][customer][custom][<?php echo $c_id; ?>]" value="0" />
|
4317 |
daniel |
431 |
<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 |
432 |
<?php } ?>
|
5382 |
daniel |
433 |
<?php } ?>
|
4313 |
daniel |
434 |
</div>
|
|
|
435 |
<?php } } ?>
|
|
|
436 |
<?php } ?>
|
|
|
437 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
6491 |
hartmut |
438 |
|
4313 |
daniel |
439 |
<h2><?php echo __('Kommentar', 'wpsg'); ?></h2>
|
|
|
440 |
|
|
|
441 |
<div class="wpsg_spacer"></div>
|
|
|
442 |
|
|
|
443 |
<div class="wpsg_inner wpsg_commentblock">
|
|
|
444 |
<textarea name="wpsg[request][customer][comment]" id="wpsg_request_comment"><?php echo wpsg_hspc(wpsg_getStr($this->view['requestlist']['customer']['comment'])); ?></textarea>
|
|
|
445 |
</div>
|
|
|
446 |
|
4317 |
daniel |
447 |
<br />
|
|
|
448 |
|
4313 |
daniel |
449 |
<input type="submit" name="submit_requestpage" class="wpsg_mod_request_button_submit" value="<?php echo __('Anfrage starten', 'wpsg'); ?>" />
|
6491 |
hartmut |
450 |
|
4317 |
daniel |
451 |
<br />
|
6491 |
hartmut |
452 |
|
4313 |
daniel |
453 |
</form>
|
|
|
454 |
|
|
|
455 |
<?php } else { ?>
|
|
|
456 |
<p class="wpsg_mod_request_requestpage_noentrys"><?php echo __('Es befinden sich keine Produkte auf der Anfrageliste.', 'wpsg'); ?>
|
|
|
457 |
<?php } ?>
|
|
|
458 |
|
|
|
459 |
</div>
|