| 42 |
lars |
1 |
{nocache}
|
|
|
2 |
<script>
|
|
|
3 |
|
|
|
4 |
$(document).ready(function(){
|
|
|
5 |
|
|
|
6 |
$( ".loginInfo" ).accordion({
|
|
|
7 |
collapsible: true,
|
|
|
8 |
heightStyle: "content"
|
|
|
9 |
});
|
|
|
10 |
|
|
|
11 |
{if $smarty.get.mode == "login"}
|
|
|
12 |
$( ".loginInfo" ).accordion( "option", "active", 0 );
|
|
|
13 |
{else if $smarty.get.mode == "forgot_pw"}
|
|
|
14 |
$( ".loginInfo" ).accordion( "option", "active", 1 );
|
|
|
15 |
{else if $smarty.get.mode == "register" || ( isset($mode) && $mode == "register")}
|
|
|
16 |
$( ".loginInfo" ).accordion( "option", "active", 2 );
|
|
|
17 |
{else if $smarty.get.mode == "addresses"}
|
|
|
18 |
$( ".loginInfo" ).accordion( "option", "active", 1 );
|
|
|
19 |
{/if}
|
|
|
20 |
|
|
|
21 |
});
|
|
|
22 |
|
|
|
23 |
</script>
|
|
|
24 |
<div class="loginInfo">
|
|
|
25 |
{if !$smarty.session.SHOP.Login}
|
|
|
26 |
<h2 class="loginAcc">{$langstrings.buy.login}</h2>
|
|
|
27 |
<div id="login">
|
|
|
28 |
{$langstrings.shop.login_account}<br /><br />
|
| 532 |
lars |
29 |
<form action="/login/login/" method="post">
|
| 536 |
lars |
30 |
{$errors}
|
| 42 |
lars |
31 |
<input onfocus="this.value='';" class="input input1" type="text" name="email" value="{$smarty.session.SHOP.buy.Persdata.email|default:$langstrings.login.username}" />
|
|
|
32 |
<br />
|
|
|
33 |
<input onfocus="this.value='';" class="input input1" type="password" name="password" value="{$langstrings.login.password}"/>
|
| 532 |
lars |
34 |
<br />
|
| 42 |
lars |
35 |
<input type="submit" id="login_button" value="Anmelden" />
|
|
|
36 |
{if $smarty.get.buy=="true"||$smarty.get.basket=="true"}
|
|
|
37 |
<input type="hidden" name="return" value="true" />
|
|
|
38 |
{/if}
|
|
|
39 |
<input type="hidden" name="keepLoginBack" value="1" />
|
|
|
40 |
</form>
|
|
|
41 |
</div>
|
|
|
42 |
<h2 class="forgotPW">{$langstrings.login.lost_password}</h2>
|
|
|
43 |
<div id="forgotPassword">
|
|
|
44 |
{$langstrings.login.forgot_pw}<br /><br />
|
|
|
45 |
<form method="post" action="/" id="send_pw">
|
|
|
46 |
<input onfocus="this.value='';" class="input input1" type="text" name="email" value="{$smarty.session.SHOP.buy.Persdata.email|default:$langstrings.login.username}" /><br />
|
|
|
47 |
<input type="hidden" name="mode" value="send_pw">
|
|
|
48 |
<input type="submit" id="send_pw_button" value="Passwort anfordern" />
|
|
|
49 |
</form>
|
|
|
50 |
</div>
|
|
|
51 |
<h2 class="register">{$langstrings.login.register}</h2>
|
|
|
52 |
<div id="register">
|
|
|
53 |
{include file="register.tpl"}
|
|
|
54 |
</div>
|
|
|
55 |
{else}
|
|
|
56 |
<h2>{$langstrings.login.change_pw}</h2>
|
|
|
57 |
<div id="changePassword">
|
|
|
58 |
{include file="change_pw.tpl"}
|
|
|
59 |
</div>
|
|
|
60 |
{if $ini.modules.adresssystem != "alt"}
|
|
|
61 |
<h2 class="addressesHead">{$langstrings.login.addresses}</h2>
|
|
|
62 |
<div class="addresses">
|
|
|
63 |
{include file="list_addresses.tpl"}
|
|
|
64 |
</div>
|
|
|
65 |
{/if}
|
|
|
66 |
<h2>Logout</h2>
|
|
|
67 |
<div id="logout">
|
|
|
68 |
<form action="/" method="post">
|
|
|
69 |
<input type="hidden" name="mode" value="logout" /><br />
|
|
|
70 |
<input type="submit" id="logout_button" value="Logout"/>
|
|
|
71 |
</form>
|
|
|
72 |
</div>
|
|
|
73 |
{/if}
|
|
|
74 |
</div>
|
|
|
75 |
{/nocache}
|