Subversion Repositories wpShopGermany4

Rev

Rev 7779 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
5794 thomas 4
	 * Template für den ersten Schritt der Kasse
1067 daniel 5
	 * Kundendaten etc.
6
	 */
5765 thomas 7
 
1067 daniel 8
	//wpsg_debug($this->view);
7706 daniel 9
 
5765 thomas 10
?>
3444 daniel 11
<script type="text/javascript">/* <![CDATA[ */
7481 daniel 12
 
1306 daniel 13
	jQuery(document).ready(function() {
7481 daniel 14
 
2803 daniel 15
		<?php if ($this->get_option('wpsg_form_validation') == '1') { ?>
16
 
2330 daniel 17
		if (typeof jQuery.validationEngine == "object")
18
		{
19
 
2803 daniel 20
			jQuery("#form-step2").validationEngine('attach', {promptPosition : "bottomLeft", scroll: false});
1306 daniel 21
 
2330 daniel 22
			jQuery('.wpsg_mod_kundenverwaltung_login').bind('click', function(){
2927 daniel 23
				jQuery("#form-step2").validationEngine('detach');
2330 daniel 24
			});
25
 
26
		}
1306 daniel 27
 
2803 daniel 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 } );
32
		jQuery("#form-step2").validate( {
33
			ignore: '',
34
			errorClass: 'wpsg_error',
35
			onsubmit: false,
36
			showErrors: function(errorMap, errorList) {
37
 
38
				this.defaultShowErrors();
39
 
40
			}
41
		} );
42
 
43
		jQuery('#wpsg_checkout2button').bind('click', function() {
3021 daniel 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;
48
 
2803 daniel 49
		} );
50
 
51
		<?php } ?>
3444 daniel 52
 
7481 daniel 53
		jQuery('.wpsg_checkout input').bind('keyup keypress', function(e) {
3444 daniel 54
 
7481 daniel 55
			var jqThis = jQuery(this);
56
 
57
			// Enter lass ich direkt durch
58
			if (jqThis.attr("type") === 'submit') return true;
59
 
60
			var keyCode = e.keyCode || e.which;
61
 
62
			if (keyCode == 13) {
63
 
64
				if (jqThis.parents('.wpsg_loginform').length > 0) {
65
 
66
					jQuery('input[name="wpsg_mod_kundenverwaltung_login"]').click();
67
 
68
				} else {
69
 
70
					jQuery('#wpsg_checkout2button').click();
71
 
72
				}
73
 
3444 daniel 74
		    }
75
 
76
		} );
2803 daniel 77
 
1306 daniel 78
	} );
7184 thomas 79
 
80
	<?php /* Copy&Paste für das Eingabefeld "E-Mail-Wiederholung sperren */ ?>
81
	window.onload = function() {
1306 daniel 82
 
7247 daniel 83
		var email2 = document.getElementById('email2');
7184 thomas 84
 
85
		email2.onpaste = function(e) {
86
 
87
			e.preventDefault();
88
 
89
		}
90
	}
91
 
3444 daniel 92
/* ]]> */</script>
1306 daniel 93
 
3444 daniel 94
<div class="wpsg wpsg_checkout">
2792 daniel 95
 
1067 daniel 96
	<?php echo $this->writeFrontendMessage(); ?>
2792 daniel 97
 
5201 daniel 98
	<?php $GLOBALS['step'] = 2; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
5013 daniel 99
 
1403 daniel 100
	<form id="form-step2" method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>" enctype="multipart/form-data">
1067 daniel 101
 
6872 hartmut 102
		<?php /* Einbindung des Logins im Checkout */ ?>
7481 daniel 103
		<div class="wpsg_loginform">
104
			<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
105
		</div>
1067 daniel 106
 
2792 daniel 107
		<div class="wpsg_box" id="wpsg_box_kundendaten">
3444 daniel 108
 
5581 thomas 109
			<?php /*Wenn Kunden eingeloggt, oder wenn Kunde nicht eingeloggt */ ?>
