94 lines
3.9 KiB
Smarty
Executable File
94 lines
3.9 KiB
Smarty
Executable File
{if !$cookie->isLogged()}
|
|
<script type="text/javascript" src="{$js_dir}jquery-ui.min.js"></script>
|
|
<script type="text/javascript">{literal}
|
|
<!--
|
|
$(document).ready(function() {
|
|
var img_list = [{/literal}"{$img_dir}auth.jpg", "{$img_dir}auth2.jpg", "{$img_dir}auth3.jpg"{literal}];
|
|
|
|
var preload = new Array();
|
|
for(var i=0; i<img_list.length; i++) {
|
|
preload[i] = new Image();
|
|
preload[i].src = img_list[i];
|
|
}
|
|
|
|
$("#columns").css("background", "none");
|
|
|
|
for(var i=0; i<img_list.length; i++) {
|
|
$("<div id=\"bg_" + i + "\" class=\"background\" style=\"background : #333333 url('"+ img_list[i] +"') no-repeat left top; z-index: " + (-1 - i) + "; display: none;\" />").appendTo($("#columns"));
|
|
}
|
|
|
|
var current_bg = 0;
|
|
$("#columns > #bg_0").show();
|
|
|
|
function rotateBackground(index) {
|
|
if(index && index > img_list.length) {
|
|
index = false;
|
|
}
|
|
|
|
$("#columns > #bg_" + current_bg).fadeOut(600);
|
|
$("#columns > #bg_" + (index? index - 1: (current_bg == img_list.length - 1? 0: current_bg + 1))).fadeIn(600);
|
|
|
|
index? current_bg = (index - 1 < 0? img_list.length - 1: index - 1): (current_bg == img_list.length - 1? current_bg = 0: current_bg++);
|
|
}
|
|
|
|
var timer = setInterval(function() { rotateBackground(); }, 10000);
|
|
});
|
|
-->
|
|
{/literal}</script>
|
|
|
|
<div id="authentication_area">
|
|
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="login_form" class="std">
|
|
<fieldset>
|
|
<h3>{l s='Already registered ?' mod='blockauth'}</h3>
|
|
<p class="text">
|
|
<label for="email">{l s='E-mail address' mod='blockauth'}</label>
|
|
<span><input type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span>
|
|
</p>
|
|
<p class="text">
|
|
<label for="passwd">{l s='Password' mod='blockauth'}</label>
|
|
<span><input type="password" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="account_input" /></span>
|
|
</p>
|
|
<p class="submit">
|
|
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
|
|
{else}<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}" />{/if}
|
|
<span class="gradient">
|
|
<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in' mod='blockauth'}" />
|
|
</span>
|
|
<a class="lost-password" href="{$link->getPageLink('password.php')}">{l s='Forgot your password?' mod='blockauth'}</a>
|
|
</p>
|
|
</fieldset>
|
|
</form>
|
|
<form action="{$link->getPageLink('authentication.php', true)}" method="post" id="create-account_form" class="std">
|
|
<fieldset>
|
|
<h3>{l s='Create your account' mod='blockauth'}</h3>
|
|
<span class="ribbon"></span>
|
|
<p class="text">
|
|
{l s='Not yet a member? Sign in!' mod='blockauth'}
|
|
</p>
|
|
<ul>
|
|
<li><span>{l s='Offer 1' mod='blockauth'}</span></li>
|
|
<li><span>{l s='Offer 2' mod='blockauth'}</span></li>
|
|
<li><span>{l s='Offer 3' mod='blockauth'}</span></li>
|
|
<li><span>{l s='Offer 4' mod='blockauth'}</span></li>
|
|
</ul>
|
|
<p class="submit">
|
|
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />
|
|
{else}<input type="hidden" class="hidden" name="back" value="{$smarty.const.__PS_BASE_URI__}validation.php" />{/if}
|
|
<span class="gradient">
|
|
<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Create your account' mod='blockauth'}" />
|
|
</span>
|
|
<input type="hidden" class="hidden" name="email_create" value="1" />
|
|
<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create your account' mod='blockauth'}" />
|
|
</p>
|
|
</fieldset>
|
|
</form>
|
|
<div id="blockauth-bottom">
|
|
<p>
|
|
{l s='All rights reserved' mod='blockauth'}
|
|
</p>
|
|
<p>{l s='First notice line' mod='blockauth'}</p>
|
|
<p>{l s='Second notice line' mod='blockauth'}</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|