
<div class="shop_headers">{#Shop_step_2#}</div>
<div class="shop_data_forms">
{if $r_errors}
<div class="error_box">
<ul>
{foreach from=$r_errors item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}


<div class="shop_data_forms_headers">{#Shop_f_billingadress#} <span style="font-weight:normal">{#Shop_fillout_required#}</span></div>
<form method="post" action="index.php">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="box_inner">
<tr>
  <td width="200"><label for="l_r_email">{#Reg_Email#}</label></td>
  <td nowrap="nowrap" ><input class="input"  style="width:200px" name="r_email" type="text" id="l_r_email" value="{$smarty.post.r_email|escape:html|stripslashes|default:$smarty.session.r_email}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_r_anrede">{#Profile_data_title#} </label></td>
  <td>
  <select class="input"  name="r_anrede" id="l_r_anrede">
    <option value="1" {if $smarty.request.r_anrede=='1' || $smarty.session.r_anrede=='1'}selected="selected"{/if}>{#Shop_f_mr#}</option>
    <option value="2" {if $smarty.request.r_anrede=='2' || $smarty.session.r_anrede=='2'}selected="selected"{/if}>{#Shop_f_mrs#}</option>
  </select>
  </td>
</tr>
<tr>
  <td><label for="l_r_vorname">{#Profile_FirstName#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_vorname" type="text" id="l_r_vorname" value="{if $smarty.post.r_vorname==''}{$smarty.session.benutzer_vorname|default:$smarty.session.r_vorname}{else}{$smarty.post.r_vorname|escape:html|stripslashes|default:$smarty.session.r_vorname}{/if}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_r_nachname">{#Profile_LastName#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_nachname" type="text" id="l_r_nachname" value="{if $smarty.post.r_nachname==''}{$smarty.session.benutzer_nachname|default:$smarty.session.r_nachname}{else}{$smarty.post.r_nachname|escape:html|stripslashes|default:$smarty.session.r_nachname}{/if}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_r_firma">{#Profile_company#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_firma" type="text" id="l_r_firma" value="{if $smarty.post.r_firma==''}{$smarty.session.benutzer_firma|default:$smarty.session.r_firma}{else}{$smarty.post.r_firma|escape:html|stripslashes|default:$smarty.session.r_firma}{/if}" /></td>
</tr>
<tr>
  <td><label for="l_r_ustid">{#Profile_vatnum#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_ustid" type="text" id="l_r_ustid" value="{if $smarty.post.r_ustid==''}{$smarty.session.benutzer_ustid|default:$smarty.session.r_ustid}{else}{$smarty.post.r_ustid|escape:html|stripslashes|default:$smarty.session.r_ustid}{/if}" /></td>
</tr>
<tr>
  <td><label for="l_r_strasse">{#Profile_Street#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_strasse" type="text" id="l_r_strasse" value="{if $smarty.post.r_strasse==''}{$smarty.session.benutzer_strasse|default:$smarty.session.r_strasse}{else}{$smarty.post.r_strasse|escape:html|stripslashes|default:$smarty.session.r_strasse}{/if}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_r_plz">{#Profile_Zip#}</label> / <label for="l_r_ort">{#Profile_Town#}</label></td>
  <td nowrap="nowrap" >
  <input class="input" style="width:50px" name="r_plz" type="text" id="l_r_plz" value="{if $smarty.post.r_plz==''}{$smarty.session.benutzer_plz|default:$smarty.session.r_plz}{else}{$smarty.post.r_plz|escape:html|stripslashes|default:$smarty.session.r_plz}{/if}" />
  <input class="input" style="width:145px" name="r_ort" type="text" id="l_r_ort" value="{if $smarty.post.r_ort==''}{$smarty.session.benutzer_ort|default:$smarty.session.r_ort}{else}{$smarty.post.r_ort|escape:html|stripslashes|default:$smarty.session.r_ort}{/if}" />
  <sup>*</sup>  </td>
</tr>

<tr>
  <td><label for="l_r_land">{#Profile_Country#}</label></td>
  <td nowrap="nowrap" >
  <select class="input"  name="r_land" id="l_r_land" style="width:200px">
  {foreach from=$countries item=c}
  <option value="{$c.Code|upper}" {if $smarty.request.save==1}{if $smarty.request.r_land==$c.Code|upper}selected="selected"{/if}{else}{if $smarty.session.r_land==$c.Code|upper}selected="selected"{else}{if $smarty.request.save!='1' && $shop_country==$c.Code|upper && !$smarty.session.r_land}selected="selected"{elseif $smarty.request.r_land==$c.Code|upper}selected="selected"{/if}{/if}{/if}>{$c.Name}</option>
   {/foreach}
  </select>
    <sup>*</sup> </td>
</tr>
<tr>
  <td><label for="l_r_telefon">{#Profile_Phone#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_telefon" type="text" id="l_r_telefon" value="{if $smarty.post.r_telefon==''}{$smarty.session.benutzer_fon|default:$smarty.session.r_telefon}{else}{$smarty.post.r_telefon|escape:html|stripslashes|default:$smarty.session.r_telefon}{/if}" /></td>
</tr>
<tr>
  <td><label for="l_r_fax">{#Profile_Fax#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="r_fax" type="text" id="l_r_fax" value="{if $smarty.post.r_fax==''}{$smarty.session.benutzer_fax|default:$smarty.session.r_fax}{else}{$smarty.post.r_fax|escape:html|stripslashes|default:$smarty.session.r_fax}{/if}" /></td>
</tr>
<tr>
  <td valign="top"><label for="l_r_nachricht">{#Shop_f_ordermessage#}</label></td>
  <td nowrap="nowrap" ><textarea class="input" style="width:250px; height:100px"  name="r_nachricht" id="l_r_nachricht">{$smarty.post.r_nachricht|escape:html|stripslashes|default:$smarty.session.r_nachricht|stripslashes}</textarea></td>
</tr>
</table>
<br />
<a name="diff_adress"></a>
<div class="shop_data_forms_headers">{#Shop_f_shippingadress#}</div>
<label>
<input onclick="document.getElementById('liefer_andere_div').style.display='none';" type="radio" name="diff_rl" value="liefer_gleich" {if $smarty.request.diff_rl=='liefer_gleich' || $smarty.request.diff_rl=='' || $smarty.session.diff_rl=='liefer_gleich'}checked="checked"{/if} />
{#Shop_f_same_sa#}
</label>
<br />
<label>
<input onclick="document.getElementById('liefer_andere_div').style.display='';" type="radio" name="diff_rl" value="liefer_andere" {if $smarty.request.diff_rl=='liefer_andere' || $smarty.session.diff_rl=='liefer_andere'}checked="checked"{/if} />
{#Shop_f_other_sa#} 
</label>
<br />
<div id="liefer_andere_div" {if $smarty.request.diff_rl=='liefer_andere' || $smarty.session.diff_rl=='liefer_andere'}{else}style="display:none"{/if}>
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="box_inner">
<tr>
  <td width="200"><label for="l_l_anrede">{#Profile_data_title#}</label></td>
  <td>
  <select class="input"  name="l_anrede" id="l_l_anrede">
    <option value="1" {if $smarty.request.l_anrede=='1' || $smarty.session.l_anrede=='1'}selected="selected"{/if}>{#Shop_f_mr#}</option>
    <option value="2" {if $smarty.request.l_anrede=='2' || $smarty.session.l_anrede=='2'}selected="selected"{/if}>{#Shop_f_mrs#}</option>
  </select>	</td>
</tr>

<tr>
  <td><label for="l_l_vorname">{#Profile_FirstName#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_vorname" type="text" id="l_l_vorname" value="{$smarty.post.l_vorname|escape:html|stripslashes|default:$smarty.session.l_vorname}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_l_nachname">{#Profile_LastName#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_nachname" type="text" id="l_l_nachname" value="{$smarty.post.l_nachname|escape:html|stripslashes|default:$smarty.session.l_nachname}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_l_firma">{#Profile_company#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_firma" type="text" id="l_l_firma" value="{$smarty.post.l_firma|escape:html|stripslashes|default:$smarty.session.l_firma}" /></td>
</tr>
<tr>
  <td><label for="l_l_strasse">{#Profile_Street#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_strasse" type="text" id="l_l_strasse" value="{$smarty.post.l_strasse|escape:html|stripslashes|default:$smarty.session.l_strasse}" />
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_l_plz">{#Profile_Zip#}</label> / <label for="l_l_ort">{#Profile_Town#}</label></td>
  <td nowrap="nowrap" >
  <input class="input" style="width:50px" name="l_plz" type="text" id="l_l_plz" value="{$smarty.post.l_plz|escape:html|stripslashes|default:$smarty.session.l_plz}" />
    <input class="input" style="width:145px" name="l_ort" type="text" id="l_l_ort" value="{$smarty.post.l_ort|escape:html|stripslashes|default:$smarty.session.l_ort}" />
    <sup>*</sup> </td>
</tr>
<tr>
  <td><label for="l_l_land">{#Profile_Country#}</label></td>
  <td nowrap="nowrap" >
  <select class="input"  name="l_land" id="l_l_land" style="width:200px">
  {foreach from=$countries item=c}
  <option value="{$c.Code|upper}" {if $smarty.session.l_land==$c.Code|upper}selected="selected"{else}{if $smarty.request.save!='1' && $shop_country==$c.Code|upper && !$smarty.session.l_land}selected="selected"{elseif $smarty.request.l_land==$c.Code|upper}selected="selected"{/if}{/if}>
   {$c.Name}
   </option>
    
   {/foreach}
  
  </select>
    <sup>*</sup></td>
</tr>
<tr>
  <td><label for="l_l_telefon">{#Profile_Phone#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_telefon" type="text" id="l_l_telefon" value="{$smarty.post.l_telefon|escape:html|stripslashes|default:$smarty.session.l_telefon}" /></td>
</tr>
<tr>
  <td><label for="l_l_fax">{#Profile_Fax#}</label></td>
  <td nowrap="nowrap" ><input class="input" style="width:200px" name="l_fax" type="text" id="l_l_fax" value="{$smarty.post.l_fax|escape:html|stripslashes|default:$smarty.session.l_fax}" /></td>
</tr>
</table>
</div>
<br />
<div class="shop_next_step">

<input type="hidden" name="p" value="shop" />
<input type="hidden" name="area" value="{$area}" />
<input type="hidden" name="action" value="shoporder" />
<input type="hidden" name="subaction" value="step2" />
{if $guest_order==1}
<input type="hidden" name="order" value="guest" />
{/if}
<input type="hidden" name="save" value="1" />
<input type="submit" class="button" value="{#Shop_nextStep#}" />

</div>
</form>
</div>
<br />