110
			<?php if ($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn')) { ?>
5794 thomas 111
				<h2><?php echo __('Bitte überprüfen Sie Ihre Kundendaten','wpsg');?></h2>
5581 thomas 112
			<?php } else { ?>
113
				<h2><?php echo __('Bitte geben Sie Ihre Kundendaten ein', 'wpsg'); ?></h2>
114
			<?php } ?>
5765 thomas 115
 
3460 daniel 116
			<div class="wpsg_spacer"></div>
1131 daniel 117
 
2792 daniel 118
			<div class="wpsg_inner">
5765 thomas 119
 
6872 hartmut 120
				<?php if ($this->view['pflicht']['firma'] != '2') { ?>
5765 thomas 121
				<div class="wpsg_checkoutblock" id="wpsg_firma">
6371 hartmut 122
					<label for="wpsg_firma"><?php echo __("Firma:", "wpsg"); ?>
123
					<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
5765 thomas 124
					</label>
5866 hartmut 125
					<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[checkout][firma]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['firma'])); ?>" />
5765 thomas 126
				</div>
6872 hartmut 127
				<?php } ?>
5765 thomas 128
 
6872 hartmut 129
				<?php if ($this->view['pflicht']['anrede'] != '2') { ?>
4159 thomas 130
				<div class="wpsg_checkoutblock" id="wpsg_anrede">
6371 hartmut 131
					<label for="wpsg_title"><?php echo __('Anrede:', 'wpsg'); ?>
132
					<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?></label>
2792 daniel 133
					<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[checkout][title]">
5794 thomas 134
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
6107 hartmut 135
						<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
6234 hartmut 136
						<option value="<?php echo $i; /*wpsg_hspc($t);*/ ?>" <?php echo (($this->view['basket']['checkout']['title'] == $i)?'selected="selected"':''); ?>><?php echo $t; $i++; ?></option>
2792 daniel 137
					<?php } ?>
138
					</select>
139
				</div>
6872 hartmut 140
				<?php } ?>
2792 daniel 141
 
6872 hartmut 142
				<?php if ($this->view['pflicht']['vname'] != '2') { ?>
4159 thomas 143
				<div class="wpsg_checkoutblock" id="wpsg_vorname">
6371 hartmut 144
					<label for="vname" class="wpsg_checkout"><?php echo __("Vorname:", "wpsg"); ?>
145
					<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 146
					</label>
5866 hartmut 147
					<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[checkout][vname]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['vname'])); ?>" />
2792 daniel 148
				</div>
6872 hartmut 149
				<?php } ?>
1131 daniel 150
 
6872 hartmut 151
				<?php if ($this->view['pflicht']['name'] != '2') { ?>
4159 thomas 152
				<div class="wpsg_checkoutblock" id="wpsg_name">
6371 hartmut 153
					<label for="name" class="wpsg_checkout"><?php echo __("Name:", "wpsg"); ?>
154
					<?php if ($this->view['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 155
					</label>
5866 hartmut 156
					<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[checkout][name]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['name'])); ?>" />
2792 daniel 157
				</div>
6872 hartmut 158
				<?php } ?>
2792 daniel 159
 
6872 hartmut 160
				<?php if ($this->view['pflicht']['email'] != '2') { ?>
4159 thomas 161
				<div class="wpsg_checkoutblock" id="wpsg_email">
6371 hartmut 162
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse:", "wpsg"); ?>
163
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 164
					</label>
8161 daniel 165
					<input
166
                        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':''); ?>"
167
                        type="email"
168
                        id="email"
169
                        name="wpsg[checkout][email]"
170
                        value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['email'])); ?>"
171
                        autocomplete="off"
172
                    />
2792 daniel 173
				</div>
6872 hartmut 174
				<?php } ?>
2792 daniel 175
 
6872 hartmut 176
				<?php if ($this->view['pflicht']['email'] != '2') { ?>
2792 daniel 177
				<?php if (isset($this->view['pflicht']['emailconfirm']) && $this->view['pflicht']['emailconfirm'] == '1') { ?>
4159 thomas 178
				<div class="wpsg_checkoutblock" id="wpsg_email2">
6371 hartmut 179
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail (Wiederholung:)", "wpsg"); ?>
180
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 181
					</label>
8161 daniel 182
					<input
183
                        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':''); ?>"
184
                        type="email"
185
                        id="email2"
186
                        name="wpsg[checkout][email2]"
187
                        value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['email2'])); ?>"
