PageRenderTime 50ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/templates_c/ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php

https://gitlab.com/zohaibsaleem/shipcliq
PHP | 260 lines | 250 code | 9 blank | 1 comment | 25 complexity | 7a86cee9b8f41a9d173bf31826234195 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.0.7, created on 2015-11-02 15:38:37
  2. compiled from "/home/www/cargosharing1/templates/content/view-registration.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:202119112256373625535384-13592967%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'ee374469f3039f2afc01916b1c6255a7d0864358' =>
  8. array (
  9. 0 => '/home/www/cargosharing1/templates/content/view-registration.tpl',
  10. 1 => 1436779279,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '202119112256373625535384-13592967',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if ($_smarty_tpl->getVariable('var_msg')->value!=''){?>
  21. <script>
  22. showNotification({type : 'error', message: '<?php echo $_smarty_tpl->getVariable('var_msg')->value;?>
  23. '});
  24. </script>
  25. <?php }?>
  26. <div class="body-inner-part">
  27. <div class="bradcram"><span><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  28. "><?php echo @LBL_HOME;?>
  29. </a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php echo @LBL_REGISTRATION;?>
  30. </span></div>
  31. <div class="main-inner-page">
  32. <h2><?php echo @LBL_REGISTRATION;?>
  33. </h2>
  34. <form class="drop form_new" name="frmregister" id="frmregister" action="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  35. index.php?file=c-registration_a" method="post">
  36. <input type="Hidden" name="mode" value="register">
  37. <div class="right-inner-part">
  38. <div class="registration">
  39. <table width="100%" cellspacing="0" cellpadding="7" border="0">
  40. <tr>
  41. <td align="center"><button class="btn btn-primary" onclick="fbconnect();return false;">
  42. <a style="color:#fff;" href="javascript:void(0);" onclick="fbconnect();"><img src="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_images'];?>
  43. fb-but-icon.png" alt="" /><?php echo @LBL_CONNECT_FACEBOOK;?>
  44. </a>
  45. </button></td>
  46. </tr>
  47. <tr>
  48. <td class="registration-or" align="center"><?php echo @LBL_OR;?>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td style="padding:0px;">&nbsp;</td>
  53. </tr>
  54. </table>
  55. <div class="reg-input1">
  56. <label><em><?php echo @LBL_NICK_NAME;?>
  57. : <strong>*</strong></em>
  58. <input type="text" id="vNickName" name="vNickName" class="validate[required] form-input-re" value="<?php echo $_smarty_tpl->getVariable('db_customer')->value[0]['vNickName'];?>
  59. ">
  60. </label>
  61. <label><em><?php echo @LBL_FIRST_NAME;?>
  62. : <strong>*</strong></em>
  63. <input type="text" id="vFirstName" name="vFirstName" class="validate[required] form-input-re" value="<?php echo $_smarty_tpl->getVariable('db_customer')->value[0]['vFirstName'];?>
  64. ">
  65. </label>
  66. <label><em><?php echo @LBL_LAST_NAME;?>
  67. : <strong>*</strong></em>
  68. <input type="text" id="vLastName" name="vLastName" class="validate[required] form-input-re" value="<?php echo $_smarty_tpl->getVariable('db_customer')->value[0]['vLastName'];?>
  69. ">
  70. </label>
  71. <div style="clear:both;"></div>
  72. </div>
  73. <div class="reg-input1">
  74. <label><em><?php echo @LBL_EMAIL;?>
  75. : <strong>*</strong></em>
  76. <input type="text" name="vEmail" id="vEmail" class="validate[required,custom[email]] form-input-re" value="<?php echo $_smarty_tpl->getVariable('db_customer')->value[0]['vEmail'];?>
  77. "></label>
  78. <label><em><?php echo @LBL_PASSWORD;?>
  79. : <strong>*</strong></em>
  80. <input type="password" title="Password" name="vPassword" id="vPassword" class="validate[required,minSize[6]] form-input-re"></label>
  81. <label><em><?php echo @LBL_RE_ENTER;?>
  82. <?php echo @LBL_PASSWORD;?>
  83. : <strong>*</strong></em>
  84. <input type="password" title="Re-Enter Password" name="vRePassword" id="vRePassword" class="validate[required,equals[vPassword]] form-input-re">
  85. </label>
  86. </span>
  87. <label><em> <?php echo @LBL_MOBILE;?>
  88. <?php echo @LBL_PHONE;?>
  89. *</em>
  90. <select name="vCountry" id="vCountry" class="validate[required] profile-select1" onChange="get_sate(this.value);">
  91. <option value=""><?php echo @LBL_SELECT_COUNTRY;?>
  92. </option>
  93. <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
  94. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
  95. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('db_country')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  96. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
  97. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
  98. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
  99. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
  100. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
  101. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
  102. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
  103. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
  104. } else
  105. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
  106. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):
  107. for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
  108. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
  109. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
  110. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
  111. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  112. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  113. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
  114. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
  115. ?>
  116. <option value="<?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode'];?>
  117. " <?php if ($_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountryCode']==$_smarty_tpl->getVariable('vCountry')->value){?> selected <?php }?>><?php echo $_smarty_tpl->getVariable('db_country')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['vCountry'];?>
  118. </option>
  119. <?php endfor; endif; ?>
  120. </select>
  121. &nbsp;&nbsp;
  122. <input name="Data[vPhone]" id="vPhone" type="text" class="validate[required,custom[phone]] profile-input1" value="<?php echo $_smarty_tpl->getVariable('db_member')->value[0]['vPhone'];?>
  123. " />
  124. <!--<p>
  125. <input name="Data[eShowPhoneOnline]" id="eShowPhoneOnline" type="checkbox" <?php if ($_smarty_tpl->getVariable('db_member')->value[0]['eShowPhoneOnline']=='No'){?>checked="true"<?php }?> />
  126. &nbsp;&nbsp;<?php echo @LBL_NEVER_SHOW_PHONE;?>
  127. </p>-->
  128. </label>
  129. <label><em> <?php echo @LBL_STATE;?>
  130. </em>
  131. <div id="state">
  132. <select name="vState" id="vState" class="validate[required] profile-select form-re-selec">
  133. <option value=""><?php echo @LBL_SELECT;?>
  134. <?php echo @LBL_STATE;?>
  135. </option>
  136. </select>
  137. </div>
  138. </label>
  139. <label><em><?php echo @LBL_PREFERRED_LANG;?>
  140. : <strong></strong></em>
  141. <select name="vLanguageCode" id="vLanguageCode" class="form-input-select form-re-selec">
  142. <option value="EN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EN'){?> selected <?php }?>><?php echo @LBL_ENGLISH;?>
  143. </option>
  144. <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?>
  145. </option>
  146. <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?>
  147. </option>
  148. <option value="FN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FN'){?> selected <?php }?>><?php echo @LBL_FRENCH;?>
  149. </option>
  150. <option value="LV" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='LV'){?> selected <?php }?>><?php echo @LBL_LATVIN;?>
  151. </option>
  152. <option value="EE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='EE'){?> selected <?php }?>><?php echo @LBL_ESTONIAN;?>
  153. </option>
  154. <option value="LT" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='LT'){?> selected <?php }?>><?php echo @LBL_LITHUNIAN;?>
  155. </option>
  156. <option value="DE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DE'){?> selected <?php }?>><?php echo @LBL_GERMAN;?>
  157. </option>
  158. <option value="NO" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='NO'){?> selected <?php }?>><?php echo @LBL_NORWAY;?>
  159. </option>
  160. <option value="PO" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='PO'){?> selected <?php }?>><?php echo @LBL_POLISH;?>
  161. </option>
  162. <option value="RS" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='RS'){?> selected <?php }?>><?php echo @LBL_RUSSIAN;?>
  163. </option>
  164. <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?>
  165. </option>
  166. <option value="SW" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='SW'){?> selected <?php }?>><?php echo @LBL_SWEDISH;?>
  167. </option>
  168. </select>
  169. </label>
  170. <label><em><?php echo @LBL_PAYMENT_EMAIL;?>
  171. : </em>
  172. <input name="vPaymentEmail" id="vPaymentEmail" type="text" class="validate[custom[email]] form-input-re" value="<?php echo $_smarty_tpl->getVariable('db_customer')->value[0]['vPaymentEmail'];?>
  173. " />&nbsp;&nbsp;&nbsp;&nbsp;<a class="create-paypal" href="https://www.paypal.com/" target="_blank"><?php echo @LBL_CREATE_PAYPAL_ACCOUNT;?>
  174. </a>
  175. </label>
  176. <div style="clear:both;"></div>
  177. </div>
  178. <div class="reg-input1" style="border:none;">
  179. <label><em><?php echo @LBL_ENTER_CODE;?>
  180. : <strong>*</strong></em>
  181. <input type="text" title="Captcha Code" name="capthca" id="capthca" class="validate[required] form-input-re1">
  182. &nbsp;<img src="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  183. plugins/captcha/CaptchaSecurityImages.php" align="top" height="31"/>
  184. </label>
  185. </div>
  186. <div class="reg-input1" style="border:none;">
  187. <label><em class="reg-last1">&nbsp;</em>
  188. <div class="registration-button"><a onclick="javascript:checkregister();" href="javascript:void(0);"><?php echo @LBL_SUBMIT;?>
  189. </a> <a onclick="document.frmregister.reset();return false;" href="javascript:void(0);"><?php echo @LBL_RESET;?>
  190. </a></div>
  191. </div></label>
  192. <div style="clear:both;"></div>
  193. </div>
  194. </div>
  195. </form>
  196. <?php $_template = new Smarty_Internal_Template("left.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  197. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  198. </div><div style="clear:both;"></div>
  199. </div>
  200. <script>
  201. function checkregister(){
  202. jQuery("#frmregister").validationEngine('init',{scroll: false});
  203. jQuery("#frmregister").validationEngine('attach',{scroll: false});
  204. resp = jQuery("#frmregister").validationEngine('validate');
  205. if(resp == true){
  206. document.frmregister.submit();
  207. }else{
  208. return false;
  209. }
  210. }
  211. function fbconnect()
  212. {
  213. javscript:window.location='<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  214. fbconnect.php';
  215. }
  216. var site_url = '<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?>
  217. ';
  218. function get_sate(country){
  219. $("#state").html('Wait...');
  220. //alert("country="+country+"&vStaten="+'<?php echo $_smarty_tpl->getVariable('vState')->value;?>
  221. ');
  222. var request = $.ajax({
  223. type: "POST",
  224. url: site_url+'index.php?file=m-get_state',
  225. data: "country="+country+"&vStaten="+'<?php echo $_smarty_tpl->getVariable('vState')->value;?>
  226. ',
  227. success: function(data) {
  228. //alert(data);
  229. $("#state").html(data);
  230. // $('#vState').val('<?php echo $_smarty_tpl->getVariable('db_member')->value[0]['vState'];?>
  231. ');
  232. }
  233. });
  234. request.fail(function(jqXHR, textStatus) {
  235. alert( "Request failed: " + textStatus );
  236. });
  237. }
  238. </script>
  239. <?php if ($_smarty_tpl->getVariable('vCountry')->value!=''){?>
  240. <script>
  241. get_sate('<?php echo $_smarty_tpl->getVariable('vCountry')->value;?>
  242. ');
  243. </script>
  244. <?php }?>