PageRenderTime 57ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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