188
                        autocomplete="off"
189
                    />
2792 daniel 190
				</div>
1067 daniel 191
				<?php } ?>
6872 hartmut 192
				<?php } ?>
2792 daniel 193
 
6872 hartmut 194
				<?php if ($this->view['pflicht']['geb'] != '2') { ?>
4159 thomas 195
				<div class="wpsg_checkoutblock" id="wpsg_geburtsdatum">
6371 hartmut 196
					<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: TT.MM.JJJJ):',"wpsg"); ?>
197
					<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 198
					</label>
5866 hartmut 199
					<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[checkout][geb]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['geb'])); ?>" />
2792 daniel 200
				</div>
6872 hartmut 201
				<?php } ?>
5765 thomas 202
 
6872 hartmut 203
				<?php if ($this->view['pflicht']['fax'] != '2') { ?>
5765 thomas 204
				<div class="wpsg_checkoutblock" id="wpsg_fax">
6371 hartmut 205
					<label for="fax" class="wpsg_checkout"><?php echo __("Fax.:", "wpsg"); ?>
206
					<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
5765 thomas 207
					</label>
7754 daniel 208
					<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="text" id="fax" name="wpsg[checkout][fax]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['fax'])); ?>" />
5765 thomas 209
				</div>
6872 hartmut 210
				<?php } ?>
2792 daniel 211
 
6872 hartmut 212
				<?php if ($this->view['pflicht']['tel'] != '2') { ?>
5765 thomas 213
				<div class="wpsg_checkoutblock" id="wpsg_telefon">
6371 hartmut 214
					<label for="tel" class="wpsg_checkout"><?php echo __("Tel.:", "wpsg"); ?>
215
					<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 216
					</label>
7754 daniel 217
					<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="text" id="tel" name="wpsg[checkout][tel]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['tel'])); ?>" />
2792 daniel 218
				</div>
6872 hartmut 219
				<?php } ?>
5765 thomas 220
 
6872 hartmut 221
				<?php if ($this->view['pflicht']['strasse'] != '2') { ?>
7247 daniel 222
 
7779 daniel 223
					<?php if (wpsg_isSizedInt($this->view['pflicht']['wpsg_showNr'])) { ?>
7247 daniel 224
 
225
						<div class="wpsg_checkoutblock" id="wpsg_streetnr">
7316 thomas 226
							<label for="strasse" class="street wpsg_checkout"><?php echo __('Straße:', 'wpsg'); ?>
7247 daniel 227
								<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
228
								<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[checkout][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['strasse'])); ?>" />
229
							</label>
230
							<label for="nr" class="nr wpsg_checkout"><?php echo __('Nr:', 'wpsg'); ?>
231
								<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
232
								<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[checkout][nr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['nr'])); ?>" />
233
							</label>
234
						</div>
235
 
236
					<?php } else { ?>
237
 
238
						<div class="wpsg_checkoutblock" id="wpsg_strasse">
239
							<label for="strasse" class="wpsg_checkout"><?php echo __("Straße, Nr.:", "wpsg"); ?>
240
								<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
241
							</label>
242
							<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[checkout][strasse]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['strasse'])); ?>" />
243
						</div>
244
 
245
					<?php } ?>
246
 
6872 hartmut 247
				<?php } ?>
2792 daniel 248
 
6872 hartmut 249
				<?php if ($this->view['pflicht']['plz'] != '2') { ?>
4159 thomas 250
				<div class="wpsg_checkoutblock" id="wpsg_postleitzahl">
6371 hartmut 251
					<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl:", "wpsg"); ?>
252
					<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 253
					</label>
5866 hartmut 254
					<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[checkout][plz]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['plz'])); ?>" />
2792 daniel 255
				</div>
6872 hartmut 256
				<?php } ?>
2792 daniel 257
 
6872 hartmut 258
				<?php if ($this->view['pflicht']['ort'] != '2') { ?>
4159 thomas 259
				<div class="wpsg_checkoutblock" id="wpsg_ort">
6371 hartmut 260
					<label for="ort" class="wpsg_checkout"><?php echo __("Ort:", "wpsg"); ?>
261
					<?php if ($this->view['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 262
					</label>
5866 hartmut 263
					<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[checkout][ort]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['ort'])); ?>" />
2792 daniel 264
				</div>
6872 hartmut 265
				<?php } ?>
