<div style="position:relative;left:10px;width:1000px;">
{if $form_data->name == 'sitemap'}
<h2>XML Sitemap Generator</h2>
<div id="adminLeftFloater">
	<div title="Sitemap" id="stammdaten">
		<form class="edit" method="POST">
			<input type="hidden" name="modul" value="admin_price_search_engine_editor" />
			<input type="hidden" id="id" name="id" value="{$form_data->id}" />
			<div title="XML-Sitemap" id="base1">
				<div class="edit_element_3_5">
					<label>Letzte Generierung: {if $form_data->last_export_date}{$form_data->last_export_date}{else}Noch nicht generiert{/if}</label>
					<label>Anzahl URLs: {if $form_data->count_exported_items}{$form_data->count_exported_items}{else}0{/if}</label>
					<input style="margin-top: 20px;" type="submit" name="generate_sitemap" value="Sitemap jetzt generieren" />
				</div>
			</div>
		</form>
	</div>
</div>
{else}
<h2>Preissuchmaschine {$mod}</h2>

<div id="adminLeftFloater">
	<div title="Stammdaten" id="stammdaten">
		<form class="edit" method="POST">
			<input type="hidden" name="modul" value="admin_price_search_engine_editor" />
			<input type="hidden" id="id" name="id" value="{$form_data->id}" />
							
				<div title="XML-Sitemap" id="base1">
					<div class="edit_element_3_5">
						<label style="width:100%;">Downloadlink<span style="width:100px;" class="span_form"><a target="_blank" title="export" style="text-decoration:none;" href="http://{$servername}/export/{$form_data->name}.csv">Exportdownload</a></span></label>
						<input name="form_field[path]" readonly value="http://{$servername}/export/{$form_data->name}.csv" type="text" />
					</div>
					<div class="edit_endline"></div>
					<div class="edit_element_3_5">
						<label>Preise von Kundengruppe nehmen</label>
						<select name="form_field[customer_group_id]">
							<option value="0">--keine Preise--</option>
						{foreach from=$customer_groups item=group}
							<option value="{$group->id}" {if $group->id == $form_data->customer_group_id}selected="selected"{/if}>{$group->name}</option>
						{/foreach}
						</select>
					</div>	
					<div class="edit_endline"></div>	
					<div class="edit_element_1_1">
						<label>Artikelquelle</label>
						<select name="form_field[all_item_groups]">
							<option value="1" {if $form_data->all_item_groups == 1}selected{/if}>Alle Artikel exportieren</option>
							<option value="0" {if $form_data->all_item_groups == 0}selected{/if}>Artikel aus ausgew&auml;hlten Warengruppen exportieren</option>
						</select>
					</div>	
					<div class="edit_endline"></div>
					{if $form_data->all_item_groups == 0}
					{foreach item=structure from=$structure_tree}
					<input type="checkbox" value="{$structure->id}" name="structure_ids[]" {if $form_data->structure_ids[$structure->id]}checked{/if}>{if $structure->path_name}{$structure->path_name}->{/if}{$structure->name}<br>
					{/foreach}
					{/if}
				</div>
			<input style="position:relative;left:185px;width: 200px;" type="submit" name="submit" id="submit" value="Einstellung speichern" />
		</form>
	</div>
</div>
{/if}
</div>

<script src="{$info->base_url}/themes/admin/media/js/admin_country_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}