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