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 |
});
|
|
|
130 |
|
1460 |
david |
131 |
</script>
|
|
|
132 |
|
3445 |
daniel |
133 |
<div class="wpsg wpsg_checkout wpsg_register">
|
1067 |
daniel |
134 |
|
|
|
135 |
<?php echo $this->writeFrontendMessage(); ?>
|
|
|
136 |
|
1460 |
david |
137 |
<form id="form-step2" method="post" action="<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'getRegisterURL'); ?>">
|
1067 |
daniel |
138 |
|
3447 |
daniel |
139 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
140 |
<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
|
|
|
141 |
<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
142 |
</label>
|
6081 |
hartmut |
143 |
<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 |
144 |
</div>
|
|
|
145 |
|
3447 |
daniel |
146 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
147 |
<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
|
|
|
148 |
<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
|
|
|
149 |
<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]">
|
|
|
150 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
6107 |
hartmut |
151 |
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
|
|
|
152 |
<option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['data']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
|
1460 |
david |
153 |
<?php } ?>
|
|
|
154 |
</select>
|
|
|
155 |
</div>
|
|
|
156 |
|
3447 |
daniel |
157 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
158 |
<label for="vname" class="wpsg_register"><?php echo __("Vorname", "wpsg"); ?>
|
1460 |
david |
159 |
<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
160 |
</label>
|
6081 |
hartmut |
161 |
<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 |
162 |
</div>
|
|
|
163 |
|
3447 |
daniel |
164 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
165 |
<label for="name" class="wpsg_register"><?php echo __("Name", "wpsg"); ?>
|
6081 |
hartmut |
166 |
<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
167 |
</label>
|
6081 |
hartmut |
168 |
<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 |
169 |
</div>
|
|
|
170 |
|
3447 |
daniel |
171 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
172 |
<label for="email" class="wpsg_register"><?php echo __("E-Mail Adresse", "wpsg"); ?>
|
1460 |
david |
173 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
174 |
</label>
|
6081 |
hartmut |
175 |
<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 |
176 |
</div>
|
|
|
177 |
|
3447 |
daniel |
178 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
179 |
<label for="email" class="wpsg_register"><?php echo __("E-Mail Adresse (Wiederholung)", "wpsg"); ?>
|
1460 |
david |
180 |
<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
181 |
</label>
|
6081 |
hartmut |
182 |
<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 |
183 |
</div>
|
|
|
184 |
|
3447 |
daniel |
185 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
186 |
<label for="pwd1" class="wpsg_register"><?php echo __("Passwort", "wpsg"); ?>
|
6081 |
hartmut |
187 |
<?php if (wpsg_getStr($this->view['pflicht']['pwd1']) != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
188 |
</label>
|
6081 |
hartmut |
189 |
<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 |
190 |
</div>
|
|
|
191 |
|
3447 |
daniel |
192 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
193 |
<label for="pwd2" class="wpsg_register"><?php echo __("Passwort (Wiederholung)", "wpsg"); ?>
|
6081 |
hartmut |
194 |
<?php if (wpsg_getStr($this->view['pflicht']['pwd2']) != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
1460 |
david |
195 |
</label>
|
6081 |
hartmut |
196 |
<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 |
197 |
</div>
|
|
|
198 |
|
5382 |
daniel |
199 |
<div id="wpsg_pwd_info">
|
|
|
200 |
<h4><?php echo __('Passwort sollte folgende Regeln befolgen:','wpsg') ?></h4>
|
|
|
201 |
<ul>
|
6671 |
thomas |
202 |
<li id="wpsg_pwd_length" class="invalid"><?php echo __('Mit mindestens 8 Zeichen wird das Passwort noch sicherer','wpsg')?></li>
|
5382 |
daniel |
203 |
<li id="wpsg_pwd_letter" class="invalid"><?php echo __('Mit mindestens einem Kleinbuchstaben wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
204 |
<li id="wpsg_pwd_capital" class="invalid"><?php echo __('Mit mindestens einem Großbuchstaben wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
205 |
<li id="wpsg_pwd_number" class="invalid"><?php echo __('Mit mindestens einer Zahl wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
206 |
<li id="wpsg_pwd_speziell" class="invalid"><?php echo __('Mit mindestens einem Sonderzeichen wird das Passwort noch sicherer','wpsg') ?></li>
|
|
|
207 |
</ul>
|
|
|
208 |
</div>
|
|
|
209 |
|
3447 |
daniel |
210 |
<div class="wpsg_checkoutblock">
|
4918 |
thomas |
211 |
<label for="geb" class="wpsg_register"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ)', 'wpsg'); ?>
|
1460 |
david |
212 |
<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
213 |
</label>
|
6081 |
hartmut |
214 |
<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 |
215 |
</div>
|
|
|
216 |
|
3447 |
daniel |
217 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
218 |
<label for="fax" class="wpsg_register"><?php echo __("Fax.", "wpsg"); ?>
|
|
|
219 |
<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
220 |
</label>
|
6081 |
hartmut |
221 |
<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 |
222 |
</div>
|
|
|
223 |
|
3447 |
daniel |
224 |
<div class="wpsg_checkoutblock">
|
1460 |
david |
225 |
<label for="tel" class="wpsg_register"><?php echo __("Tel.", "wpsg"); ?>
|
|
|
226 |
<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
227 |
</label>
|
6081 |
hartmut |
228 |
<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 |
229 |
</div>
|
|
|
230 |
|
3447 |
daniel |
231 |
<div class="wpsg_checkoutblock">
|
6053 |
hartmut |
232 |
<label for="strasse" class="wpsg_register"><?php echo __("Straße Nr.", "wpsg"); ?>
|
1460 |
david |
233 |
<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
234 |
</label>
|
6081 |
hartmut |
235 |
<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'])); ?>" />
|
1460 |
david |
236 |
</div>
|
|
|
237 |
|
3447 |
daniel |
238 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
239 |
<label for="plz" class="wpsg_register"><?php echo __("Postleitzahl", "wpsg"); ?>
|
1460 |
david |
240 |
<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
241 |
</label>
|
6081 |
hartmut |
242 |
<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 |
243 |
</div>
|
|
|
244 |
|
3447 |
daniel |
245 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
246 |
<label for="ort" class="wpsg_register"><?php echo __("Ort", "wpsg"); ?>
|
1460 |
david |
247 |
<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
248 |
</label>
|
6081 |
hartmut |
249 |
<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 |
250 |
</div>
|
|
|
251 |
|
3447 |
daniel |
252 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
253 |
<label for="wpsg_land" class="wpsg_register"><?php echo __("Land", "wpsg"); ?>
|
1460 |
david |
254 |
<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
255 |
</label>
|
|
|
256 |
<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">
|
|
|
257 |
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
|
|
|
258 |
<?php foreach ($this->view['laender'] as $l) { ?>
|
|
|
259 |
<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 |
260 |
<?php } ?>
|
1460 |
david |
261 |
</select>
|
|
|
262 |
</div>
|
1067 |
daniel |
263 |
|
3447 |
daniel |
264 |
<div class="wpsg_checkoutblock">
|
3649 |
daniel |
265 |
<label for="wpsg_ustidnr" class="wpsg_register"><?php echo __("UStIdNr.", "wpsg"); ?>
|
1460 |
david |
266 |
<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
|
|
|
267 |
</label>
|
6081 |
hartmut |
268 |
<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 |
269 |
</div>
|
1067 |
daniel |
270 |
|
2323 |
daniel |
271 |
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
|
|
|
272 |
<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
|
|
|
273 |
<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
|
3447 |
daniel |
274 |
<div class="wpsg_checkoutblock">
|
2323 |
daniel |
275 |
<label class="wpsg_cv" for="wpsg_cv_<?php echo $c_id; ?>">
|
|
|
276 |
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
|
|
|
277 |
<?php if ($c['typ'] == '0') { // Textfeld ?>
|
|
|
278 |
<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]); ?>" />
|
|
|
279 |
<?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
|
|
|
280 |
<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; ?>]">
|
|
|
281 |
<option value="-1"><?php echo __('Bitte Auswählen', 'wpsg'); ?></option>
|
|
|
282 |
<?php foreach ((array)$arAuswahl as $a) { ?>
|
|
|
283 |
<option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == $this->view['data']['custom'][$c_id])?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
|
|
|
284 |
<?php } ?>
|
|
|
285 |
</select>
|
|
|
286 |
<?php } else if ($c['typ'] == '2') { // Checkbox ?>
|
|
|
287 |
<input type="hidden" name="wpsg[register][custom][<?php echo $c_id; ?>]" value="0" />
|
|
|
288 |
<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 |
289 |
<span class="wpsg_clear"></span>
|
2323 |
daniel |
290 |
<?php } ?>
|
|
|
291 |
</label>
|
|
|
292 |
</div>
|
|
|
293 |
<?php } } ?>
|
|
|
294 |
<?php } ?>
|
|
|
295 |
<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
|
|
|
296 |
<div class="wpsg_clear"></div>
|
|
|
297 |
|
2780 |
daniel |
298 |
<div class="wpsg_mandatoryfield_hint">
|
|
|
299 |
<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
|
|
|
300 |
</div>
|
|
|
301 |
|
5013 |
daniel |
302 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz START*/ ?>
|
|
|
303 |
<span style="display:none">
|
|
|
304 |
<label for="wpsg_spam_email">Das Feld muss frei bleiben:</label>
|
|
|
305 |
<input type="text" name="wpsg_spam_email" id="wpsg_spam_email" title=" dieses Feld muss frei bleiben " />
|
|
|
306 |
</span>
|
|
|
307 |
<?php /* versteckte Sicherheitsabfrage als Bot-Schutz ENDE*/ ?>
|
|
|
308 |
|
2308 |
daniel |
309 |
<br />
|
|
|
310 |
|
1067 |
daniel |
311 |
<input type="submit" class="wpsg_button wpsg_registerButton" value="<?php echo __('Registrieren', 'wpsg'); ?>" name="wpsg_mod_kundenverwaltung_register" />
|
|
|
312 |
|
|
|
313 |
<?php $this->ClearSessionErrors(); ?>
|
|
|
314 |
|
|
|
315 |
<div class="wpsg_clear"></div>
|
|
|
316 |
</form>
|
|
|
317 |
</div>
|