<div style="position:relative;left:10px;width:1000px;">
<h2><a style="text-decoration:none;" href="./index.php?admin_modul=admin_object_list&object=Shipping_area">Lieferzonen</a> {if $form_data->name} -&gt; {$form_data->name}{else} -&gt; neu{/if}</h2>

<div id="adminLeftFloater" style="width:980px;">
	<div title="Stammdaten" id="stammdaten">
		<div class="edit_icon_bar" style="left:740px;">
			{if $form_data->id}
			<a href="./index.php?admin_modul=admin_shipping_area_editor&id={$form_data->id}&mod=delete"><img class="edit_icon" src="{$THEME_DIR}/media/images/delete.png" title="l&ouml;schen" /></a>&nbsp;&nbsp;&nbsp;
			<a href="./index.php?admin_modul=admin_shipping_area_editor"><img class="edit_icon" src="{$THEME_DIR}/media/images/new_item2.png" title="neu" /></a>
			{/if}
		</div>
		<form class="edit" method="POST">
			<input type="hidden" name="modul" value="admin_shipping_area_editor" />
			<input type="hidden" id="id" name="id" value="{$form_data->id}" />
				
				<div class="edit_title">Interna:</div>
				<div class="edit_element_2_5">
					<label>Name</label>
					<input id="customerCreationFirstname" name="form_field[name]" value="{$form_data->name}" type="text" />
				</div>				
				<div class="edit_endline"></div>
				<br>
				
				<div class="edit_title">Zahlungsarten (Alle Preise inkl. MwSt eingeben, im Kassengang wird die MwSt ausgewiesen.):</div>
				<div class="edit_element_2_5">
					<label>Vorauskasse</label>
					<select class="payment_method" name="form_field[active_vk]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_vk == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_vk == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_vk]" value="{$form_data->add_vk}" type="text" />
				</div>					
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_vk]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_vk == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_vk == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_vk == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_vk]" value="{$form_data->free_payment_vk}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_vk != 2}display:none;{/if}">
					{if $prepayment}
					{foreach from=$prepayment item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="prepayment[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="prepayment[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Nachnahme</label>
					<select class="payment_method" name="form_field[active_nn]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_nn == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_nn == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_nn]" value="{$form_data->add_nn}" type="text" />
				</div>	
								<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_nn]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_nn == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_nn == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_nn == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>		
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_nn]" value="{$form_data->free_payment_nn}" type="text" />
				</div>	
								
				<div class="payment_method_config" style="{if $form_data->active_nn != 2}display:none;{/if}">
					{if $collect_on_delivery}
					{foreach from=$collect_on_delivery item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="collect_on_delivery[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="collect_on_delivery[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Paypal</label>
					<select class="payment_method" name="form_field[active_pp]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_pp == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_pp == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_pp]" value="{$form_data->add_pp}" type="text" />
				</div>	
								<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_pp]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_pp == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_pp == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_pp == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>					
				<div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_pp]" value="{$form_data->free_payment_pp}" type="text" />
				</div>					
				<div class="payment_method_config" style="{if $form_data->active_pp != 2}display:none;{/if}">
					{if $paypal}
					{foreach from=$paypal item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paypal[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paypal[{$group->id}]" /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Rechnung</label>
					<select class="payment_method" name="form_field[active_r]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_r == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_r == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_r]" value="{$form_data->add_r}" type="text" />
				</div>
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_r]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_r == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_r == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_r == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>					
				<div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_r]" value="{$form_data->free_payment_r}" type="text" />
				</div>					
				<div class="payment_method_config" style="{if $form_data->active_r != 2}display:none;{/if}">
					{if $invoice}
					{foreach from=$invoice item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="invoice[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="invoice[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Bankeinzug</label>
					<select class="payment_method" name="form_field[active_be]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_be == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_be == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_be]" value="{$form_data->add_be}" type="text" />
				</div>
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_be]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_be == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_be == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_be == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>					
				<div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_be]" value="{$form_data->free_payment_be}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_be != 2}display:none;{/if}">
					{if $direct_debit}
					{foreach from=$direct_debit item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="direct_debit[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="direct_debit[{$group->id}]" /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Barverkauf</label>
					<select class="payment_method" name="form_field[active_bar]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_bar == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_bar == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_bar]" value="{$form_data->add_bar}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_bar]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_bar == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_bar == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_bar == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                               <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_bar]" value="{$form_data->free_payment_bar}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_bar != 2}display:none;{/if}">
					{if $cash}
					{foreach from=$cash item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="cash[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="cash[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
								
				<div class="edit_element_2_5">
					<label>Klarna Rechnung</label>
					<select class="payment_method" name="form_field[active_klarna_rechnung]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_klarna_rechnung == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_klarna_rechnung == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_klarna_rechnung]" value="{$form_data->add_klarna_rechnung}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_klarna_rechnung]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_klarna_rechnung == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_klarna_rechnung == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_klarna_rechnung == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_klarna_rechnung]" value="{$form_data->free_payment_klarna_rechnung}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_klarna_rechnung != 2}display:none;{/if}">
					{if $klarna_re}
					{foreach from=$klarna_re item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="klarna_re[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="klarna_re[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Klarna Finanzierung</label>
					<select class="payment_method" name="form_field[active_klarna_raten]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_klarna_raten == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_klarna_raten == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_klarna_raten]" value="{$form_data->add_klarna_raten}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_klarna_raten]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_klarna_raten == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_klarna_raten == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_klarna_raten == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_klarna_raten]" value="{$form_data->free_payment_klarna_raten}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_klarna_raten != 2}display:none;{/if}">
					{if $klarna_ra}
					{foreach from=$klarna_ra item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="klarna_ra[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="klarna_ra[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>paymorrow Rechnung</label>
					<select class="payment_method" name="form_field[active_paymorrow_rechnung]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_paymorrow_rechnung == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_paymorrow_rechnung == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_paymorrow_rechnung]" value="{$form_data->add_paymorrow_rechnung}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_paymorrow_rechnung]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_paymorrow_rechnung == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_paymorrow_rechnung == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_paymorrow_rechnung == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_paymorrow_rechnung]" value="{$form_data->free_payment_paymorrow_rechnung}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_paymorrow_rechnung != 2}display:none;{/if}">
					{if $paymorrow_re}
					{foreach from=$paymorrow_re item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paymorrow_re[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paymorrow_re[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>paymorrow Finanzierung</label>
					<select class="payment_method" name="form_field[active_paymorrow_raten]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_paymorrow_raten == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_paymorrow_raten == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_paymorrow_raten]" value="{$form_data->add_paymorrow_raten}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_paymorrow_raten]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_paymorrow_raten == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_paymorrow_raten == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_paymorrow_raten == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                               <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_paymorrow_raten]" value="{$form_data->free_payment_paymorrow_raten}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_paymorrow_raten != 2}display:none;{/if}">
					{if $paymorrow_ra}
					{foreach from=$paymorrow_ra item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paymorrow_ra[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="paymorrow_ra[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>

				<div class="edit_element_2_5">
					<label>BILLPAY Rechnung</label>
					<select class="payment_method" name="form_field[active_billpay_invoice]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_billpay_invoice == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_billpay_invoice == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_billpay_invoice]" value="{$form_data->add_billpay_invoice}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_billpay_invoice]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_billpay_invoice == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_billpay_invoice == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_billpay_invoice == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_billpay_invoice]" value="{$form_data->free_payment_billpay_invoice}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_billpay_invoice != 2}display:none;{/if}">
					{if $billpay_invoice}
					{foreach from=$billpay_invoice item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="billpay_invoice[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="billpay_invoice[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				<div class="edit_element_2_5">
					<label>Kreditkarte - Computop</label>
					<select class="payment_method" name="form_field[active_computop_creditcard]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_computop_creditcard == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_computop_creditcard == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_computop_creditcard]" value="{$form_data->add_computop_creditcard}" type="text" />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_computop_creditcard]">
						<option value="0">Euro Aufschlag</option>
						<option value="1" {if $form_data->account_type_computop_creditcard == 1}selected{/if}>Euro Abschlag</option>
						<option value="2" {if $form_data->account_type_computop_creditcard == 2}selected{/if}>% Aufschlag auf Warenwert</option>
						<option value="3" {if $form_data->account_type_computop_creditcard == 3}selected{/if}>% Abschlag auf Warenwert</option>
					</select>
				</div>	
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_computop_creditcard]" value="{$form_data->free_payment_computop_creditcard}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_computop_creditcard != 2}display:none;{/if}">
					{if $computop_creditcard}
					{foreach from=$computop_creditcard item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="computop_creditcard[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="computop_creditcard[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
                                
				<div class="edit_endline"></div>
				<div class="edit_element_2_5">
					<label>Kundenspezifisch</label>
					<select class="payment_method" name="form_field[active_customized]">
						<option value="1">aktiv (alle)</option>
						<option value="2" {if $form_data->active_customized == 2}selected{/if}>gruppenspezifisch</option>
						<option value="0" {if $form_data->active_customized == 0}selected{/if}>gesperrt</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Wert</label>
					<input id="customerCreationFirstname" name="form_field[add_customized]" value="{$form_data->add_customized}" type="text" disabled />
				</div>	
				<div class="edit_element_2_5">
					<label>Verrechnungstyp</label>
					<select name="form_field[account_type_customized]">
						<option value="0">-</option>
					</select>
				</div>
                                <div class="edit_element_2_5">
					<label>Bezahlkostenfrei ab</label>
					<input name="form_field[free_payment_customized]" value="{$form_data->free_payment_customized}" type="text" />
				</div>	
				<div class="payment_method_config" style="{if $form_data->active_customized != 2}display:none;{/if}">
					{if $customized}
					{foreach from=$customized item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="customized[{$group->group_id}]" {if $group->active == 1}checked="checked"{/if} /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{else}
					{foreach from=$groups item=group}
						<div class="checkbox"><input style="display:inline;" type="checkbox" name="customized[{$group->id}]"  /><label style="display:inline;">{$group->name}</label></div>
					{/foreach}
					{/if}
				</div>
				<div class="edit_endline"></div>
				
				
				<br>
				<div class="edit_title">Zusteller:</div>
				{foreach from=$deliverers item=deliverer}
				<div class="edit_element_2_5">
					<label>{$deliverer->name}</label>
					<select name="deliverer_active_{$deliverer->id}">
						<option value="0">gesperrt</option>
						<option value="1" {if $form_data->deliverer_data[$deliverer->id]->active == 1}selected{/if}>aktiv (alle)</option>
						{*<option value="2" {if $form_data->deliverer_data[$deliverer->id]->active == 2}selected{/if}>gruppenspezifisch</option>*}
					</select>
				</div>
				<div class="edit_element_2_5">
					<label>Versandkostenberechnung</label>
					<select name="deliverer_cost_type_{$deliverer->id}">
						<option value="0">Festbetrag</option>
						<option value="1" {if $form_data->deliverer_data[$deliverer->id]->deliverer_cost_type == 1}selected{/if}>Gewichtsabh&auml;ngig</option>
					</select>
				</div>
				<div class="edit_element_1_5">
					<label>Sperrgut</label>
					<input name="bulk_goods_price_add_{$deliverer->id}" value="{$form_data->deliverer_data[$deliverer->id]->bulk_goods_price_add}" type="text" />
				</div>					
								
				{if $form_data->deliverer_data[$deliverer->id]->deliverer_cost_type == 1}
				<div class="edit_element_2_5">
					<label>Versandkostenfrei ab</label>
					<input name="deliverer_shipping_free_price_{$deliverer->id}" value="{$form_data->deliverer_data[$deliverer->id]->shipping_free_price}" type="text" />
				</div>
				<div class="edit_endline"></div>
				<div class="deliverer_shipping_costs_table">
					<input name="deliverer_add_{$deliverer->id}" value="0" type="hidden" />
						<div style="font-weight:bold;">Gewichtsabh&auml;ngige Versandgeb&uuml;hren:</div>
						<table border="0" cellpadding="2" cellspacing="2" style="width:910px;background:#f0f0f0;border: solid 1px #B5C0F9;">
							<tr style="background:#cccccc;font-weight:bold;">
							  <td style="width:150px;">bis kg</td>
							  <td>Versandgeb&uuml;hren (Euro / brutto)</td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_1" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_1}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_1" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_1_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_2" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_2}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_2" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_2_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_3" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_3}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_3" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_3_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_4" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_4}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_4" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_4_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_5" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_5}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_5" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_5_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_6" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_6}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_6" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_6_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_7" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_7}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_7" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_7_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_8" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_8}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_8" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_8_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_9" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_9}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_9" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_9_price}" /></td>
							</tr>
							<tr style="background:#ffffff;">
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_weight_10" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_10}" /></td>
							  	<td><input type="text" name="deliverer_{$deliverer->id}_shipping_price_10" style="width:100px;" value="{$form_data->deliverer_data[$deliverer->id]->weight_10_price}" /></td>
							</tr>							
						</table>
				</div>
				{else}
				<div class="edit_element_1_5">
					<label>Versandkosten</label>
					<input name="deliverer_add_{$deliverer->id}" value="{$form_data->deliverer_data[$deliverer->id]->price_add}" type="text" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_1" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_1" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_2" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_2" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_3" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_3" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_4" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_4" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_5" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_5" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_6" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_6" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_7" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_7" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_8" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_8" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_9" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_9" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_weight_10" value="0" />
					<input type="hidden" name="deliverer_{$deliverer->id}_shipping_price_10" value="0" />
				</div>
				<div class="edit_element_2_5">
					<label>Versandkostenfrei ab</label>
					<input name="deliverer_shipping_free_price_{$deliverer->id}" value="{$form_data->deliverer_data[$deliverer->id]->shipping_free_price}" type="text" />
				</div>	
				{/if}
				<div class="edit_endline"></div>
				{/foreach}
				<br /><br /><br />
			<input style="position:relative;left:185px;width: 200px;" type="submit" name="submit" id="submit" value="Lieferzone speichern" />
			<br /><br />
		</form>
	</div>
</div>
</div>

<script src="./themes/admin/media/js/admin_shipping_area_editor.js"></script>



{if $info_message}<div class="info_message message">{$info_message}</div>{/if}
{if $warning_message}<div class="warning_message message">{$warning_message}</div>{/if}
{if $error_message}<div class="error_message message">{$error_message}</div>{/if}