2792 daniel 266
 
6872 hartmut 267
				<?php if ($this->view['pflicht']['land'] != '2') { ?>
4159 thomas 268
				<div class="wpsg_checkoutblock" id="wpsg_land">
6371 hartmut 269
					<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land:", "wpsg"); ?>
270
					<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 271
					</label>
272
					<select name="wpsg[checkout][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">
5794 thomas 273
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
2792 daniel 274
						<?php foreach ($this->view['laender'] as $l) { ?>
3574 daniel 275
						<option value="<?php echo wpsg_hspc($l['id']); ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['land'])?'selected="selected"':((!wpsg_isSizedInt($this->view['basket']['checkout']['land']) && $this->get_option('wpsg_defaultland') == $l['id'])?'selected="selected"':'')); ?>><?php echo wpsg_hspc(__($l['name'], 'wpsg')); ?></option>
2792 daniel 276
						<?php } ?>
277
					</select>
278
				</div>
6872 hartmut 279
				<?php } ?>
2792 daniel 280
 
6872 hartmut 281
				<?php if ($this->view['pflicht']['ustidnr'] != '2') { ?>
4159 thomas 282
				<div class="wpsg_checkoutblock" id="wpsg_ustidnr">
6371 hartmut 283
					<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.:", "wpsg"); ?>
284
					<?php if ($this->view['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>
2792 daniel 285
					</label>
5866 hartmut 286
					<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[checkout][ustidnr]" value="<?php echo htmlspecialchars(wpsg_getStr($this->view['basket']['checkout']['ustidnr'])); ?>" />
2792 daniel 287
				</div>
6872 hartmut 288
				<?php } ?>
2792 daniel 289
 
290
				<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
291
				<?php if ($this->get_option('wpsg_kundenvariablen_show') == '1') { ?>
292
				<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
293
				<div class="wpsg_checkoutblock">
4312 daniel 294
					<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
2792 daniel 295
						<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?><?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>:
5765 thomas 296
                    </label>
297
                    <?php if ($c['typ'] == '0') { // Textfeld ?>
6804 hartmut 298
                    <input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" type="text" value="<?php if (isset($this->view['basket']['checkout']['custom'][$c_id])) echo wpsg_hspc($this->view['basket']['checkout']['custom'][$c_id]); ?>" />
5765 thomas 299
                    <?php } else if ($c['typ'] == '1') { $arAuswahl = explode("|", $c['auswahl']); // Auswahlfeld ?>
300
                    <select class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> <?php echo ((in_array("custom_".$c_id, (array)$this->view['error']))?'wpsg_error':''); ?>" name="wpsg[checkout][custom][<?php echo $c_id; ?>]">
5794 thomas 301
                        <option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
5765 thomas 302
                        <?php foreach ((array)$arAuswahl as $a) { ?>
6872 hartmut 303
                        <option value="<?php echo wpsg_hspc($a); ?>" <?php echo (($a == @$this->view['basket']['checkout']['custom'][$c_id])?'selected="selected"':''); ?>><?php echo wpsg_hspc($a); ?></option>
5765 thomas 304
                        <?php } ?>
305
                    </select>
306
                    <?php } else if ($c['typ'] == '2') { // Checkbox ?>
307
                    <input type="hidden" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="0" />
6804 hartmut 308
                    <input class="<?php echo (($c['show'] == '0')?'validate[required]':''); ?> checkbox" type="checkbox" value="1" name="wpsg[checkout][custom][<?php echo $c_id; ?>]" value="1" <?php if (isset($this->view['basket']['checkout']['custom'][$c_id])) echo wpsg_hspc(($this->view['basket']['checkout']['custom'][$c_id] == '1')?'checked="checked"':''); ?> />
5765 thomas 309
                    <?php } ?>
2792 daniel 310
				</div>
311
				<?php } } ?>
1131 daniel 312
				<?php } ?>
