Subversion Repositories wpShopGermany4

Rev

Rev 1068 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den ersten Schritt der Kasse
5
	 * Kundendaten etc.
6
	 */
7
 
8
	//wpsg_debug($this->view);
9
 
10
?>
11
<div class="wpsg_checkout">
12
	<?php echo $this->writeFrontendMessage(); ?>
13
 
14
	<form method="post" action="<?php echo $this->getBasketlink(true); ?>">
15
 
16
		<?php /* Einbindung des Logins im Checokut */ ?>
17
		<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_login'); ?>
18
 
19
		<table>
20
			<tr class="wpsg_kopf">
21
				<th colspan="3"><?php echo __('Kundendaten', 'wpsg'); ?></th>
22
			</tr>
23
			<tr>
24
				<td class="left">
25
					<label for="wpsg_firma"><?php echo __("Firma", "wpsg"); ?>
26
					<?php if ($this->view['pflicht']['firma'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
27
					</label>
28
					<input class="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($this->view['basket']['checkout']['firma']); ?>" />
29
				</td>
30
				<td class="wpsg_spacercell">&nbsp;</td>
31
				<td class="right">
32
					<label for="wpsg_title"><?php echo __('Anrede', 'wpsg'); ?>
33
					<?php if ($this->view['pflicht']['anrede'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:</label>
34
					<select class="wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[checkout][title]">
35
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
36
						<?php foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
37
						<option value="<?php echo $t; ?>" <?php echo (($this->view['basket']['checkout']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
38
						<?php } ?>
39
					</select>
40
				</td>
41
			</tr>
42
			<tr>
43
				<td class="left">
44
					<label for="vname" class="wpsg_checkout"><?php echo __("Vorname", "wpsg"); ?>
45
					<?php if ($this->view['pflicht']['vname'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
46
					</label>
47
					<input class="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($this->view['basket']['checkout']['vname']); ?>" />
48
				</td>
49
				<td class="wpsg_spacercell">&nbsp;</td>
50
				<td class="right">
51
					<label for="name" class="wpsg_checkout"><?php echo __("Name", "wpsg"); ?>
52
					<?php if ($this->data['pflicht']['name'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
53
					</label>
54
					<input class="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($this->view['basket']['checkout']['name']); ?>" />
55
				</td>
56
			</tr>
57
			<tr>
58
				<td class="left">
59
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse", "wpsg"); ?>
60
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
61
					</label>
62
					<input class="wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email" name="wpsg[checkout][email]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['email']); ?>" />
63
				</td>
64
				<td class="wpsg_spacercell">&nbsp;</td>
65
				<td class="right">
66
					<label for="geb" class="wpsg_checkout"><?php echo __('Geburtsdatum (Format: DD.MM.YYYY)',' wpsg'); ?>
67
					<?php if ($this->view['pflicht']['geb'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
68
					</label>
69
					<input class="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($this->view['basket']['checkout']['geb']); ?>" />
70
				</td>
71
			</tr>
72
			<tr>
73
				<td class="left">
74
					<?php if ($this->view['pflicht']['emailconfirm'] == '1') { ?>
75
					<label for="email" class="wpsg_checkout"><?php echo __("E-Mail Adresse (Wiederholung)", "wpsg"); ?>
76
					<?php if ($this->view['pflicht']['email'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
77
					</label>
78
					<input class="wpsg_checkout <?php echo ((in_array("email", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" id="email2" name="wpsg[checkout][email2]" value="<?php echo htmlspecialchars($this->view['basket']['checkout']['email2']); ?>" />
79
					<?php } else { ?>
80
					<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
81
					<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
82
					</label>
83
					<input class="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($this->view['basket']['checkout']['fax']); ?>" />
84
					<?php } ?>
85
				</td>
86
				<td class="wpsg_spacercell">&nbsp;</td>
87
				<td class="right">
88
					<label for="tel" class="wpsg_checkout"><?php echo __("Tel.", "wpsg"); ?>
89
					<?php if ($this->view['pflicht']['tel'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
90
					</label>
91
					<input class="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($this->view['basket']['checkout']['tel']); ?>" />
92
				</td>
93
			</tr>
94
			<tr>
95
				<?php if ($this->view['pflicht']['emailconfirm'] == '1') { ?>
96
				<td class="left">
97
					<label for="strasse" class="wpsg_checkout"><?php echo __("Strasse Nr.", "wpsg"); ?>
98
					<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
99
					</label>
100
					<input class="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($this->view['basket']['checkout']['strasse']); ?>" />
101
				</td>
102
				<td class="wpsg_spacercell">&nbsp;</td>
103
				<td class="right">
104
					<label for="fax" class="wpsg_checkout"><?php echo __("Fax.", "wpsg"); ?>
105
					<?php if ($this->view['pflicht']['fax'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
106
					</label>
107
					<input class="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($this->view['basket']['checkout']['fax']); ?>" />
108
				</td>
109
				<?php } else { ?>
110
				<td colspan="3" class="full">
111
					<label for="strasse" class="wpsg_checkout"><?php echo __("Strasse Nr.", "wpsg"); ?>
112
					<?php if ($this->view['pflicht']['strasse'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
113
					</label>
114
					<input class="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($this->view['basket']['checkout']['strasse']); ?>" />
115
				</td>
116
				<?php } ?>
117
			</tr>
118
			<tr>
119
				<td class="left">
120
					<label for="plz" class="wpsg_checkout"><?php echo __("Postleitzahl", "wpsg"); ?>
121
					<?php if ($this->view['pflicht']['plz'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
122
					</label>
123
					<input class="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($this->view['basket']['checkout']['plz']); ?>" />
124
				</td>
125
				<td class="wpshopgermany_spacercell">&nbsp;</td>
126
				<td class="right">
127
					<label for="ort" class="wpshopgermany_checkout"><?php echo __("Ort", "wpsg"); ?>
128
					<?php if ($this->data['pflicht']['ort'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
129
					</label>
130
					<input class="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($this->view['basket']['checkout']['ort']); ?>" />
131
				</td>
132
			</tr>
133
			<tr>
134
				<td class="left">
135
					<label for="wpsg_land" class="wpsg_checkout"><?php echo __("Land", "wpsg"); ?>
136
					<?php if ($this->view['pflicht']['land'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
137
					</label>
138
					<select name="wpsg[checkout][land]" class="wpsg_checkout <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
139
						<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
140
						<?php foreach ($this->view['laender'] as $l) { ?>
141
						<option value="<?php echo $l['id']; ?>" <?php echo (($l['id'] == $this->view['basket']['checkout']['land'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($l['name']); ?></option>
142
						<?php } ?>
143
					</select>
144
				</td>
145
				<td class="wpshopgermany_spacercell">&nbsp;</td>
146
				<td class="right">
147
					<label for="wpsg_ustidnr" class="wpshopgermany_checkout"><?php echo __("UStIdNr.", "wpsg"); ?>
148
					<?php if ($this->data['pflicht']['ustidnr'] != '1') { ?><span class="wpsg_required">*</span><?php } ?>:
149
					</label>
150
					<input class="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($this->view['basket']['checkout']['ustidnr']); ?>" />
151
				</td>
152
			</tr>
153
 
154
			<?php /* Einbindung der Registrierung während des Checkouts */ ?>
155
			<?php $this->callMod('wpsg_mod_kundenverwaltung', 'checkout_register'); ?>
156
 
157
		</table>
158
 
159
		<br />
160
 
161
		<input type="submit" class="wpsg_button wpsg_basketbutton" value="<?php echo __('Zurück zum Warenkorb', 'wpsg'); ?>" name="wpsg_redirect_basket" />
162
		<input type="submit" class="wpsg_button wpsg_checkout2button" value="<?php echo __('Weiter', 'wpsg'); ?>" name="wpsg_checkout" />
163
 
164
		<div class="wpsg_clear"></div>
165
 
166
		<?php $this->ClearSessionErrors(); ?>
167
 
168
	</form>
169
 
170
</div>