PageRenderTime 8ms CodeModel.GetById 656ms app.highlight 283ms RepoModel.GetById 180ms app.codeStats 1ms

/tools/smarty_v2/compile/%%B0^B05^B050FA28%%authentication.tpl.php

http://marocmall.googlecode.com/
PHP | 644 lines | 621 code | 21 blank | 2 comment | 150 complexity | 255a480e0d62fa738e4a82f2684ae46d MD5 | raw file
  1<?php /* Smarty version 2.6.20, created on 2011-12-03 00:32:39
  2         compiled from C:%5CD%5CMarocMall/themes/prestashop/authentication.tpl */ ?>
  3<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4smarty_core_load_plugins(array('plugins' => array(array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/authentication.tpl', 48, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/authentication.tpl', 53, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/authentication.tpl', 62, false),array('modifier', 'stripslashes', 'C:\\D\\MarocMall/themes/prestashop/authentication.tpl', 108, false),)), $this); ?>
  5
  6
  7<?php if (! isset ( $this->_tpl_vars['dlv_all_fields'] )): ?>
  8		<?php echo $this->_tpl_vars['dlv_all_fields']['0']; ?>
  9
 10		<?php echo $this->_tpl_vars['dlv_all_fields']['1']; ?>
 11
 12		<?php echo $this->_tpl_vars['dlv_all_fields']['2']; ?>
 13
 14		<?php echo $this->_tpl_vars['dlv_all_fields']['3']; ?>
 15
 16		<?php echo $this->_tpl_vars['dlv_all_fields']['4']; ?>
 17
 18		<?php echo $this->_tpl_vars['dlv_all_fields']['5']; ?>
 19
 20		<?php echo $this->_tpl_vars['dlv_all_fields']['6']; ?>
 21
 22		<?php echo $this->_tpl_vars['dlv_all_fields']['7']; ?>
 23
 24		<?php echo $this->_tpl_vars['dlv_all_fields']['8']; ?>
 25
 26<?php endif; ?>
 27
 28<?php ob_start(); ?><?php echo smartyTranslate(array('s' => 'Login'), $this);?>
 29<?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
 30<?php $_smarty_tpl_vars = $this->_tpl_vars;
 31$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
 32$this->_tpl_vars = $_smarty_tpl_vars;
 33unset($_smarty_tpl_vars);
 34 ?>
 35
 36<script type="text/javascript">
 37// <![CDATA[
 38idSelectedCountry = <?php if (isset ( $_POST['id_state'] )): ?><?php echo ((is_array($_tmp=$_POST['id_state'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
 39<?php else: ?>false<?php endif; ?>;
 40countries = new Array();
 41countriesNeedIDNumber = new Array();
 42countriesNeedZipCode = new Array();
 43<?php if (isset ( $this->_tpl_vars['countries'] )): ?>
 44	<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
 45    foreach ($_from as $this->_tpl_vars['country']):
 46?>
 47		<?php if (isset ( $this->_tpl_vars['country']['states'] ) && $this->_tpl_vars['country']['contains_states']): ?>
 48			countries[<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
 49] = new Array();
 50			<?php $_from = $this->_tpl_vars['country']['states']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['states'] = array('total' => count($_from), 'iteration' => 0);
 51if ($this->_foreach['states']['total'] > 0):
 52    foreach ($_from as $this->_tpl_vars['state']):
 53        $this->_foreach['states']['iteration']++;
 54?>
 55				countries[<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
 56].push({'id' : '<?php echo $this->_tpl_vars['state']['id_state']; ?>
 57', 'name' : '<?php echo ((is_array($_tmp=$this->_tpl_vars['state']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
 58'});
 59			<?php endforeach; endif; unset($_from); ?>
 60		<?php endif; ?>
 61		<?php if ($this->_tpl_vars['country']['need_identification_number']): ?>
 62			countriesNeedIDNumber.push(<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
 63);
 64		<?php endif; ?>
 65		<?php if (isset ( $this->_tpl_vars['country']['need_zip_code'] )): ?>
 66			countriesNeedZipCode[<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
 67] = <?php echo $this->_tpl_vars['country']['need_zip_code']; ?>
 68;
 69		<?php endif; ?>
 70	<?php endforeach; endif; unset($_from); ?>
 71<?php endif; ?>
 72$(function(){
 73	$('.id_state option[value=<?php if (isset ( $_POST['id_state'] )): ?><?php echo $_POST['id_state']; ?>
 74<?php else: ?><?php if (isset ( $this->_tpl_vars['address'] )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['address']->id_state)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
 75<?php endif; ?><?php endif; ?>]').attr('selected', 'selected');
 76});
 77//]]>
 78<?php if ($this->_tpl_vars['vat_management']): ?>
 79	<?php echo '
 80	$(document).ready(function() {
 81		$(\'#company\').blur(function(){
 82			vat_number();
 83		});
 84		vat_number();
 85		function vat_number()
 86		{
 87			if ($(\'#company\').val() != \'\')
 88				$(\'#vat_number\').show();
 89			else
 90				$(\'#vat_number\').hide();
 91		}
 92	});
 93	'; ?>
 94
 95<?php endif; ?>
 96</script>
 97<h1><?php if (! isset ( $this->_tpl_vars['email_create'] )): ?><?php echo smartyTranslate(array('s' => 'Log in'), $this);?>
 98<?php else: ?><?php echo smartyTranslate(array('s' => 'Create your account'), $this);?>
 99<?php endif; ?></h1>
100<?php $this->assign('current_step', 'login'); ?>
101<?php $_smarty_tpl_vars = $this->_tpl_vars;
102$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./order-steps.tpl", 'smarty_include_vars' => array()));
103$this->_tpl_vars = $_smarty_tpl_vars;
104unset($_smarty_tpl_vars);
105 ?>
106
107<?php $_smarty_tpl_vars = $this->_tpl_vars;
108$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
109$this->_tpl_vars = $_smarty_tpl_vars;
110unset($_smarty_tpl_vars);
111 ?>
112<?php $this->assign('stateExist', false); ?>
113<?php if (! isset ( $this->_tpl_vars['email_create'] )): ?>
114	<form action="<?php echo $this->_tpl_vars['link']->getPageLink('authentication.php',true); ?>
115" method="post" id="create-account_form" class="std">
116		<fieldset>
117			<h3><?php echo smartyTranslate(array('s' => 'Create your account'), $this);?>
118</h3>
119			<h4><?php echo smartyTranslate(array('s' => 'Enter your e-mail address to create an account'), $this);?>
120.</h4>
121			<p class="text">
122				<label for="email_create"><?php echo smartyTranslate(array('s' => 'E-mail address'), $this);?>
123</label>
124				<span><input type="text" id="email_create" name="email_create" value="<?php if (isset ( $_POST['email_create'] )): ?><?php echo ((is_array($_tmp=((is_array($_tmp=$_POST['email_create'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
125<?php endif; ?>" class="account_input" /></span>
126			</p>
127			<p class="submit">
128			<?php if (isset ( $this->_tpl_vars['back'] )): ?><input type="hidden" class="hidden" name="back" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['back'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
129" /><?php endif; ?>
130				<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="<?php echo smartyTranslate(array('s' => 'Create your account'), $this);?>
131" />
132				<input type="hidden" class="hidden" name="SubmitCreate" value="<?php echo smartyTranslate(array('s' => 'Create your account'), $this);?>
133" />
134			</p>
135		</fieldset>
136	</form>
137	<form action="<?php echo $this->_tpl_vars['link']->getPageLink('authentication.php',true); ?>
138" method="post" id="login_form" class="std">
139		<fieldset>
140			<h3><?php echo smartyTranslate(array('s' => 'Already registered ?'), $this);?>
141</h3>
142			<p class="text">
143				<label for="email"><?php echo smartyTranslate(array('s' => 'E-mail address'), $this);?>
144</label>
145				<span><input type="text" id="email" name="email" value="<?php if (isset ( $_POST['email'] )): ?><?php echo ((is_array($_tmp=((is_array($_tmp=$_POST['email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
146<?php endif; ?>" class="account_input" /></span>
147			</p>
148			<p class="text">
149				<label for="passwd"><?php echo smartyTranslate(array('s' => 'Password'), $this);?>
150</label>
151				<span><input type="password" id="passwd" name="passwd" value="<?php if (isset ( $_POST['passwd'] )): ?><?php echo ((is_array($_tmp=((is_array($_tmp=$_POST['passwd'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
152<?php endif; ?>" class="account_input" /></span>
153			</p>
154			<p class="submit">
155				<?php if (isset ( $this->_tpl_vars['back'] )): ?><input type="hidden" class="hidden" name="back" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['back'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
156" /><?php endif; ?>
157				<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="<?php echo smartyTranslate(array('s' => 'Log in'), $this);?>
158" />
159			</p>
160			<p class="lost_password"><a href="<?php echo $this->_tpl_vars['link']->getPageLink('password.php'); ?>
161"><?php echo smartyTranslate(array('s' => 'Forgot your password?'), $this);?>
162</a></p>
163		</fieldset>
164	</form>
165	<?php if (isset ( $this->_tpl_vars['inOrderProcess'] ) && $this->_tpl_vars['inOrderProcess'] && $this->_tpl_vars['PS_GUEST_CHECKOUT_ENABLED']): ?>
166		<form action="<?php echo $this->_tpl_vars['link']->getPageLink('authentication.php',true); ?>
167?back=<?php echo $this->_tpl_vars['back']; ?>
168" method="post" id="new_account_form" class="std">
169			<fieldset>
170				<h3><?php echo smartyTranslate(array('s' => 'Instant Checkout'), $this);?>
171</h3>
172				<div id="opc_account_form" style="display: block; ">
173					<!-- Account -->
174					<p class="required text">
175						<label for="email"><?php echo smartyTranslate(array('s' => 'E-mail address'), $this);?>
176</label>
177						<input type="text" class="text" id="guest_email" name="guest_email" value="<?php if (isset ( $_POST['guest_email'] )): ?><?php echo $_POST['guest_email']; ?>
178<?php endif; ?>">
179						<sup>*</sup>
180					</p>
181					<p class="radio required">
182						<span><?php echo smartyTranslate(array('s' => 'Title'), $this);?>
183</span>
184						<input type="radio" name="id_gender" id="id_gender1" value="1" <?php if (isset ( $_POST['id_gender'] ) && $_POST['id_gender'] == '1'): ?>checked="checked"<?php endif; ?>>
185						<label for="id_gender1" class="top"><?php echo smartyTranslate(array('s' => 'Mr.'), $this);?>
186</label>
187						<input type="radio" name="id_gender" id="id_gender2" value="2" <?php if (isset ( $_POST['id_gender'] ) && $_POST['id_gender'] == '2'): ?>checked="checked"<?php endif; ?>>
188						<label for="id_gender2" class="top"><?php echo smartyTranslate(array('s' => 'Ms.'), $this);?>
189</label>
190					</p>
191										<p class="required text">
192						<label for="firstname"><?php echo smartyTranslate(array('s' => 'First name'), $this);?>
193</label>
194						<input type="text" class="text" id="firstname" name="firstname" onblur="$('#customer_firstname').val($(this).val());" value="<?php if (isset ( $_POST['firstname'] )): ?><?php echo $_POST['firstname']; ?>
195<?php endif; ?>">
196						<input type="hidden" class="text" id="customer_firstname" name="customer_firstname" value="<?php if (isset ( $_POST['firstname'] )): ?><?php echo $_POST['firstname']; ?>
197<?php endif; ?>">
198						<sup>*</sup>
199					</p>
200					<p class="required text">
201						<label for="lastname"><?php echo smartyTranslate(array('s' => 'Last name'), $this);?>
202</label>
203						<input type="text" class="text" id="lastname" name="lastname" onblur="$('#customer_lastname').val($(this).val());" value="<?php if (isset ( $_POST['lastname'] )): ?><?php echo $_POST['lastname']; ?>
204<?php endif; ?>">
205						<input type="hidden" class="text" id="customer_lastname" name="customer_lastname" value="<?php if (isset ( $_POST['lastname'] )): ?><?php echo $_POST['lastname']; ?>
206<?php endif; ?>">
207						<sup>*</sup>
208					</p>
209					<p class="select">
210						<span><?php echo smartyTranslate(array('s' => 'Date of Birth'), $this);?>
211</span>
212						<select id="days" name="days">
213							<option value="">-</option>
214							<?php $_from = $this->_tpl_vars['days']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
215    foreach ($_from as $this->_tpl_vars['day']):
216?>
217								<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
218" <?php if (( $this->_tpl_vars['sl_day'] == $this->_tpl_vars['day'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
219&nbsp;&nbsp;</option>
220							<?php endforeach; endif; unset($_from); ?>
221						</select>
222												<select id="months" name="months">
223							<option value="">-</option>
224							<?php $_from = $this->_tpl_vars['months']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
225    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['month']):
226?>
227								<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['k'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
228" <?php if (( $this->_tpl_vars['sl_month'] == $this->_tpl_vars['k'] )): ?> selected="selected"<?php endif; ?>><?php echo smartyTranslate(array('s' => ($this->_tpl_vars['month'])), $this);?>
229&nbsp;</option>
230							<?php endforeach; endif; unset($_from); ?>
231						</select>
232						<select id="years" name="years">
233							<option value="">-</option>
234							<?php $_from = $this->_tpl_vars['years']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
235    foreach ($_from as $this->_tpl_vars['year']):
236?>
237								<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['year'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
238" <?php if (( $this->_tpl_vars['sl_year'] == $this->_tpl_vars['year'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['year'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
239&nbsp;&nbsp;</option>
240							<?php endforeach; endif; unset($_from); ?>
241						</select>
242					</p>
243					<?php if (isset ( $this->_tpl_vars['newsletter'] ) && $this->_tpl_vars['newsletter']): ?>
244						<p class="checkbox">
245							<input type="checkbox" name="newsletter" id="newsletter" value="1" <?php if (isset ( $_POST['newsletter'] ) && $_POST['newsletter'] == '1'): ?>checked="checked"<?php endif; ?>>
246							<label for="newsletter"><?php echo smartyTranslate(array('s' => 'Sign up for our newsletter'), $this);?>
247</label>
248						</p>
249						<p class="checkbox">
250							<input type="checkbox" name="optin" id="optin" value="1" <?php if (isset ( $_POST['optin'] ) && $_POST['optin'] == '1'): ?>checked="checked"<?php endif; ?>>
251							<label for="optin"><?php echo smartyTranslate(array('s' => 'Receive special offers from our partners'), $this);?>
252</label>
253						</p>
254					<?php endif; ?>
255					<h3><?php echo smartyTranslate(array('s' => 'Delivery address'), $this);?>
256</h3>
257					<?php $_from = $this->_tpl_vars['dlv_all_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
258    foreach ($_from as $this->_tpl_vars['field_name']):
259?>
260						<?php if ($this->_tpl_vars['field_name'] == 'company'): ?>
261						<p class="text">
262							<label for="company"><?php echo smartyTranslate(array('s' => 'Company'), $this);?>
263</label>
264							<input type="text" class="text" id="company" name="company" value="<?php if (isset ( $_POST['company'] )): ?><?php echo $_POST['company']; ?>
265<?php endif; ?>" />
266						</p>
267						<?php elseif ($this->_tpl_vars['field_name'] == 'vat_number'): ?>
268						<div id="vat_number" style="display:none;">
269							<p class="text">
270								<label for="vat_number"><?php echo smartyTranslate(array('s' => 'VAT number'), $this);?>
271</label>
272								<input type="text" class="text" name="vat_number" value="<?php if (isset ( $_POST['vat_number'] )): ?><?php echo $_POST['vat_number']; ?>
273<?php endif; ?>" />
274							</p>
275						</div>
276						<?php elseif ($this->_tpl_vars['field_name'] == 'address1'): ?>
277						<p class="required text">
278							<label for="address1"><?php echo smartyTranslate(array('s' => 'Address'), $this);?>
279</label>
280							<input type="text" class="text" name="address1" id="address1" value="<?php if (isset ( $_POST['address1'] )): ?><?php echo $_POST['address1']; ?>
281<?php endif; ?>">
282							<sup>*</sup>
283						</p>
284						<?php elseif ($this->_tpl_vars['field_name'] == 'postcode'): ?>
285						<p class="required postcode text">
286							<label for="postcode"><?php echo smartyTranslate(array('s' => 'Zip / Postal Code'), $this);?>
287</label>
288							<input type="text" class="text" name="postcode" id="postcode" value="<?php if (isset ( $_POST['postcode'] )): ?><?php echo $_POST['postcode']; ?>
289<?php endif; ?>" onblur="$('#postcode').val($('#postcode').val().toUpperCase());">
290							<sup>*</sup>
291						</p>
292						<?php elseif ($this->_tpl_vars['field_name'] == 'city'): ?>
293						<p class="required text">
294							<label for="city"><?php echo smartyTranslate(array('s' => 'City'), $this);?>
295</label>
296							<input type="text" class="text" name="city" id="city" value="<?php if (isset ( $_POST['city'] )): ?><?php echo $_POST['city']; ?>
297<?php endif; ?>">
298							<sup>*</sup>
299						</p>
300							<!--
301								if customer hasn't update his layout address, country has to be verified
302								but it's deprecated
303							-->
304						<?php elseif ($this->_tpl_vars['field_name'] == "Country:name" || $this->_tpl_vars['field_name'] == 'country'): ?>
305						<p class="required select">
306							<label for="id_country"><?php echo smartyTranslate(array('s' => 'Country'), $this);?>
307</label>
308							<select name="id_country" id="id_country">
309								<option value="">-</option>
310								<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
311    foreach ($_from as $this->_tpl_vars['v']):
312?>
313								<option value="<?php echo $this->_tpl_vars['v']['id_country']; ?>
314" <?php if (( $this->_tpl_vars['sl_country'] == $this->_tpl_vars['v']['id_country'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
315</option>
316								<?php endforeach; endif; unset($_from); ?>
317							</select>
318							<sup>*</sup>
319						</p>
320						<?php elseif ($this->_tpl_vars['field_name'] == "State:name" || $this->_tpl_vars['field_name'] == 'state'): ?>
321						<?php $this->assign('stateExist', true); ?>
322
323						<p class="required id_state select">
324							<label for="id_state"><?php echo smartyTranslate(array('s' => 'State'), $this);?>
325</label>
326							<select name="id_state" id="id_state">
327								<option value="">-</option>
328							</select>
329							<sup>*</sup>
330						</p>
331						<?php elseif ($this->_tpl_vars['field_name'] == 'phone'): ?>
332						<p class="text">
333							<label for="phone"><?php echo smartyTranslate(array('s' => 'Phone'), $this);?>
334</label>
335							<input type="text" class="text" name="phone" id="phone" value="<?php if (isset ( $_POST['phone'] )): ?><?php echo $_POST['phone']; ?>
336<?php endif; ?>"> <sup style="color:red;">*</sup>
337						</p>
338						<?php endif; ?>
339					<?php endforeach; endif; unset($_from); ?>
340					<?php if ($this->_tpl_vars['stateExist'] == false): ?>
341					<p class="required id_state select">
342						<label for="id_state"><?php echo smartyTranslate(array('s' => 'State'), $this);?>
343</label>
344						<select name="id_state" id="id_state">
345							<option value="">-</option>
346						</select>
347						<sup>*</sup>
348					</p>
349					<?php endif; ?>
350					<input type="hidden" name="alias" id="alias" value="<?php echo smartyTranslate(array('s' => 'My address'), $this);?>
351">
352					<input type="hidden" name="is_new_customer" id="is_new_customer" value="0">
353					<!-- END Account -->
354				</div>
355			</fieldset>
356			<fieldset class="account_creation dni">
357				<h3><?php echo smartyTranslate(array('s' => 'Tax identification'), $this);?>
358</h3>
359
360				<p class="required text">
361					<label for="dni"><?php echo smartyTranslate(array('s' => 'Identification number'), $this);?>
362</label>
363					<input type="text" class="text" name="dni" id="dni" value="<?php if (isset ( $_POST['dni'] )): ?><?php echo $_POST['dni']; ?>
364<?php endif; ?>" />
365					<span class="form_info"><?php echo smartyTranslate(array('s' => 'DNI / NIF / NIE'), $this);?>
366</span>
367					<sup>*</sup>
368				</p>
369			</fieldset>
370			<p class="cart_navigation required submit">
371				<span><sup>*</sup><?php echo smartyTranslate(array('s' => 'Required field'), $this);?>
372</span>
373				<input type="submit" class="button" name="submitGuestAccount" id="submitGuestAccount" style="float:right" value="<?php echo smartyTranslate(array('s' => 'Continue'), $this);?>
374">
375			</p>
376		</form>
377	<?php endif; ?>
378<?php else: ?>
379<form action="<?php echo $this->_tpl_vars['link']->getPageLink('authentication.php',true); ?>
380" method="post" id="account-creation_form" class="std">
381	<?php echo $this->_tpl_vars['HOOK_CREATE_ACCOUNT_TOP']; ?>
382
383	<fieldset class="account_creation">
384		<h3><?php echo smartyTranslate(array('s' => 'Your personal information'), $this);?>
385</h3>
386		<p class="radio required">
387			<span><?php echo smartyTranslate(array('s' => 'Title'), $this);?>
388</span>
389			<input type="radio" name="id_gender" id="id_gender1" value="1" <?php if (isset ( $_POST['id_gender'] ) && $_POST['id_gender'] == 1): ?>checked="checked"<?php endif; ?> />
390			<label for="id_gender1" class="top"><?php echo smartyTranslate(array('s' => 'Mr.'), $this);?>
391</label>
392			<input type="radio" name="id_gender" id="id_gender2" value="2" <?php if (isset ( $_POST['id_gender'] ) && $_POST['id_gender'] == 2): ?>checked="checked"<?php endif; ?> />
393			<label for="id_gender2" class="top"><?php echo smartyTranslate(array('s' => 'Ms.'), $this);?>
394</label>
395		</p>
396		<p class="required text">
397			<label for="customer_firstname"><?php echo smartyTranslate(array('s' => 'First name'), $this);?>
398</label>
399			<input onkeyup="$('#firstname').val(this.value);" type="text" class="text" id="customer_firstname" name="customer_firstname" value="<?php if (isset ( $_POST['customer_firstname'] )): ?><?php echo $_POST['customer_firstname']; ?>
400<?php endif; ?>" />
401			<sup>*</sup>
402		</p>
403		<p class="required text">
404			<label for="customer_lastname"><?php echo smartyTranslate(array('s' => 'Last name'), $this);?>
405</label>
406			<input onkeyup="$('#lastname').val(this.value);" type="text" class="text" id="customer_lastname" name="customer_lastname" value="<?php if (isset ( $_POST['customer_lastname'] )): ?><?php echo $_POST['customer_lastname']; ?>
407<?php endif; ?>" />
408			<sup>*</sup>
409		</p>
410		<p class="required text">
411			<label for="email"><?php echo smartyTranslate(array('s' => 'E-mail'), $this);?>
412</label>
413			<input type="text" class="text" id="email" name="email" value="<?php if (isset ( $_POST['email'] )): ?><?php echo $_POST['email']; ?>
414<?php endif; ?>" />
415			<sup>*</sup>
416		</p>
417		<p class="required password">
418			<label for="passwd"><?php echo smartyTranslate(array('s' => 'Password'), $this);?>
419</label>
420			<input type="password" class="text" name="passwd" id="passwd" />
421			<sup>*</sup>
422			<span class="form_info"><?php echo smartyTranslate(array('s' => '(5 characters min.)'), $this);?>
423</span>
424		</p>
425		<p class="select">
426			<span><?php echo smartyTranslate(array('s' => 'Date of Birth'), $this);?>
427</span>
428			<select id="days" name="days">
429				<option value="">-</option>
430				<?php $_from = $this->_tpl_vars['days']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
431    foreach ($_from as $this->_tpl_vars['day']):
432?>
433					<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
434" <?php if (( $this->_tpl_vars['sl_day'] == $this->_tpl_vars['day'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['day'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
435&nbsp;&nbsp;</option>
436				<?php endforeach; endif; unset($_from); ?>
437			</select>
438						<select id="months" name="months">
439				<option value="">-</option>
440				<?php $_from = $this->_tpl_vars['months']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
441    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['month']):
442?>
443					<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['k'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
444" <?php if (( $this->_tpl_vars['sl_month'] == $this->_tpl_vars['k'] )): ?> selected="selected"<?php endif; ?>><?php echo smartyTranslate(array('s' => ($this->_tpl_vars['month'])), $this);?>
445&nbsp;</option>
446				<?php endforeach; endif; unset($_from); ?>
447			</select>
448			<select id="years" name="years">
449				<option value="">-</option>
450				<?php $_from = $this->_tpl_vars['years']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
451    foreach ($_from as $this->_tpl_vars['year']):
452?>
453					<option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['year'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
454" <?php if (( $this->_tpl_vars['sl_year'] == $this->_tpl_vars['year'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['year'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
455&nbsp;&nbsp;</option>
456				<?php endforeach; endif; unset($_from); ?>
457			</select>
458		</p>
459		<?php if (isset ( $this->_tpl_vars['newsletter'] ) && $this->_tpl_vars['newsletter']): ?>
460		<p class="checkbox" >
461			<input type="checkbox" name="newsletter" id="newsletter" value="1" <?php if (isset ( $_POST['newsletter'] ) && $_POST['newsletter'] == 1): ?> checked="checked"<?php endif; ?> />
462			<label for="newsletter"><?php echo smartyTranslate(array('s' => 'Sign up for our newsletter'), $this);?>
463</label>
464		</p>
465		<p class="checkbox" >
466			<input type="checkbox"name="optin" id="optin" value="1" <?php if (isset ( $_POST['optin'] ) && $_POST['optin'] == 1): ?> checked="checked"<?php endif; ?> />
467			<label for="optin"><?php echo smartyTranslate(array('s' => 'Receive special offers from our partners'), $this);?>
468</label>
469		</p>
470		<?php endif; ?>
471	</fieldset>
472	<fieldset class="account_creation">
473		<h3><?php echo smartyTranslate(array('s' => 'Your address'), $this);?>
474</h3>
475		<?php $_from = $this->_tpl_vars['dlv_all_fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
476    foreach ($_from as $this->_tpl_vars['field_name']):
477?>
478			<?php if ($this->_tpl_vars['field_name'] == 'company'): ?>
479				<p class="text">
480					<label for="company"><?php echo smartyTranslate(array('s' => 'Company'), $this);?>
481</label>
482					<input type="text" class="text" id="company" name="company" value="<?php if (isset ( $_POST['company'] )): ?><?php echo $_POST['company']; ?>
483<?php endif; ?>" />
484				</p>
485			<?php elseif ($this->_tpl_vars['field_name'] == 'vat_number'): ?>
486				<div id="vat_number" style="display:none;">
487					<p class="text">
488						<label for="vat_number"><?php echo smartyTranslate(array('s' => 'VAT number'), $this);?>
489</label>
490						<input type="text" class="text" name="vat_number" value="<?php if (isset ( $_POST['vat_number'] )): ?><?php echo $_POST['vat_number']; ?>
491<?php endif; ?>" />
492					</p>
493				</div>
494			<?php elseif ($this->_tpl_vars['field_name'] == 'firstname'): ?>
495				<p class="required text">
496					<label for="firstname"><?php echo smartyTranslate(array('s' => 'First name'), $this);?>
497</label>
498					<input type="text" class="text" id="firstname" name="firstname" value="<?php if (isset ( $_POST['firstname'] )): ?><?php echo $_POST['firstname']; ?>
499<?php endif; ?>" />
500					<sup>*</sup>
501				</p>
502			<?php elseif ($this->_tpl_vars['field_name'] == 'lastname'): ?>
503				<p class="required text">
504					<label for="lastname"><?php echo smartyTranslate(array('s' => 'Last name'), $this);?>
505</label>
506					<input type="text" class="text" id="lastname" name="lastname" value="<?php if (isset ( $_POST['lastname'] )): ?><?php echo $_POST['lastname']; ?>
507<?php endif; ?>" />
508					<sup>*</sup>
509				</p>
510			<?php elseif ($this->_tpl_vars['field_name'] == 'address1'): ?>
511				<p class="required text">
512					<label for="address1"><?php echo smartyTranslate(array('s' => 'Address'), $this);?>
513</label>
514					<input type="text" class="text" name="address1" id="address1" value="<?php if (isset ( $_POST['address1'] )): ?><?php echo $_POST['address1']; ?>
515<?php endif; ?>" />
516					<sup>*</sup>
517					<span class="inline-infos"><?php echo smartyTranslate(array('s' => 'Street address, P.O. box, company name, c/o'), $this);?>
518</span>
519				</p>
520			<?php elseif ($this->_tpl_vars['field_name'] == 'address2'): ?>
521				<p class="text">
522					<label for="address2"><?php echo smartyTranslate(array('s' => 'Address (Line 2)'), $this);?>
523</label>
524					<input type="text" class="text" name="address2" id="address2" value="<?php if (isset ( $_POST['address2'] )): ?><?php echo $_POST['address2']; ?>
525<?php endif; ?>" />
526					<span class="inline-infos"><?php echo smartyTranslate(array('s' => 'Apartment, suite, unit, building, floor, etc.'), $this);?>
527</span>
528				</p>
529			<?php elseif ($this->_tpl_vars['field_name'] == 'postcode'): ?>
530				<p class="required postcode text">
531					<label for="postcode"><?php echo smartyTranslate(array('s' => 'Zip / Postal Code'), $this);?>
532</label>
533					<input type="text" class="text" name="postcode" id="postcode" value="<?php if (isset ( $_POST['postcode'] )): ?><?php echo $_POST['postcode']; ?>
534<?php endif; ?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
535					<sup>*</sup>
536				</p>
537			<?php elseif ($this->_tpl_vars['field_name'] == 'city'): ?>
538				<p class="required text">
539					<label for="city"><?php echo smartyTranslate(array('s' => 'City'), $this);?>
540</label>
541					<input type="text" class="text" name="city" id="city" value="<?php if (isset ( $_POST['city'] )): ?><?php echo $_POST['city']; ?>
542<?php endif; ?>" />
543					<sup>*</sup>
544				</p>
545				<!--
546					if customer hasn't update his layout address, country has to be verified
547					but it's deprecated
548				-->
549			<?php elseif ($this->_tpl_vars['field_name'] == "Country:name" || $this->_tpl_vars['field_name'] == 'country'): ?>
550				<p class="required select">
551					<label for="id_country"><?php echo smartyTranslate(array('s' => 'Country'), $this);?>
552</label>
553					<select name="id_country" id="id_country">
554						<option value="">-</option>
555						<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
556    foreach ($_from as $this->_tpl_vars['v']):
557?>
558						<option value="<?php echo $this->_tpl_vars['v']['id_country']; ?>
559" <?php if (( $this->_tpl_vars['sl_country'] == $this->_tpl_vars['v']['id_country'] )): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
560</option>
561						<?php endforeach; endif; unset($_from); ?>
562					</select>
563					<sup>*</sup>
564				</p>
565			<?php elseif ($this->_tpl_vars['field_name'] == "State:name" || $this->_tpl_vars['field_name'] == 'state'): ?>
566				<?php $this->assign('stateExist', true); ?>
567				<p class="required id_state select">
568					<label for="id_state"><?php echo smartyTranslate(array('s' => 'State'), $this);?>
569</label>
570					<select name="id_state" id="id_state">
571						<option value="">-</option>
572					</select>
573					<sup>*</sup>
574				</p>
575			<?php endif; ?>
576		<?php endforeach; endif; unset($_from); ?>
577		<?php if ($this->_tpl_vars['stateExist'] == false): ?>
578			<p class="required id_state select">
579				<label for="id_state"><?php echo smartyTranslate(array('s' => 'State'), $this);?>
580</label>
581				<select name="id_state" id="id_state">
582					<option value="">-</option>
583				</select>
584				<sup>*</sup>
585			</p>
586		<?php endif; ?>
587		<p class="textarea">
588			<label for="other"><?php echo smartyTranslate(array('s' => 'Additional information'), $this);?>
589</label>
590			<textarea name="other" id="other" cols="26" rows="3"><?php if (isset ( $_POST['other'] )): ?><?php echo $_POST['other']; ?>
591<?php endif; ?></textarea>
592		</p>
593		<p style="margin-left:50px;"><?php echo smartyTranslate(array('s' => 'You must register at least one phone number'), $this);?>
594 <sup style="color:red;">*</sup></p>
595		<p class="text">
596			<label for="phone"><?php echo smartyTranslate(array('s' => 'Home phone'), $this);?>
597</label>
598			<input type="text" class="text" name="phone" id="phone" value="<?php if (isset ( $_POST['phone'] )): ?><?php echo $_POST['phone']; ?>
599<?php endif; ?>" />
600		</p>
601		<p class="text">
602			<label for="phone_mobile"><?php echo smartyTranslate(array('s' => 'Mobile phone'), $this);?>
603</label>
604			<input type="text" class="text" name="phone_mobile" id="phone_mobile" value="<?php if (isset ( $_POST['phone_mobile'] )): ?><?php echo $_POST['phone_mobile']; ?>
605<?php endif; ?>" />
606		</p>
607		<p class="required text" id="address_alias">
608			<label for="alias"><?php echo smartyTranslate(array('s' => 'Assign an address title for future reference'), $this);?>
609 </label>
610			<input type="text" class="text" name="alias" id="alias" value="<?php if (isset ( $_POST['alias'] )): ?><?php echo $_POST['alias']; ?>
611<?php else: ?><?php echo smartyTranslate(array('s' => 'My address'), $this);?>
612<?php endif; ?>" />
613			<sup>*</sup>
614		</p>
615	</fieldset>
616	<fieldset class="account_creation dni">
617		<h3><?php echo smartyTranslate(array('s' => 'Tax identification'), $this);?>
618</h3>
619
620		<p class="required text">
621			<label for="dni"><?php echo smartyTranslate(array('s' => 'Identification number'), $this);?>
622</label>
623			<input type="text" class="text" name="dni" id="dni" value="<?php if (isset ( $_POST['dni'] )): ?><?php echo $_POST['dni']; ?>
624<?php endif; ?>" />
625			<span class="form_info"><?php echo smartyTranslate(array('s' => 'DNI / NIF / NIE'), $this);?>
626</span>
627			<sup>*</sup>
628		</p>
629	</fieldset>
630	<?php echo $this->_tpl_vars['HOOK_CREATE_ACCOUNT_FORM']; ?>
631
632	<p class="cart_navigation required submit">
633		<input type="hidden" name="email_create" value="1" />
634		<input type="hidden" name="is_new_customer" value="1" />
635		<?php if (isset ( $this->_tpl_vars['back'] )): ?><input type="hidden" class="hidden" name="back" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['back'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
636" /><?php endif; ?>
637		<input type="submit" name="submitAccount" id="submitAccount" value="<?php echo smartyTranslate(array('s' => 'Register'), $this);?>
638" class="exclusive" />
639		<span><sup>*</sup><?php echo smartyTranslate(array('s' => 'Required field'), $this);?>
640</span>
641	</p>
642
643</form>
644<?php endif; ?>