70 lines
4.1 KiB
Smarty
70 lines
4.1 KiB
Smarty
{if !$cookie->isLogged() && $lp}
|
|
<div id="landingpage-connect">
|
|
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="account-creation_form" class="std">
|
|
<fieldset>
|
|
<h3>{l s='Registered' mod='landingpages'}</h3>
|
|
<p class="required text">
|
|
<label for="customer_firstname">{l s='First name' mod='landingpages'}</label>
|
|
<input onkeyup="$('#firstname').val(this.value);" type="text" class="text" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.request.customer_firstname)}{$smarty.request.customer_firstname}{/if}" />
|
|
<sup>*</sup>
|
|
</p>
|
|
<p class="required text">
|
|
<label for="customer_lastname">{l s='Last name' mod='landingpages'}</label>
|
|
<input onkeyup="$('#lastname').val(this.value);" type="text" class="text" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.request.customer_lastname)}{$smarty.request.customer_lastname}{/if}" />
|
|
<sup>*</sup>
|
|
</p>
|
|
<p class="required text">
|
|
<label for="email">{l s='E-mail' mod='landingpages'}</label>
|
|
<input type="text" class="text" id="email" name="email" value="{if isset($smarty.request.email)}{$smarty.request.email}{/if}" />
|
|
<sup>*</sup>
|
|
</p>
|
|
<p class="required password">
|
|
<label for="passwd">{l s='Password' mod='landingpages'}</label>
|
|
<input type="password" class="text" name="passwd" id="passwd" />
|
|
<sup>*</sup>
|
|
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
|
|
</p>
|
|
|
|
<p class="referralprogram">
|
|
<label for="referralprogram_lp">{l s='E-mail address of your sponsor' mod='landingpages'}</label>
|
|
<input type="text" size="52" maxlength="128" class="text" id="referralprogram_lp" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
|
|
</p>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
var mail = $("#referralprogram_lp").val();
|
|
var data = mail.split('@');
|
|
if(data[1] == 'bebeboutik.com'){
|
|
$("#referralprogram_lp").parent().hide();
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<div class="hidden" style="display: none !important;">
|
|
{if isset($tracking_tags) && !empty($tracking_tags)}
|
|
{foreach from=$tracking_tags item=tracking_tag key=key}
|
|
<input type="hidden" name="trackingtags[{$key}]" value="{$tracking_tag}" />
|
|
{/foreach}
|
|
{/if}
|
|
</div>
|
|
|
|
<fieldset>
|
|
{if isset($newsletter) && $newsletter}
|
|
<p class="checkbox" >
|
|
<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} />
|
|
<label for="newsletter">{l s='Sign up for our newsletter' mod='landingpages'}</label>
|
|
</p>
|
|
{/if}
|
|
</fieldset>
|
|
<p class="cart_navigation required submit">
|
|
<input type="hidden" name="email_create" value="1" />
|
|
<input type="hidden" name="is_new_customer" value="1" />
|
|
<input type="hidden" name="lp" value="{$lp}" />
|
|
<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register' mod='landingpages'}" class="exclusive" onclick="if($('#newsletter:checked').length == 0) { alert('{l s='Please accept our terms of use to continue' js=1}'); return false; }" />
|
|
<span><sup>*</sup>{l s='Required field' mod='landingpages'}</span>
|
|
</p>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div id="landingpage_overlay"></div>
|
|
{/if} |