2792 daniel 313
				<?php /* Automatische Einbindung der benutzerdefinierten Kundenfelder ENDE */ ?>
314
				<div class="wpsg_clear"></div>
315
 
5717 thomas 316
				<?php /* $this->callMods('checkout_customer_inner'); START */ ?>
2792 daniel 317
 
5794 thomas 318
				<?php /* Passwortabfrage für Neuregistrierung */ ?>
5779 thomas 319
    			<?php echo $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_customer_inner'); ?>
320
 
5765 thomas 321
				<?php /*echo $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_customer_inner'); */ ?>
5717 thomas 322
 
323
				<?php /* Abfrage Satollo-Newsletter */ ?>
324
				<?php echo $this->callMod('wpsg_mod_nlsatolo', 'checkout_customer_inner'); ?>
325
 
5794 thomas 326
				<?php /* Einverständnisabfrage Trusted Shops */ ?>
5717 thomas 327
				<?php echo $this->callMod('wpsg_mod_trustedshops', 'checkout_customer_inner'); ?>
328
 
329
				<?php /* $this->callMods('checkout_customer_inner'); ENDE */ ?>
330
 
2792 daniel 331
			</div>
332
 
1131 daniel 333
		</div>
2792 daniel 334
 
1403 daniel 335
		<?php $this->callMods('checkout_inner_prebutton', array(&$this->view)); ?>
336
 
1306 daniel 337
		<div class="wpsg_clear"></div>
2792 daniel 338
 
339
		<div class="wpsg_box">
3460 daniel 340
 
3444 daniel 341
			<h2><?php echo __('Bestellkommentar', 'wpsg'); ?></h2>
3460 daniel 342
 
343
			<div class="wpsg_spacer"></div>
344
 
2792 daniel 345
			<div class="wpsg_inner wpsg_commentblock">
5866 hartmut 346
				<textarea name="wpsg[checkout][comment]" id="wpsg_checkout_comment"><?php echo wpsg_getStr($this->view['basket']['checkout']['comment']); ?></textarea>
2792 daniel 347
			</div>
1206 daniel 348
		</div>
349
 
2780 daniel 350
		<div class="wpsg_mandatoryfield_hint">
351
			<?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
352
		</div>
2792 daniel 353
 
1067 daniel 354
		<br />
3444 daniel 355
 
2792 daniel 356
		<?php $this->ClearSessionErrors(); ?>
3444 daniel 357
 
5794 thomas 358
		<input type="submit" onclick="location.href='<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>'; return false;" class="wpsg_button wpsg_basketbutton" value="<?php echo __('zurück zum Warenkorb', 'wpsg'); ?>" name="wpsg_redirect_basket" />
3453 daniel 359
		<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_checkout2button" value="<?php echo __('weiter', 'wpsg'); ?>" name="wpsg_checkout" />
1067 daniel 360
 
361
		<div class="wpsg_clear"></div>
2792 daniel 362
 
363
	 	<br />
364
 
365
	</form>
1067 daniel 366
 
2792 daniel 367
	<script type="text/javascript">/* <![CDATA[ */
368
 
369
		jQuery(document).ready(function() {
370
			jQuery('#wpsg_checkout_set_comment').bind('change', function() {
371
				if (jQuery(this).attr('checked') == true || jQuery(this).attr('checked') == "checked") jQuery('#wpsg_checkout_comment').show();
372
				else jQuery('#wpsg_checkout_comment').hide();
373
			} );
374
		} );
375
 
5922 hartmut 376
 
377
		<?php if ($this->hasMod('wpsg_mod_addressvalidation')) { ?>
378
			validateAddressBind( {
379
            	Strasse: '#strasse',
380
            	Nr: '#nr',
381
            	Ort: '#ort',
382
            	PLZ: '#plz',
383
            	Land: '#wpsg_land',
384
            	Key: '<?php echo $this->get_option('wpsg_mod_addressvalidation_apikey');?>',
385
            	StorageKey: 'KundenAddress',
386
            	MsgTeil1: 'Kundenadresse'
387
			} );
388
		<?php } ?>
389
 
390
		//} );
391
 
2792 daniel 392
	/* ]]> */</script>
1067 daniel 393
 
394
</div>