PageRenderTime 495ms CodeModel.GetById 111ms app.highlight 207ms RepoModel.GetById 165ms app.codeStats 1ms

/tools/smarty/compile/7b76b723bac9ccf9838220ce9fab570ca714d334.file.authentication.tpl.php

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