Guest User

Untitled

a guest
Apr 7th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.18 KB | None | 0 0
  1. <script type="text/javascript" src="includes/jscript/statesdropdown.js"></script>
  2. <script type="text/javascript" src="includes/jscript/pwstrength.js"></script>
  3.  
  4. {include file="$template/pageheader.tpl" title=$LANG.clientregistertitle desc=$LANG.registerintro}
  5.  
  6. {if $noregistration}
  7.  
  8.     <div class="alert alert-error">
  9.         <p>{$LANG.registerdisablednotice}</p>
  10.     </div>
  11.  
  12. {else}
  13.  
  14. {if $errormessage}
  15. <div class="alert alert-error">
  16.     <p class="bold">{$LANG.clientareaerrors}</p>
  17.     <ul>
  18.         {$errormessage}
  19.     </ul>
  20. </div>
  21. {/if}
  22.  
  23. <form class="form-horizontal" method="post" action="{$smarty.server.PHP_SELF}">
  24. <input type="hidden" name="register" value="true" />
  25.  
  26. <fieldset class="control-group">
  27.  
  28. <div class="control-group">
  29. <div class="col2half">
  30.  
  31.     {foreach key=num item=customfield from=$customfields}  
  32.     {if $customfield.name=="CPF ou CNPJ"}    
  33.     <div class="control-group">
  34.        <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
  35.         <div class="controls">
  36.             <input type="text" id="customfield[{$customfield.id}]" name="customfield[{$customfield.id}]" size="20">
  37.         </div>
  38.      </div>
  39.      {/if}
  40.     {/foreach}
  41.  
  42.     <div class="control-group">
  43.         <label class="control-label" for="firstname">{$LANG.clientareafirstname}</label>
  44.         <div class="controls">
  45.             <input type="text" name="firstname" id="firstname" value="{$clientfirstname}"{if in_array('firstname',$uneditablefields)} disabled="" class="disabled"{/if} />
  46.         </div>
  47.     </div>
  48.  
  49.     <div class="control-group">
  50.         <label class="control-label" for="lastname">{$LANG.clientarealastname}</label>
  51.         <div class="controls">
  52.             <input type="text" name="lastname" id="lastname" value="{$clientlastname}"{if in_array('lastname',$uneditablefields)} disabled="" class="disabled"{/if} />
  53.         </div>
  54.     </div>
  55.  
  56.     <div class="control-group">
  57.         <label class="control-label" for="companyname">{$LANG.clientareacompanyname}</label>
  58.         <div class="controls">
  59.             <input type="text" name="companyname" id="companyname" value="{$clientcompanyname}"{if in_array('companyname',$uneditablefields)} disabled="" class="disabled"{/if} />
  60.         </div>
  61.     </div>
  62.  
  63.     <div class="control-group">
  64.         <label class="control-label" for="email">{$LANG.clientareaemail}</label>
  65.         <div class="controls">
  66.             <input type="text" name="email" id="email" value="{$clientemail}"{if in_array('email',$uneditablefields)} disabled="" class="disabled"{/if} />
  67.         </div>
  68.     </div>
  69.  
  70.     <div class="control-group">
  71.         <label class="control-label" for="password">{$LANG.clientareapassword}</label>
  72.         <div class="controls">
  73.             <input type="password" name="password" id="password" value="{$clientpassword}" />
  74.         </div>
  75.     </div>
  76.  
  77.     <div class="control-group">
  78.         <label class="control-label" for="password2">{$LANG.clientareaconfirmpassword}</label>
  79.         <div class="controls">
  80.             <input type="password" name="password2" id="password2" value="{$clientpassword2}" />
  81.         </div>
  82.     </div>
  83.  
  84.     <div class="control-group">
  85.         <label class="control-label" for="passstrength">{$LANG.pwstrength}</label>
  86.         <div class="controls">
  87.             {include file="$template/pwstrength.tpl"}
  88.         </div>
  89.     </div>
  90.  
  91. </div>
  92. <div class="col2half">
  93.  
  94.     <div class="control-group">
  95.         <label class="control-label" for="address1">{$LANG.clientareaaddress1}</label>
  96.         <div class="controls">
  97.             <input type="text" name="address1" id="address1" value="{$clientaddress1}"{if in_array('address1',$uneditablefields)} disabled="" class="disabled"{/if} />
  98.         </div>
  99.     </div>
  100.  
  101.     <div class="control-group">
  102.         <label class="control-label" for="address2">{$LANG.clientareaaddress2}</label>
  103.         <div class="controls">
  104.             <input type="text" name="address2" id="address2" value="{$clientaddress2}"{if in_array('address2',$uneditablefields)} disabled="" class="disabled"{/if} />
  105.         </div>
  106.     </div>
  107.  
  108.     <div class="control-group">
  109.         <label class="control-label" for="city">{$LANG.clientareacity}</label>
  110.         <div class="controls">
  111.             <input type="text" name="city" id="city" value="{$clientcity}"{if in_array('city',$uneditablefields)} disabled="" class="disabled"{/if} />
  112.         </div>
  113.     </div>
  114.  
  115.     <div class="control-group">
  116.         <label class="control-label" for="state">{$LANG.clientareastate}</label>
  117.         <div class="controls">
  118.             <input type="text" name="state" id="state" value="{$clientstate}"{if in_array('state',$uneditablefields)} disabled="" class="disabled"{/if} />
  119.         </div>
  120.     </div>
  121.  
  122.     <div class="control-group">
  123.         <label class="control-label" for="postcode">{$LANG.clientareapostcode}</label>
  124.         <div class="controls">
  125.             <input type="text" name="postcode" id="postcode" value="{$clientpostcode}"{if in_array('postcode',$uneditablefields)} disabled="" class="disabled"{/if} />
  126.         </div>
  127.     </div>
  128.  
  129.     <div class="control-group">
  130.         <label class="control-label" for="country">{$LANG.clientareacountry}</label>
  131.         <div class="controls">
  132.             {$clientcountriesdropdown}
  133.         </div>
  134.     </div>
  135.  
  136.     <div class="control-group">
  137.         <label class="control-label" for="phonenumber">{$LANG.clientareaphonenumber}</label>
  138.         <div class="controls">
  139.             <input type="text" name="phonenumber" id="phonenumber" value="{$clientphonenumber}"{if in_array('phonenumber',$uneditablefields)} disabled="" class="disabled"{/if} />
  140.         </div>
  141.     </div>
  142.    
  143.     {foreach key=num item=customfield from=$customfields}
  144.       {if $customfield.name=="Telefone Celular"}    
  145.  
  146.     <div class="control-group">
  147.        <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
  148.         <div class="controls">
  149.             <input type="text" id="customfield[{$customfield.id}]" name="customfield[{$customfield.id}]" size="20"> DDD + Tel
  150.         </div>
  151.      </div>
  152.      {/if}
  153.  
  154.     {/foreach}
  155.  
  156. </div>
  157. </div>
  158.  
  159. </fieldset>
  160.  
  161. <fieldset class="onecol">
  162.  
  163. {if $currencies}
  164.     <div class="control-group">
  165.         <label class="control-label" for="currency">{$LANG.choosecurrency}</label>
  166.         <div class="controls" id="currency">
  167.             <select name="currency">
  168.             {foreach from=$currencies item=curr}
  169.             <option value="{$curr.id}"{if !$smarty.post.currency && $curr.default || $smarty.post.currency eq $curr.id } selected{/if}>{$curr.code}</option>
  170.             {/foreach}
  171.             </select>
  172.         </div>
  173.     </div>
  174. {/if}
  175.  
  176. {foreach key=num item=customfield from=$customfields}
  177. {if $customfield.name=="Telefone Celular" or $customfield.name=="CPF ou CNPJ"}    
  178.     {else}
  179.     <div class="control-group">
  180.         <label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
  181.         <div class="controls">
  182.             {$customfield.input} {$customfield.description}
  183.         </div>
  184.     </div>
  185. {/if}
  186. {/foreach}
  187.  
  188. {if $securityquestions}
  189.     <div class="control-group">
  190.         <label class="control-label" for="securityqans">{$LANG.clientareasecurityquestion}</label>
  191.         <div class="controls">
  192.             <select name="securityqid" id="securityqid">
  193.             {foreach key=num item=question from=$securityquestions}
  194.                 <option value={$question.id}>{$question.question}</option>
  195.             {/foreach}
  196.             </select>
  197.         </div>
  198.     </div>
  199.     <div class="control-group">
  200.         <label class="control-label" for="securityqans">{$LANG.clientareasecurityanswer}</label>
  201.         <div class="controls">
  202.             <input type="password" name="securityqans" id="securityqans" />
  203.         </div>
  204.     </div>
  205. {/if}
  206.  
  207. </fieldset>
  208.  
  209. {if $capatacha}
  210. <h3>{$LANG.captchatitle}</h3>
  211. <p>{$LANG.captchaverify}</p>
  212. {if $capatacha eq "recaptcha"}
  213. <div align="center">{$recapatchahtml}</div>
  214. {else}
  215. <p align="center"><img src="includes/verifyimage.php" align="middle" /> <input type="text" name="code" size="10" maxlength="5" class="input-small" /></p>
  216. {/if}
  217. {/if}
  218.  
  219. <br />
  220.  
  221. {if $accepttos}
  222. <div class="control-group">
  223.     <label id="tosagree"></label>
  224.     <div class="controls">
  225.         <label class="checkbox">
  226.             <input type="checkbox" name="accepttos" id="accepttos" value="on" >
  227.             {$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a>
  228.         </label>
  229.     </div>
  230. </div>
  231. {/if}
  232.  
  233. <p align="center"><input class="btn btn-large btn-primary" type="submit" value="{$LANG.clientregistertitle}" /></p>
  234.  
  235. </form>
  236.  
  237. {/if}
  238.  
  239. <br />
  240. <br />
Advertisement
Add Comment
Please, Sign In to add comment