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

<div id="adminLeftFloater">
	<div title="Stammdaten" id="stammdaten">
		<div class="edit_icon_bar" style="left:380px;">
			{if $form_data->id}
			<a href="./index.php?admin_modul=admin_standard_message_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_standard_message_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_standard_message_editor" />
			<input type="hidden" id="id" name="id" value="{$form_data->id}" />
				
				<div class="edit_title">Interna:</div>
				<div class="edit_element_3_5">
					<label>Name</label>
					<input id="customerCreationFirstname" name="form_field[name]" value="{$form_data->name}" type="text" />
				</div>		
				<div class="edit_endline"></div>			
				<div class="edit_element_3_5">
					<label>Aktion / Event</label>
					<select name="form_field[event_type]">
						<option value="0">-</option>
						{foreach from=$events item=event}
						<option value="{$event.type}" {if $form_data->event_type == $event.type}selected{/if}>{$event.name}</option>
						{/foreach}
					</select>
				</div>	
				<div class="edit_element_2_5">
					<label>Aktivierung</label>
					<select name="form_field[active]">
						<option value="1" {if $form_data->active == 1}selected{/if}>aktiv</option>
						<option value="0" {if $form_data->active == 0}selected{/if}>inaktiv</option>
					</select>
				</div>
				<div class="edit_endline"></div>	
				<div class="edit_element_2_5">
					<label>Empfänger</label>
					<select id="recipient" name="form_field[recipient]">
						<option value="0" {if $form_data->recipient == 0}selected{/if}>-</option>
						<option value="1" {if $form_data->recipient == 1}selected{/if}>Kunde</option>
						<option value="2" {if $form_data->recipient == 2}selected{/if}>Shopadmin</option>
					</select>
				</div>	
				<div id="customer_group_selection" class="edit_element_3_5" {if $form_data->recipient != 1}style="display:none"{/if}>
					<label>Kundengruppe</label>
					<select name="form_field[customer_group_id]">
						<option value="0">alle</option>
						{foreach from=$customer_groups item=group}
						<option value="{$group->id}" {if $form_data->customer_group_id == $group->id}selected{/if}>{$group->name}</option>
						{/foreach}
					</select>
				</div>	
								
				<div class="edit_endline"></div>
				<div class="edit_title">Nachricht:</div>
				<div class="edit_element_1_1">
					<label>Betreff</label>
					<input id="customerCreationFirstname" name="form_field[title]" value="{$form_data->title}" type="text" />
				</div>					
				<div class="edit_endline"></div>
				<div class="edit_element_1_1" style="height:400px;">
					<label>Textnachricht</label>
					<textarea name="form_field[message]" class="content_box_textbox" >{$form_data->message}</textarea>
				</div>					
				<div class="edit_endline"></div>
				<div class="edit_title">Dateianh&auml;nge:</div>
				<input id="file_upload" name="file_upload" type="file" />
				<div id="file_list">
					<table border="0" cellspacing="3" cellpadding="2">
					{foreach from=$form_data->files item=file}
						<tr bgcolor="#cccccc"><td>{$file->file_name}</td><td><a href="#" rel="file_element_{$file->id}" class="delete_file"><img src="{$info->base_url}/themes/admin/media/images/delete.png" alt="L&ouml;schen" /></a></td><td><a href="./index.php?admin_modul=admin_standard_message_editor&id={$form_data->id}&file_id={$file->id}&mod=file_load">download</a></td></tr>
					{/foreach}
					</table>
				</div>
				<div class="edit_endline"></div>			
			<input style="position:relative;left:185px;width: 200px;" type="submit" name="submit" id="submit" value="Benachrichtigung speichern" />
		</form>
	</div>
</div>

