Subversion-Projekte lars-tiefland.shop_ns

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

                    
                    
                    
<div class="box_1">
    <div class="box_top"></div>
    <div class="box_middle">
    <h1>Login</h1>
        <div>
        <br>
        <form action="{$SCRIPT_NAME}" method="post">
            <p>
            {if !$smarty.session.SHOP.Login}
                <input style="margin-left:8px;width:120px;" onfocus="this.value='';" type="text" name="email" value="{$smarty.post.email|default:$langstrings.login.username}"><br>
                {if $smarty.get.mode=="forgot_pw"}
                    <input type="hidden" name="mode" value="send_pw">
                    <input class="log_button" align="right" type="image" src="/images/webelemente/order_password.gif">
                {else}
                    <input style="margin-top:5px;margin-left:8px;width:120px;" onfocus="this.value='';" type="password" name="password" value="{$langstrings.login.password}"> <input class="log_button" type="image" src="/images/webelemente/button_ok.jpg">
                    <input type="hidden" name="mode" value="login">
                    
                {/if}
               
               
                {else}
                    {$langstrings.login.welcome},<br> <strong>{$smarty.session.SHOP.buy.Persdata.Anrede} {$smarty.session.SHOP.buy.Persdata.Nachname}!</strong>
                {if ( !$smarty.get.buy && !$smarty.post.buy )}
                    <br> 
                    <input type="hidden" name="mode" value="logout">
                    <input style="margin-bottom:30px;margin-top:8px;" align="right" type="image" src="/images/webelemente/logout_button.gif"><br>
                {/if}
            {/if}
            </p>
        </form>
    
    {if !$smarty.session.SHOP.Login}
        <br>
        <ul class="login_ul">
            {if $smarty.get.mode!="forgot_pw"}
            <li><a href="/?mode=forgot_pw">{$langstrings.login.lost_password}?</a></li>
            {else}
            <li><a href="{$SCRIPT_NAME}">{$langstrings.login.login}</a></li>
            {/if}
            <li><a href="/?mode=register">{$langstrings.login.new_customer}?</a><br></li>
        </ul>
    {else}
        <ul class="login_ul">
            <li><a href="/?mode=change_pw">{$langstrings.login.change_pw}</a><br></li>
            <li><a href="/?mode=list_orders">{$langstrings.login.list_orders}</a><br></li>
        </ul>
    {/if}
        </div>
    </div>
    <div class="box_bottom"></div>
</div>