garancia/themes/default/_mobile/authentication.tpl
2016-10-10 15:24:25 +02:00

121 lines
3.7 KiB
Smarty
Executable File

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{capture name=path}<a href="{$link->getPageLink('order.php', true)}">{l s='Mon panier'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Identification'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<script type="text/javascript">
// <![CDATA[
idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
countries = new Array();
countriesNeedIDNumber = new Array();
countriesNeedZipCode = new Array();
{if isset($countries)}
{foreach from=$countries item='country'}
{if isset($country.states) && $country.contains_states}
countries[{$country.id_country|intval}] = new Array();
{foreach from=$country.states item='state' name='states'}
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim});
{/foreach}
{/if}
{if $country.need_identification_number}
countriesNeedIDNumber.push({$country.id_country|intval});
{/if}
{if isset($country.need_zip_code)}
countriesNeedZipCode[{$country.id_country|intval}] = {$country.need_zip_code};
{/if}
{/foreach}
{/if}
$(function(){ldelim}
$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}{if isset($address)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', 'selected');
{rdelim});
//]]>
{literal}
$(document).ready(function() {
$('#company').blur(function(){
vat_number();
});
vat_number();
function vat_number()
{
if ($('#company').val() != '')
$('#vat_number').show();
else
$('#vat_number').hide();
}
});
{/literal}
</script>
{assign var='stateExist' value=false}
<script type="text/javascript">
// <![CDATA[
var errorPass1="{l s='Votre mot de passe ne doit pas être vide.' js=1}";
var errorPass2="{l s='Votre mot de passe est différent de la confirmation' js=1}";
{literal}
$(document).ready(function() {
$('#company').blur(function(){
vat_number();
});
vat_number();
function vat_number()
{
if ($('#company').val() != '')
$('#vat_number').show();
else
$('#vat_number').hide();
}
});
function checkCreationForm(){
return true;
}
function cleanTel(id){
var valTel=$('#'+id).val();
var newNum="";
for(i=0;i<valTel.length;i++){
if(valTel[i]<10 && valTel[i]!=' '){
newNum+=valTel[i];
}
}
$('#'+id).attr('value',newNum);
}
//]]>
{/literal}
</script>
<div class="borderGreen auto">
{if !isset($email_create)}<h1>[{l s='Log in'}]</h1>{else}<h1 style="border-bottom:1px solid black;margin-bottom:20px;padding-bottom:20px;">[{l s='Create an account'}]</h1>{/if}
{if !isset($email_create)}
{include file="./authentication-choice.tpl"}
{else}
{include file="./authentication-create-account.tpl"}
{/if}
{include file="./errors.tpl"}
<div class="clear"></div>
</div>