| 2 |
lars |
1 |
<script>
|
|
|
2 |
$(document).ready(function () {
|
|
|
3 |
|
|
|
4 |
$(".loginInfo").accordion({
|
|
|
5 |
collapsible: true,
|
|
|
6 |
heightStyle: "content"
|
|
|
7 |
});
|
|
|
8 |
|
|
|
9 |
{if $smarty.server.REQUEST_URI == "/login"}
|
|
|
10 |
$(".loginInfo").accordion("option", "active", 0);
|
|
|
11 |
{elseif $smarty.server.REQUEST_URI == "/forgot_pw"}
|
|
|
12 |
$(".loginInfo").accordion("option", "active", 1);
|
|
|
13 |
{elseif $smarty.server.REQUEST_URI == "/register"}
|
|
|
14 |
$(".loginInfo").accordion("option", "active", 2);
|
|
|
15 |
{elseif $smarty.server.REQUEST_URI == "/addresses"}
|
|
|
16 |
$(".loginInfo").accordion("option", "active", 1);
|
|
|
17 |
{/if}
|
|
|
18 |
|
|
|
19 |
});
|
|
|
20 |
|
|
|
21 |
</script>
|
|
|
22 |
<div class="loginInfo">
|
|
|
23 |
{if !$smarty.session.SHOP.Login}
|
|
|
24 |
<h2 class="loginAcc">{$langstrings.buy.login}</h2>
|
|
|
25 |
<div id="login">
|
|
|
26 |
{$langstrings.shop.login_account}<br/><br/>
|
|
|
27 |
<form action="/login" method="post">
|
|
|
28 |
<input type="hidden" name="_token" value="{csrf_token()}"/>
|
|
|
29 |
<input class="input input1" type="text" name="email" value="{$smarty.session.SHOP.buy.Persdata.email}"
|
|
|
30 |
placeholder="{$langstrings.login.username}"/>
|
|
|
31 |
<br/>
|
|
|
32 |
<input class="input input1" type="password" name="password"
|
|
|
33 |
placeholder="{$langstrings.login.password}"/>
|
|
|
34 |
<br/>
|
|
|
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="/send_pw" id="send_pw">
|
|
|
46 |
<input type="hidden" name="_token" value="{csrf_token()}"/>
|
|
|
47 |
<input class="input input1" type="text" name="email" value="{$smarty.session.SHOP.buy.Persdata.email}"
|
|
|
48 |
placeholder="{$langstrings.login.username}"/><br/>
|
|
|
49 |
<input type="hidden" name="mode" value="send_pw">
|
|
|
50 |
<input type="submit" id="send_pw_button" value="Passwort anfordern"/>
|
|
|
51 |
</form>
|
|
|
52 |
</div>
|
|
|
53 |
<h2 class="register">{$langstrings.login.register}</h2>
|
|
|
54 |
<div id="register">
|
|
|
55 |
{include file="register.tpl"}
|
|
|
56 |
</div>
|
|
|
57 |
{else}
|
|
|
58 |
<h2>{$langstrings.login.change_pw_head}</h2>
|
|
|
59 |
<div id="changePassword">
|
|
|
60 |
{include file="change_pw.tpl"}
|
|
|
61 |
</div>
|
|
|
62 |
{if $ini.modules.adresssystem != "alt"}
|
|
|
63 |
<h2 class="addressesHead">{$langstrings.login.addresses}</h2>
|
|
|
64 |
<div class="addresses">
|
|
|
65 |
{include file="list_addresses.tpl"}
|
|
|
66 |
</div>
|
|
|
67 |
{/if}
|
|
|
68 |
<h2>Logout</h2>
|
|
|
69 |
<div id="logout">
|
|
|
70 |
<form action="/logout" method="post">
|
|
|
71 |
<input type="hidden" name="_token" value="{csrf_token()}"/>
|
|
|
72 |
<input type="hidden" name="mode" value="logout"/><br/>
|
|
|
73 |
<input type="submit" id="logout_button" value="Logout"/>
|
|
|
74 |
</form>
|
|
|
75 |
</div>
|
|
|
76 |
{/if}
|
|
|
77 |
</div>
|