{strip}
{if $smarty.request.print!=1}
{include file="$incpath/shop/shop_steps.tpl"}
{/if}
{if $koobi_error}
<div class="error_box">
<h2>{#Error#}</h2><br />
{if $koobi_error=='to_much'}
{#Shop_basket_summ_tohigh#} <strong>{$best_max|numformat} </strong>{$currency_symbol}.
{else}
{#Shop_basket_summ_tolow#} <strong>{$best_min|numformat} </strong>{$currency_symbol}.
{/if}
</div>
{else}
{if $error==1}
<div class="shop_headers">{#Shop_step_3#}</div>
<div class="error_box">{#Shop_noshipper_thisweight#}</div>
{else}

<div class="clear"></div>
<form method="post" action="index.php" name="refresh">
<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="step3" />
{if $smarty.request.order=="guest"}<input type="hidden" name="order" value="guest" />{/if}
<input type="hidden" name="versand_id" id="hvid" value="" />
</form>


<form method="post" name="shipper_selection" action="index.php">

<div class="shop_headers">{#Shop_step_3#}</div>
<div class="shop_data_forms">
<div class="shop_data_forms_headers">{#Shop_select_shipper#}</div>

{if $shipper_found==1}
{if $shipping_weight_tomuch == '1' || !$shipper}
{#Shop_noshipper_thisweight#}
{else}
<script language="javascript" type="text/javascript">
function refresh_method(VID)
{ldelim}
	document.getElementById('hvid').value = VID;
	document.forms['refresh'].submit();
	{*
	//document.getElementById('vid').options[document.getElementById('vid').selectedIndex].value;
	location.href='index.php?p=shop&area={$area}&action=shoporder&subaction=step3{if $smarty.request.order=="guest"}&order=guest{/if}&versand_id=' + document.getElementById('vid').options[document.getElementById('vid').selectedIndex].value; 
	*}
{rdelim}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
{foreach from=$shipper item=s name="slister"}
<tr>
<td class="shop_payments_rows" width="10" valign="top">
<input onclick="refresh_method('{$s->Id}');" type="radio" name="versand_id" id="versand_id_{$s->Id}" value="{$s->Id}" {if $smarty.request.versand_id==''}{if $smarty.foreach.slister.first}checked="checked"{/if}{else}{if $smarty.request.versand_id==$s->Id}checked="checked"{/if}{/if} /> 
</td>

{*
<select class="input" name="versand_id" id="vid" onchange="refresh_method();">
{foreach from=$shipper item=s}
<option value="{$s->Id}" {if $smarty.request.versand_id==$s->Id}selected="selected"{/if}>{$s->Name|stripslashes} </option>
{/foreach}
</select>
*}

<td class="shop_payments_rows"><label for="versand_id_{$s->Id}"><strong>{$s->Name|stripslashes}</strong></label>
<br />
 {if $s->Icon}
    <img src="uploads/shop/shipper_icons/{$s->Icon}" alt="" border="0" />
    <br />
{/if}
{$s->Beschreibung|stripslashes}
</td>
</td>
</tr>
{/foreach}
</table>

<noscript>&nbsp;<input class="button" type="submit" value="{#Shop_referesh_shipper#}" /></noscript>
<br />
<div align="right">
<strong>{#Shop_shipper_costs#}</strong>&nbsp;
{if $shipping_summ}
{$shipping_summ|numformat} {$currency_symbol}
{else}
{$shipperInf->Gebuehr|numformat} {$currency_symbol}
{/if}
</div>

{/if}
{else}
{#Shop_noshipper_thisCountry#}
{/if}
</div>

{if $Payments}
<br />
<div class="shop_data_forms">
<div class="shop_data_forms_headers">{#Shop_payment_methods#}</div>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
{foreach name=payment from=$Payments item=pm}
  <tr>
    <td width="10" valign="top" class="shop_payments_rows">
	<a name="vid{$pm->Id}"></a>
	<input type="radio" name="payment_id" value="{$pm->Id}" id="pid_{$pm->Id}" {if $smarty.request.pim==$pm->Id}checked="checked"{else}{if $smarty.foreach.payment.first}checked="checked"{/if}{/if} /></td>
    <td valign="top" class="shop_payments_rows">
	<label for="pid_{$pm->Id}">
	<strong>{$pm->Name|stripslashes}</strong> {if $pm->Kosten!='0.00'}<em>{if $pm->KostenTyp=='pro'}{$pm->KostenOperant} {$pm->Kosten}%{else}{if $pm->KostenOperant=='+'}{#Shop_f_zzgl#}{else}-{/if} {$pm->Kosten|numformat} {$currency_symbol}{/if}</em>{/if} 
	</label>
	{if $pm->Id==4}
	<br />
	{if $smarty.request.e==1}
	<div class="error_box">
	Bitte pr&uuml;fen Sie Ihre Angaben
	</div>
	{/if}
	<table border="0" cellpadding="2" cellspacing="0">
	<tr>
	<td>{#Shop_bank_name#}</td>
	<td><input name="bank_name" type="text" class="input" value="{$smarty.session.bank_name|stripslashes|escape:html}" maxlength="100" /></td>
	</tr>
	<tr>
	  <td>{#Shop_bank_num#}</td>
	  <td><input name="bank_num" type="text" class="input" value="{$smarty.session.bank_num|stripslashes|escape:html}" maxlength="100" /></td>
	  </tr>
	<tr>
	<td>{#Shop_knt_num#}</td>
	<td><input name="knt_num" type="text" class="input" value="{$smarty.session.knt_num|stripslashes|escape:html}" maxlength="100" /></td>
	</tr>
	<tr>
	<td valign="top">{#Shop_knt_inh#}</td>
	<td><input name="knt_inh" type="text" class="input" value="{$smarty.session.knt_inh|stripslashes|escape:html|default:$def_knt_inh}" maxlength="150" />	</td>
	</tr>
	</table>
	{/if}
	
	<div id="descr_{$pm->Id}" style="">
	<div id="show_{$pm->Id}" style="display:none"><a href="javascript:show_shipping_inf('{$pm->Id}','hide');">{#Shop_za_out#}</a></div>
	<div id="hide_{$pm->Id}" style="display:none"><a href="javascript:show_shipping_inf('{$pm->Id}');">{#Shop_za_in#}</a></div>
	<br />
    
    {if $pm->Icon}<img src="uploads/shop/payment_icons/{$pm->Icon}" border="0" alt="" /><br /><br />{/if}
    {$pm->Beschreibung}
    </div>	
    </td>
    <td width="100" align="right" valign="top" nowrap="nowrap" class="shop_payments_rows">
	
	
	
	<a href="javascript:paymentInf('{$pm->Id}','{domain}');">{#Shop_za_in#}</a>
	</td>
  </tr>
{/foreach}
</table>
</div>
{else}
{if $shipper_found}
{if $shipping_weight_tomuch == '1' || !$shipper}
{else}
<br />
<div class="shop_data_forms">
<div class="shop_data_forms_headers">{#Shop_payment_methods#}</div>
{#Shop_noPayment#}
</div>
{/if}
{/if}
{/if}
{if $Payments}
<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="step4" />
{if $smarty.request.order=='guest'}
<input type="hidden" name="order" value="guest" />
{/if}
<input type="submit" class="button" value="{#Shop_nextStep#}" />
</div>
{/if}
</form>
{/if}
{/if}
{/strip}