Subversion-Projekte lars-tiefland.ci

Revision

Revision 548 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<!-- $Id: buy_1_newuser.tpl 751 2016-06-22 11:08:07Z tiefland $ - Anfang -->
{if !$bestellvorgang}
<form class="basket_form" action="{if $ssl}https://{else}http://{/if}{$smarty.server.SERVER_NAME}/order/index/{$step}.html" method="post" name="buy" id="buy_form">
{/if}
    <table class="basket_table">
        <tr>
            <th class="basket_head1">
                {$langstrings.buy.about_me}
            </th>
            
        </tr>
    </table>
    <table class="basket_table">
        <tr>
            <td>{$langstrings.buy.firstname} / {$langstrings.buy.name}:*</td>
            <td>
                <input type="hidden" name="account" value="new" />
                <input type="text" name="Persdata[Vorname]" class="text {if $errormsg_account["VornameAccount"]}input_error{/if}" id="login_vorname" value="{$smarty.session.SHOP.buy.Persdata.Vorname}" maxlength="255"/>
                <input type="hidden" name="req[VornameAccount]" value="persdata" />
                <input name="Persdata[Nachname]" type="text" class="persdata {if $errormsg_account["NachnameAccount"]}input_error{/if}" id="login_nachname" value="{$smarty.session.SHOP.buy.Persdata.Nachname}" maxlength="255" style="width:125px;"/>
                <input type="hidden" name="req[NachnameAccount]" value="persdata" />
            </td>
            <td>
                <span class="input_error_msg">{$errormsg_account["NachnameAccount"]} {$errormsg_account["VornameAccount"]}</span>
            </td>
        </tr>
        <tr>
            <td>{$langstrings.login.username}:*</td>
            <td>
                <input type="email" name="Persdata[email]" class="text {if $errormsg_account["emailAccount"]}input_error{/if}" id="login_email" value="{$smarty.session.SHOP.buy.Persdata.email}" required="true" style="width:281px;"/>
                <input type="hidden" name="req[emailAccount]" value="mail" />
            </td>
            <td>
                <span class="input_error_msg">{$errormsg_account["emailAccount"]}</span>
            </td>
        </tr>
        <tr>
            <td>{$langstrings.login.password}:*</td>
            <td>
                <input type="password" name="Persdata[Passwort]" class="text {if $errormsg_account["PasswortAccount"]}input_error{/if}" required="true" style="width:281px;"/>
                <input type="hidden" name="req[Passwort]" value="password" />
            </td>
            <td>
                <span class="input_error_msg">{$errormsg_account["PasswortAccount"]}</span>
            </td>
        </tr>
        {if $errormsg_account["emailAccount"]}
        
        <tr>
            <td colspan="2" class="options_order_buttons">
                <div id="login_button">{$langstrings.login.login}</div>
                <div id="gastkunde_button">{$langstrings.buy.gast_Kunde_headline}</div>
                <div id="passwort_button">{$langstrings.login.lost_password}</div>
            </td>
        </tr>
        
        {/if}
    </table>
    <div class="break" style="height:15px;"></div>
{if !$bestellvorgang}
</form>
{/if}
<script>
    $(document).ready(function(){
        $(".options_order_buttons div").button();
        $('#login_button').click(function(){
            window.location.href="/login";
        });
        $('#gastkunde_button').click(function(){
            window.location.href="/order/index/1.html?account=guest";
        });
        $('#passwort_button').click(function(){
            window.location.href="/?mode=forgot_pw";
        });
        
        $("#login_vorname").blur(function(){
            var vorname = $(this).val();
            $("input[name='Persdata[Vorname]']").val(vorname);
                
        }); 
        $("#login_nachname").blur(function(){
            var nachname = $(this).val();
            $("input[name='Persdata[Nachname]']").val(nachname);
                
        });   
        $("#login_email").blur(function(){
            var email = $(this).val();
            $("input[name='Persdata[email]']").val(email);
                
        });   
        var land = {$defaultLandID};
        {if isset($smarty.session.SHOP.buy.Persdata.liefer_Land)}
            land = {$smarty.session.SHOP.buy.Persdata.liefer_Land}  
        {else}
            land = {$smarty.session.SHOP.buy.Persdata.Land}  
        {/if}
      
        c_url="/update_versand.php?Land="+land+"&liefer=1";
        
        $.get(c_url,function(pppVersand){
            $('#Versand').val(pppVersand);
        });   
    });
</script>  
<!-- $Id: buy_1_newuser.tpl 751 2016-06-22 11:08:07Z tiefland $ - Ende -->