

	<div class="object_list_table_toolbar_title">
		<span>{$table_data.title}</span>
	</div>
	
	<!-- toolbar -->
	<div class="object_list_table_toolbar">
		<!-- first toolbar -->
		{if isset($table_data.toolbar.new) && $table_data.toolbar.new}
		<a class="new" href="{$table_data.toolbar.new}"><img height="16" width="16" src="/themes/admin/media/images/new.png" alt="Neu" title="new" /><span>Neu</span></a>
		{/if}
		{if isset($table_data.toolbar.edit) && $table_data.toolbar.edit}
		<a class="edit selected_function inactive" href=""><img src="/themes/admin/media/images/edit.png" alt="Bearbeiten" title="edit" /><span>Bearbeiten</span></a>
		{/if}
		{if isset($table_data.toolbar.delete) && $table_data.toolbar.delete}
		<a class="delete selected_function inactive" href=""><img src="/themes/admin/media/images/delete.png" alt="L&ouml;schen" title="delete" /><span>L&ouml;schen</span></a>
		{/if}
		{if isset($table_data.toolbar.actions) && $table_data.toolbar.actions}
		<a class="action" href=""><img src="/themes/admin/media/images/copy.png" alt="Aktionen" title="actions" /><span>Aktionen</span></a>
		{/if}
		{if isset($table_data.toolbar.select_all) && $table_data.toolbar.select_all}
		<a class="select_all" href=""><img src="/themes/admin/media/images/select.png" alt="Alle markieren" title="select all" /><span>Alle markieren</span></a>
		{/if}
		{if isset($table_data.toolbar.filter) && $table_data.toolbar.filter}
		<a class="filter" href=""><img src="/themes/admin/media/images/filter.png" alt="Filter" title="filter" /><span>Filter</span></a>
		{/if}
                {if isset($table_data.toolbar.view) && $table_data.toolbar.view}
		<a class="view" href=""><img src="/themes/admin/media/images/view.png" alt="Ansicht" title="view" /><span>Ansicht</span></a>
		{/if}
                {if isset($table_data.toolbar.print) && $table_data.toolbar.print}
		<a class="print selected_function inactive" href=""><img src="/themes/admin/media/images/printer.png" alt="Drucken" title="print" /><span>Drucken</span></a>
		{/if}
		{if isset($table_data.toolbar.csv_export) && isset($table_data.toolbar.csv_export) && $table_data.toolbar.csv_export}
		<a class="csv_export" href=""><img src="/themes/admin/media/images/csv_export.png" alt="Exportieren" title="csv-export" /><span>CSV-Export</span></a>
		{/if}
                {if isset($table_data.toolbar.repository) && isset($table_data.toolbar.repository) && $table_data.toolbar.repository}
		<a class="repository" href=""><img src="/themes/admin/media/images/repository.png" alt="Repository" title="repository" /><span>Repository</span></a>
		{/if}
		{if isset($table_data.toolbar.export_to_shipping) && isset($table_data.toolbar.export_to_shipping) && $table_data.toolbar.export_to_shipping}
		<a class="export_to_shipping selected_function inactive" href=""><img src="/themes/admin/media/images/csv_export.png" alt="Versandfreigabe" title="export-to-shipping" /><span>Versandfreigabe</span></a>
		{/if}
		{if isset($table_data.toolbar.search) && $table_data.toolbar.search}
		<div class="search_wrapper">
			{if $system_configuration.object_list_livesearch == 1}
			<span>Suche:</span> <input class="search livesearch" type="text" value="">
			{else}
			<span>Suche:</span> <input class="search" type="text" value=""> <input class="search_button" type="button" value="suchen">
			{/if}
		</div>
		{/if}
		<div style="clear:both;"></div>		
		
	</div>
	
	<!-- list filter -->
	<div class="object_list_table_filter_wrapper">
		<div class="object_list_table_filter">
		
		<fieldset class="filter_set">
			<legend>Filter:</legend>
		
			{foreach from=$table_data.list_filter item=filter}
			<div class="filter_element_wrapper">
				<label>{$filter.name}:</label>
				<select class="filter_element" id="filter_selection_{$filter.db_field}" name="{$filter.db_field}" style="width:200px;">
				 	<option value="">Alle</option>
					{foreach from=$filter.values item=filter_val key=key}
					<option value="{$key}">{$filter_val}</option>
					{/foreach}
				</select>
			</div>
			{/foreach}
			
		</fieldset>
		
		</div>
	</div>
                        
        <!-- list view -->
	<div class="object_list_table_view_wrapper">
		<div class="object_list_table_view">
		
		<fieldset class="view_set">
			<legend>Ansicht:</legend>
		
			{foreach from=$table_data.list_fields item=view}
			<div class="view_element_wrapper">
				<label>{$view.name}</label>
				<input type="checkbox" name="" value="">
			</div>
			{/foreach}
			
		</fieldset>
		
		</div>
	</div>
	
	<!-- list actions -->
	<div class="object_list_table_action_wrapper">
		<form method="post" action="" id="list_action_form">
		<div class="object_list_table_action">
		
		<fieldset class="action_set">
			<legend>Aktionen:</legend>
		
			{foreach from=$table_data.list_actions item=action}
			<div class="action_element_wrapper">
				<label>{$action.name}:</label>
				<select class="action_element" name="form_data[{$action.db_field}]" style="width:200px;">
				 	<option value="">-</option>
					{foreach from=$action.values item=action_val key=key}
					<option value="{$key}">{$action_val}</option>
					{/foreach}
				</select>
			</div>
			{/foreach}
			<div class="action_element_wrapper">
				<input type="button" name="list_action_button" class="list_action_button" value="Aktion ausf&uuml;hren bei 0 Datens&auml;tze" />
			</div>
		</fieldset>
		
		</div>
		</form>
	</div>
	
	<!-- filter -->
	{if isset($table_data.quick_filter)}
	<div class="quick_filter">
		<span rel='' class="active">Alle</span>
		{foreach from=$table_data.list_filter[$table_data.quick_filter].values item=filter key=key}
			<span rel='{$key}'>{$filter}</span>
		{/foreach}
	</div>
	{/if}
	
	<!-- list table -->
	<table class="object_list_table">
		<thead>
			<tr style="border-bottom:1px solid #cccccc;">
				{foreach from=$table_data.list_fields item=field}
				<th class="object_list_col_header {if $field.sortable == 1}object_list_col_sortable{/if}" rel="{$field.db_field}">
					{$field.name}
					{if $field.sortable == 1}
					<span class="sort_arrow"></span>
					{/if}
				</th>
				{/foreach}
			</tr>
		</thead>
		<tbody></tbody>
	</table>	
	
	<div class="object_list_table_footer">
		<div class="items_per_page_wrapper">	
			<label for="items">Items per page</label>
			<select name="items" class="max_list_items" id="items">
				<option value="5" {if $table_data.list_setting.max_list_items == '5'}selected="selected"{/if}>5</option>
				<option value="10" {if $table_data.list_setting.max_list_items == '10'}selected="selected"{/if}>10</option>
				<option value="20" {if $table_data.list_setting.max_list_items == '20'}selected="selected"{/if}>20</option>
				<option value="50" {if $table_data.list_setting.max_list_items == '50'}selected="selected"{/if} >50</option>
                                <option value="100" {if $table_data.list_setting.max_list_items == '100'}selected="selected"{/if} >100</option>
                                <option value="200" {if $table_data.list_setting.max_list_items == '200'}selected="selected"{/if} >200</option>
                                <option value="300" {if $table_data.list_setting.max_list_items == '300'}selected="selected"{/if} >300</option>
                                <option value="400" {if $table_data.list_setting.max_list_items == '400'}selected="selected"{/if} >400</option>
                                <option value="500" {if $table_data.list_setting.max_list_items == '500'}selected="selected"{/if} >500</option>
                                <option value="1000" {if $table_data.list_setting.max_list_items == '1000'}selected="selected"{/if} >1000</option>
                                <option value="5000" {if $table_data.list_setting.max_list_items == '5000'}selected="selected"{/if} >5000</option>
                                <option value="10000" {if $table_data.list_setting.max_list_items == '10000'}selected="selected"{/if} >10000</option>
			</select>
		</div>

		<div class="object_list_stats"></div>

		<div class="pagination_wrapper">
			<div class="object_list_pagination pagination"></div>	
		</div>

	</div>


<script src="./themes/admin/media/js/admin_object_list.js"></script>
<script type="text/javascript">
	var object_class_name = '{$table_data.object_name}';
	var edit_link = '{$table_data.edit_link}';
</script>
{if isset($table_data.quick_filter)}
<script type="text/javascript">
$(document).ready(function() {
	$('.quick_filter span').click(function(e){
	e.preventDefault;
	$('#filter_selection_{$table_data.list_filter[$table_data.quick_filter].db_field}').val($(this).attr('rel')).trigger('change');
	$('.quick_filter span').removeClass("active");
	$(this).addClass("active");
});
});
</script>
{/if}

