1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Registrierungsseite
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
1460 |
david |
8 |
<?php //wpsg_debug($this->view['error']) ?>
|
|
|
9 |
<script type="text/javascript">
|
|
|
10 |
|
|
|
11 |
jQuery(document).ready(function() {
|
3602 |
daniel |
12 |
|
|
|
13 |
<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
|
|
|
14 |
|
|
|
15 |
if (typeof jQuery.validationEngine == "object")
|
|
|
16 |
{
|
1460 |
david |
17 |
|
3602 |
daniel |
18 |
jQuery("#form-step2").validationEngine('attach', {promptPosition : "centerRight", scroll: false});
|
1460 |
david |
19 |
|
3602 |
daniel |
20 |
jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
|
|
|
21 |
jQuery("#form-step2").validationEngine('detach');
|
|
|
22 |
});
|
|
|
23 |
|
|
|
24 |
}
|
1460 |
david |
25 |
|
3602 |
daniel |
26 |
<?php } else if ($this->get_option('wpsg_form_validation') == '2') { ?>
|
|
|
27 |
|
|
|
28 |
jQuery.validator.addMethod("cRequired", jQuery.validator.methods.required, "<?php echo __('Dieses Feld ist ein Pflichtfeld.', 'wpsg'); ?>");
|
|
|
29 |
jQuery.validator.addClassRules('validate[required]', { cRequired: true } );
|
|
|
30 |
jQuery("#form-step2").validate( {
|
|
|
31 |
ignore: '',
|
|
|
32 |
errorClass: 'wpsg_error',
|
|
|
33 |
onsubmit: false,
|
|
|
34 |
showErrors: function(errorMap, errorList) {
|
|
|
35 |
|
|
|
36 |
this.defaultShowErrors();
|
|
|
37 |
|
|
|
38 |
}
|
|
|
39 |
} );
|
|
|
40 |
|
|
|
41 |
jQuery('.wpsg_registerButton').bind('click', function() {
|
|
|
42 |
|
|
|
43 |
var bReturn = jQuery('#form-step2').validate().form();
|
|
|
44 |
if (jQuery('#form-step2 input.wpsg_error').length > 0) jQuery('#form-step2 input.wpsg_error')[0].focus();
|
|
|
45 |
return bReturn;
|
|
|
46 |
|
|
|
47 |
} );
|
|
|
48 |
|
|
|
49 |
<?php } ?>
|
|
|
50 |
|
5382 |
daniel |
51 |
|
|
|
52 |
// Visualisierung der Passwortstärke
|
|
|
53 |
|
|
|
54 |
jQuery('input[type=password]').keyup(function(){
|
|
|
55 |
|
|
|
56 |
var password = jQuery(this).val();
|
|
|
57 |
|
|
|
58 |
if (password.length < 6) {
|
|
|
59 |
|
|
|
60 |
jQuery('#wpsg_pwd_length').removeClass('valid').addClass('invalid');
|
|
|
61 |
|
|
|
62 |
}else{
|
|
|
63 |
|
|
|
64 |
jQuery('#wpsg_pwd_length').removeClass('invalid').addClass('valid');
|
|
|
65 |
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
if (password.match(/([a-z])/)) {
|
|
|
69 |
|
|
|
70 |
jQuery('#wpsg_pwd_letter').removeClass('invalid').addClass('valid');
|
|
|
71 |
|
|
|
72 |
}else{
|
|
|
73 |
|
|
|
74 |
jQuery('#wpsg_pwd_letter').removeClass('valid').addClass('invalid');
|
|
|
75 |
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
if (password.match(/([A-Z])/)) {
|
|
|
79 |
|
|
|
80 |
jQuery('#wpsg_pwd_capital').removeClass('invalid').addClass('valid');
|
|
|
81 |
|
|
|
82 |
}else{
|
|
|
83 |
|
|
|
84 |
jQuery('#wpsg_pwd_capital').removeClass('valid').addClass('invalid');
|
|
|
85 |
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
if (password.match(/([0-9])/)) {
|
|
|
89 |
|
|
|
90 |
jQuery('#wpsg_pwd_number').removeClass('invalid').addClass('valid');
|
|
|
91 |
|
|
|
92 |
}else{
|
|
|
93 |
|
|
|
94 |
jQuery('#wpsg_pwd_number').removeClass('valid').addClass('invalid');
|
|
|
95 |
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
if (password.match(/([~,!,%,@,&,#,°,^,$,?,_,*,§])/)) {
|
|
|
99 |
|
|
|
100 |
jQuery('#wpsg_pwd_speziell').removeClass('invalid').addClass('valid');
|
|
|
101 |
|
|
|
102 |
}else{
|
|
|
103 |
|
|
|
104 |
jQuery('#wpsg_pwd_speziell').removeClass('valid').addClass('invalid');
|
|
|
105 |
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
jQuery('#wpsg_pwd_info').show();
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
jQuery(this).blur(function(){
|
|
|
113 |
|
|
|
114 |
jQuery('#wpsg_pwd_info').hide();
|
|
|
115 |
|
|
|
116 |
});
|
|
|
117 |
|
|
|
118 |
});
|
|
|
119 |
|
1460 |
david |
120 |
|
5382 |
daniel |
121 |
// Validierung Spam
|
5013 |
daniel |
122 |
<?php
|
6578 |
hartmut |
123 |
if (isset($_GET["wpsg_spam_email"]) && $_GET["wpsg_spam_email"] != "") {
|
5382 |
daniel |
124 |
echo "<p>Sie haben ein Feld ausgefüllt, das frei bleiben muss.</p>";
|
|
|
125 |
exit;
|
|
|
126 |
}
|
5013 |
daniel |
127 |
?>
|
5382 |
daniel |
128 |
|
|
|
129 |
});
|
7184 |
thomas |
130 |
|
|
|
131 |
<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
|
|
|
132 |
window.onload = function() {
|
|
|
133 |
|
7247 |
daniel |
134 |
var email2 = document.getElementById('email2');
|
7184 |
thomas |
135 |
|
|
|
136 |
email2.onpaste = function(e) {
|
|
|
137 |
|
|
|
138 |
e.preventDefault();
|
|
|
139 |
|
|
|
140 |
}
|
|
|
141 |
}
|
5382 |
daniel |
142 |
|
1460 |
david |
143 |
</script>
|
|
|
144 |
|
3445 |
daniel |
145 |
<div class="wpsg wpsg_checkout wpsg_register">
|
1067 |
daniel |
146 |
|
|
|
147 |
<?php echo $this->writeFrontendMessage(); ?>
|
|
|
148 |
|
1460 |
david |
149 |
<form id="form-step2" method="post" action="<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'getRegisterURL'); ?>">
|
1067 |
daniel |
150 |
|
6874 |
hartmut |
151 |
<?php if ($this->view['pflicht']['firma'] != '2') { ?>
|
3447 |
daniel |
152 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
153 |
<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
|
|
|
154 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
155 |
</label>
|
6081 |
hartmut |
156 |
<input class="<?php echo (($this->view['pflicht']['firma'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("firma", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_firma" name="wpsg[register][firma]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['firma'])); ?>" />
|
1460 |
david |
157 |
</div>
|
6874 |
hartmut |
158 |
<?php } ?>
|
1460 |
david |
159 |
|
6874 |
hartmut |
160 |
<?php if ($this->view['pflicht']['anrede'] != '2') { ?>
|
3447 |
daniel |
161 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
162 |
<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
|
|
|
163 |
<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
|
|
|
164 |
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[register][title]">
|
|
|
165 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
6107 |
hartmut |
166 |
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
|
|
|
167 |
<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['data']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
|
1460 |
david |
168 |
<?php } ?>
|
|
|
169 |
</select>
|
|
|
170 |
</div>
|
6874 |
hartmut |
171 |
<?php } ?>
|
1460 |
david |
172 |
|
6874 |
hartmut |
173 |
<?php if ($this->view['pflicht']['vname'] != '2') { ?>
|
3447 |
daniel |
174 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
175 |
<label for="vname" class="wpsg_register"><?php echo __("Vorname", "wpsg"); ?>
|
1460 |
david |
176 |
<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
177 |
</label>
|
6081 |
hartmut |
178 |
<input class="<?php echo (($this->view['pflicht']['vname'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("vname", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="vname" name="wpsg[register][vname]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['vname'])); ?>" />
|
1460 |
david |
179 |
</div>
|
6874 |
hartmut |
180 |
<?php } ?>
|
1460 |
david |
181 |
|
6874 |
hartmut |
182 |
<?php if ($this->view['pflicht']['name'] != '2') { ?>
|
3447 |
daniel |
183 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
184 |
<label for="name" class="wpsg_register"><?php echo __("Name", "wpsg"); ?>
|
6081 |
hartmut |
185 |
<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
186 |
</label>
|
6081 |
hartmut |
187 |
<input class="<?php echo (($this->view['pflicht']['name'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="name" name="wpsg[register][name]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['name'])); ?>" />
|
1460 |
david |
188 |
</div>
|
6874 |
hartmut |
189 |
<?php } ?>
|
1460 |
david |
190 |
|
6874 |
hartmut |
191 |
<?php if ($this->view['pflicht']['email'] != '2') { ?>
|
3447 |
daniel |
192 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
193 |
<label for="email" class="wpsg_register"><?php echo __("E-Mail Adresse", "wpsg"); ?>
|
1460 |
david |
194 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
195 |
</label>
|
6081 |
hartmut |
196 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="email" id="email" name="wpsg[register][email]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['email'])); ?>" />
|
1460 |
david |
197 |
</div>
|
6874 |
hartmut |
198 |
<?php } ?>
|
1460 |
david |
199 |
|
6874 |
hartmut |
200 |
<?php if ($this->view['pflicht']['email'] != '2') { ?>
|
3447 |
daniel |
201 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
202 |
<label for="email" class="wpsg_register"><?php echo __("E-Mail Adresse (Wiederholung)", "wpsg"); ?>
|
1460 |
david |
203 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
204 |
</label>
|
6081 |
hartmut |
205 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['email'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="email" id="email2" name="wpsg[register][email2]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['register']['email2'])); ?>" />
|
1460 |
david |
206 |
</div>
|
6874 |
hartmut |
207 |
<?php } ?>
|
1460 |
david |
208 |
|
3447 |
daniel |
209 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
210 |
<label for="pwd1" class="wpsg_register"><?php echo __("Passwort", "wpsg"); ?>
|
6081 |
hartmut |
211 |
<?php if (wpsg_getStr($this->view['pflicht']['pwd1']) != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
212 |
</label>
|
6081 |
hartmut |
213 |
<input class="<?php echo ((wpsg_getStr($this->view['pflicht']['pwd1']) != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("mod_kundenverwaltung_pwd1", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="pwd1" name="wpsg[register][register_pwd1]" value="" /><span id="wpsg_checkoutblock_password_result"></span>
|
1460 |
david |
214 |
</div>
|
|
|
215 |
|
3447 |
daniel |
216 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
217 |
<label for="pwd2" class="wpsg_register"><?php echo __("Passwort (Wiederholung)", "wpsg"); ?>
|
6081 |
hartmut |
218 |
<?php if (wpsg_getStr($this->view['pflicht']['pwd2']) != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
219 |
</label>
|
6081 |
hartmut |
220 |
<input class="<?php echo ((wpsg_getStr($this->view['pflicht']['pwd2']) != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("mod_kundenverwaltung_pwd2", (array)$this->view['error']))?'wpsg_error':''); ?>" type="password" id="pwd2" name="wpsg[register][register_pwd2]" value="" />
|
1460 |
david |
221 |
</div>
|
|
|
222 |
|
5382 |
daniel |
223 |
<div id="wpsg_pwd_info">
|
|
|
224 |
<h4><?php echo __('Passwort sollte folgende Regeln befolgen:','wpsg') ?></h4>
|
|
|
225 |
<ul>
|
6671 |
thomas |
226 |
<li id="wpsg_pwd_length" class="invalid"><?php echo __('Mit mindestens 8 Zeichen wird das Passwort noch sicherer','wpsg')?></li>
|
5382 |
daniel |
227 |
<li id="wpsg_pwd_letter" class="invalid"><?php echo __('Mit mindestens einem Kleinbuchstaben wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
228 |
<li id="wpsg_pwd_capital" class="invalid"><?php echo __('Mit mindestens einem Großbuchstaben wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
229 |
<li id="wpsg_pwd_number" class="invalid"><?php echo __('Mit mindestens einer Zahl wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
230 |
<li id="wpsg_pwd_speziell" class="invalid"><?php echo __('Mit mindestens einem Sonderzeichen wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
231 |
</ul>
|
|
|
232 |
</div>
|
|
|
233 |
|
6874 |
hartmut |
234 |
<?php if ($this->view['pflicht']['geb'] != '2') { ?>
|
3447 |
daniel |
235 |
<div class="wpsg_checkoutblock">
|
4918 |
thomas |
236 |
<label for="geb" class="wpsg_register"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)', 'wpsg'); ?>
|
1460 |
david |
237 |
<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
238 |
</label>
|
6081 |
hartmut |
239 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['geb'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("geb", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="geb" name="wpsg[register][geb]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['geb'])); ?>" />
|
1460 |
david |
240 |
</div>
|
6874 |
hartmut |
241 |
<?php } ?>
|
|
|
242 |
|
|
|
243 |
<?php if ($this->view['pflicht']['fax'] != '2') { ?>
|
3447 |
daniel |
244 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
245 |
<label for="fax" class="wpsg_register"><?php echo __("Fax.", "wpsg"); ?>
|
|
|
246 |
<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
247 |
</label>
|
6081 |
hartmut |
248 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['fax'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("fax", (array)$this->view['error']))?'wpsg_error':''); ?>" type="tel" id="fax" name="wpsg[register][fax]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['fax'])); ?>" />
|
1460 |
david |
249 |
</div>
|
6874 |
hartmut |
250 |
<?php } ?>
|
1460 |
david |
251 |
|
6874 |
hartmut |
252 |
<?php if ($this->view['pflicht']['tel'] != '2') { ?>
|
3447 |
daniel |
253 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
254 |
<label for="tel" class="wpsg_register"><?php echo __("Tel.", "wpsg"); ?>
|
|
|
255 |
<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
256 |
</label>
|
6081 |
hartmut |
257 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['tel'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("tel", (array)$this->view['error']))?'wpsg_error':''); ?>" type="tel" id="tel" name="wpsg[register][tel]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['tel'])); ?>" />
|
1460 |
david |
258 |
</div>
|
6874 |
hartmut |
259 |
<?php } ?>
|
1460 |
david |
260 |
|
6874 |
hartmut |
261 |
<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
|
7247 |
daniel |
262 |
|
|
|
263 |
<?php if ($this->view['pflicht']['wpsg_showNr'] === '1') { ?>
|
|
|
264 |
|
|
|
265 |
<div class="wpsg_checkoutblock" id="wpsg_streetnr">
|
7316 |
thomas |
266 |
<label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wpsg'); ?>
|
7247 |
daniel |
267 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
|
|
|
268 |
<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[register][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['strasse'])); ?>" />
|
|
|
269 |
</label>
|
|
|
270 |
<label for="nr" class="nr wpsg_checkout"><?php echo __('Nr:', 'wpsg'); ?>
|
|
|
271 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
|
|
|
272 |
<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[register][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['nr'])); ?>" />
|
|
|
273 |
</label>
|
|
|
274 |
</div>
|
|
|
275 |
|
|
|
276 |
<?php } else { ?>
|
|
|
277 |
|
|
|
278 |
<div class="wpsg_checkoutblock">
|
|
|
279 |
<label for="strasse" class="wpsg_register"><?php echo __("Straße Nr.", "wpsg"); ?>
|
|
|
280 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
281 |
</label>
|
|
|
282 |
<input class="<?php echo (($this->view['pflicht']['strasse'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("strasse", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="strasse" name="wpsg[register][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['strasse'])); ?>" />
|
|
|
283 |
</div>
|
|
|
284 |
|
|
|
285 |
<?php } ?>
|
|
|
286 |
|
6874 |
hartmut |
287 |
<?php } ?>
|
1460 |
david |
288 |
|
6874 |
hartmut |
289 |
<?php if ($this->view['pflicht']['plz'] != '2') { ?>
|
3447 |
daniel |
290 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
291 |
<label for="plz" class="wpsg_register"><?php echo __("Postleitzahl", "wpsg"); ?>
|
1460 |
david |
292 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
293 |
</label>
|
6081 |
hartmut |
294 |
<input class="wpsg_input_text <?php echo (($this->view['pflicht']['plz'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("plz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="plz" name="wpsg[register][plz]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['plz'])); ?>" />
|
1460 |
david |
295 |
</div>
|
6874 |
hartmut |
296 |
<?php } ?>
|
1460 |
david |
297 |
|
6874 |
hartmut |
298 |
<?php if ($this->view['pflicht']['ort'] != '2') { ?>
|
3447 |
daniel |
299 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
300 |
<label for="ort" class="wpsg_register"><?php echo __("Ort", "wpsg"); ?>
|
1460 |
david |
301 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
302 |
</label>
|
6081 |
hartmut |
303 |
<input class="<?php echo (($this->view['pflicht']['ort'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ort", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="ort" name="wpsg[register][ort]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ort'])); ?>" />
|
1460 |
david |
304 |
</div>
|
6874 |
hartmut |
305 |
<?php } ?>
|
1460 |
david |
306 |
|
6874 |
hartmut |
307 |
<?php if ($this->view['pflicht']['land'] != '2') { ?>
|
3447 |
daniel |
308 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
309 |
<label for="wpsg_land" class="wpsg_register"><?php echo __("Land", "wpsg"); ?>
|
1460 |
david |
310 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
311 |
</label>
|
|
|
312 |
<select name="wpsg[register][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
|
|
|
313 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
314 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
|
|
315 |
<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['data']['land'])?'selected="selected"':(($this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc($l['name']); ?></option>
|
1067 |
daniel |
316 |
<?php } ?>
|
1460 |
david |
317 |
</select>
|
|
|
318 |
</div>
|
6874 |
hartmut |
319 |
<?php } ?>
|
1067 |
daniel |
320 |
|
6874 |
hartmut |
321 |
<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
|
3447 |
daniel |
322 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
323 |
<label for="wpsg_ustidnr" class="wpsg_register"><?php echo __("UStIdNr.", "wpsg"); ?>
|
1460 |
david |
324 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
325 |
</label>
|
6081 |
hartmut |
326 |
<input class="<?php echo (($this->view['pflicht']['ustidnr'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("ustidnr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="wpsg_ustidnr" name="wpsg[register][ustidnr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['data']['ustidnr'])); ?>" />
|
1460 |
david |
327 |
</div>
|
6874 |
hartmut |
328 |
<?php } ?>
|
1067 |
daniel |
329 |
|
2323 |
daniel |
330 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
|
|
|
331 |
<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
|
|
|
332 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
3447 |
daniel |
333 |
<div class="wpsg_checkoutblock">
|
2323 |
daniel |
334 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
|
|
335 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
|
|
336 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
6874 |
hartmut |
337 |
<input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[register][custom][<?php echo $c_id; ?>]" type="text" value="<?php echo wpsg_hspc(@$this->view['data']['custom'][$c_id]); ?>" />
|
2323 |
daniel |
338 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
|
|
339 |
<select class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[register][custom][<?php echo $c_id; ?>]">
|
|
|
340 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
341 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
6874 |
hartmut |
342 |
<option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == wpsg_getStr($this->view['data']['custom'][$c_id]))?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
|
2323 |
daniel |
343 |
<?php } ?>
|
|
|
344 |
</select>
|
|
|
345 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
|
|
346 |
<input type="hidden" name="wpsg[register][custom][<?php echo $c_id; ?>]" value="0" />
|
6874 |
hartmut |
347 |
<input id="wpsg_cv_<?php echo $c_id; ?>" class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> checkbox" type="checkbox" value="1" name="wpsg[register][custom][<?php echo $c_id; ?>]" value="1" <?php echo wpsg_hspc((@$this->view['data']['custom'][$c_id] == '1')?'checked="checked"':''); ?> />
|
4925 |
thomas |
348 |
<span class="wpsg_clear"></span>
|
2323 |
daniel |
349 |
<?php } ?>
|
|
|
350 |
</label>
|
|
|
351 |
</div>
|
|
|
352 |
<?php } } ?>
|
|
|
353 |
<?php } ?>
|
|
|
354 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
|
|
355 |
<div class="wpsg_clear"></div>
|
7140 |
daniel |
356 |
|
|
|
357 |
<?php if ($this->get_option('wpsg_mod_kundenverwaltung_recaptcha_register') === '1') { ?>
|
|
|
358 |
<div class="wpsg_checkoutblock">
|
|
|
359 |
<label>
|
|
|
360 |
<?php echo __('SPAM Schutz Abfrage'); ?> <span class="wpsg_required">*</span>:
|
|
|
361 |
<div class="g-recaptcha" data-sitekey="<?php echo $this->get_option('wpsg_mod_kundenveraltung_recaptcha_key'); ?>"></div>
|
|
|
362 |
</label>
|
|
|
363 |
</div>
|
|
|
364 |
<div class="wpsg_clear"></div>
|
|
|
365 |
<?php } ?>
|
|
|
366 |
|
2780 |
daniel |
367 |
<div class="wpsg_mandatoryfield_hint">
|
|
|
368 |
<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
|
|
|
369 |
</div>
|
|
|
370 |
|
5013 |
daniel |
371 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>
|
|
|
372 |
<span style="display:none">
|
|
|
373 |
<label for="wpsg_spam_email">Das Feld muss frei bleiben:</label>
|
|
|
374 |
<input type="text" name="wpsg_spam_email" id="wpsg_spam_email" title=" dieses Feld muss frei bleiben " />
|
|
|
375 |
</span>
|
|
|
376 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz ENDE*/ ?>
|
7140 |
daniel |
377 |
|
2308 |
daniel |
378 |
<br />
|
|
|
379 |
|
1067 |
daniel |
380 |
<input type="submit" class="wpsg_button wpsg_registerButton" value="<?php echo __('Registrieren', 'wpsg'); ?>" name="wpsg_mod_kundenverwaltung_register" />
|
|
|
381 |
|
|
|
382 |
<?php $this->ClearSessionErrors(); ?>
|
|
|
383 |
|
|
|
384 |
<div class="wpsg_clear"></div>
|
|
|
385 |
</form>
|
|
|
386 |
</div>
|