<div id="adminRightFloater">
	<div title="Legende" id="legend">
		<dl class="legend">
			<dt><strong>Allgemein</strong></dt>
			<dd>&nbsp;</dd>
			
			<dt>[#datenschutz]</dt>
			<dd>Datenschutzerkl&auml;rung</dd>
			<dt>[#agb]</dt>
			<dd>AGB</dd>
			<dt>[#agb_b2b]</dt>
			<dd>AGB B2B</dd>
			<dt>[#widerruf]</dt>
			<dd>Widerrufserkl&auml;rung</dd>
			
			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>

			<dt><strong>Bestellung</strong></dt>
			<dd>&nbsp;</dd>
			
			<dt>[#order]</dt>
			<dd>Bestellung</dd>
			<dt>[#order_number]</dt>
			<dd>Bestellnummer</dd>
			<dt>[#order_date]</dt>
			<dd>Bestelldatum</dd>
			<dt>[#order_address]</dt>
			<dd>Rechnungsadresse</dd>
			<dt>[#shipping_address]</dt>
			<dd>Lieferadresse</dd>
			<dt>[#payment_method]</dt>
			<dd>Bezahlmethode</dd>
			<dt>[#payment_text]</dt>
			<dd>E-Mail Text der Bezahlmethode</dd>
			<dt>[trackingcode]</dt>
			<dd>Tracking Code</dd>
                        <dt>[#order_customer_text]</dt>
			<dd>Kundentext bei Bestellung</dd>
			
			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>

			<dt><strong>Kunde</strong></dt>
			<dd>&nbsp;</dd>
			
			<dt>[#customer_id]</dt>
			<dd>Kunden-Id.</dd>
			<dt>[#customer_number]</dt>
			<dd>Kunden-Nummer</dd>
			<dt>[#customer_skonto]</dt>
			<dd>Kundenskonto</dd>
			
			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
			
			<dt>[#customer_salutation]</dt>
			<dd>Anrede</dd>
			<dt>[#customer_company]</dt>
			<dd>Firma</dd>
			<dt>[#customer_firstname]</dt>
			<dd>Vorname</dd>
			<dt>[#customer_surename]</dt>
			<dd>Nachname</dd>
			<dt>[#customer_birthday]</dt>
			<dd>Geburtsdatum</dd>
			<dt>[#customer_email]</dt>
			<dd>E-Mail Adresse</dd>
			<dt>[#customer_phone]</dt>
			<dd>Telefon</dd>
			<dt>[#customer_fax]</dt>
			<dd>Fax</dd>
			<dt>[#customer_mobile]</dt>
			<dd>Mobil</dd>
			<dt>[#customer_website]</dt>
			<dd>Website</dd>
			
			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
			
			<dt>[#customer_da_company]</dt>
			<dd>Firma</dd>
			<dt>[#customer_da_firstname]</dt>
			<dd>Vorname</dd>
			<dt>[#customer_da_surname]</dt>
			<dd>Nachname</dd>
			<dt>[#customer_da_street]</dt>
			<dd>Stra&szlig;e</dd>
			<dt>[#customer_da_house_number]</dt>
			<dd>Hausnummer</dd>
			<dt>[#customer_da_zip_code]</dt>
			<dd>PLZ</dd>
			<dt>[#customer_da_city]</dt>
			<dd>Ort</dd>
			<dt>[#customer_da_countryname]</dt>
			<dd>Land</dd>
			
			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
			
			<dt>[#full_salutation]</dt>
			<dd>Anrede mit Kundennamen</dd>
			<dt>[#customer_name]</dt>
			<dd>Vollst&auml;ndiger Name</dd>
			<dt>[#customer_address]</dt>
			<dd>Vollst&auml;ndige Adresse</dd>

			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
			
			<dt>[#customer_bank]</dt>
			<dd>Bank/Institut</dd>
			<dt>[#customer_bank_number]</dt>
			<dd>BLZ</dd>
			<dt>[#customer_account_number]</dt>
			<dd>Kontonummer</dd>
			<dt>[#customer_iban]</dt>
			<dd>IBAN</dd>
			<dt>[#customer_bic]</dt>
			<dd>BIC</dd>
			<dt>[#customer_account_holder]</dt>
			<dd>Inhaber (Konto)</dd>

			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
			
			<dt>[#customer_tax_id]</dt>
			<dd>Steuer-Id</dd>
			<dt>[#customer_tax_number]</dt>
			<dd>Steuer-Nummer</dd>

			<dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
                        
                        <dt>[#customer_freetext1]</dt>
			<dd>Freitextfeld 1</dd>
                        <dt>[#customer_freetext2]</dt>
			<dd>Freitextfeld 2</dd>
                        <dt>[#customer_freetext3]</dt>
			<dd>Freitextfeld 3</dd>
                        <dt>[#customer_freetext4]</dt>
			<dd>Freitextfeld 4</dd>
                        <dt>[#customer_freetext5]</dt>
			<dd>Freitextfeld 5</dd>
                        <dt>[#customer_freetext6]</dt>
			<dd>Freitextfeld 6</dd>
                        
                        <dt>&nbsp;</dt>
			<dd>&nbsp;</dd>
                        
                        <dt>[#customer_data_diff]</dt>
			<dd>Ge&auml;nderte Kundendaten</dd>
                        
		</dl>
		<div class="clear"></div>
	</div>
</div>
</div>
<script src="{$info->base_url}/themes/admin/media/js/admin_standard_message_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}