<div id="AjaxResult"></div>

{if isset($formkatstart) }
<fieldset>
  <legend>{$filtertext}</legend>
  {$formkatstart}
  {$tabto}
  <div class="pageoverflow">
    <p class="pagetext">{$prompt_category}:</p>
    <p class="pageinput">{$input_category}</p>
  </div>
  <div class="pageoverflow">
    <p class="pagetext">&nbsp;</p>
    <p class="pageinput">{$submitfilter}{$hidden|default:''}</p>
  </div>
  {$formkatend}
</fieldset>
{/if}

<div class="pageoverflow">
    <div class="pageoptions" style="float:left;">{$addlink}</div>
	<div class="pageoptions" style="float:left;">&nbsp;&nbsp;&nbsp;</div>
	<div class="pageoptions">{$reorderlink}</div>
</div>
<div class="pageoverflow">
	<table cellspacing="0" class="pagetable" id="m1_articleview">
		<thead>
			<tr>
				<th class="pageicon">&nbsp;</th>
				<th class="pageicon">{$id}</th>
				<th class="pageicon">{$active}</th>
				<th>{$header_name}</th>
				{if $use_price}<th align="right">{$price}</th>{/if}
				{if $use_vat}<th align="right">{$vat}</th>{/if}
				{if $use_availibility}<th align="right">{$availibility}</th>{/if}
				{if $use_dates}<th>{$header_start}</th>{/if}
				{if $use_dates}<th>{$header_end}</th>{/if}
				{if $use_seo}<th>{$seo_url}</th>{/if}
				<th class="pageicon">&nbsp;</th>
				<th class="pageicon">&nbsp;</th>
			</tr>
		</thead>
		<tbody>
		{foreach from=$items item=entry}
			<tr id="id-{$entry->id}" class="editable">
				<td class="dragHandle">&nbsp;</td>
				<td>{$entry->id}</td>
				<td>{$entry->active}</td>
				<td>{$entry->title}</td>
				{if $use_price}<td align="right">{$entry->price|string_format:"%.2f"}&nbsp;{$currency}</td>{/if}
				{if $use_vat}<td align="right">{if $entry->vat>0}{$entry->vat}&nbsp;%{else}-{/if}</td>{/if}
				{if $use_availibility}<td align="right">{$entry->availibility}</td>{/if}
				{if $use_dates}<td>{$entry->start}</td>{/if}
				{if $use_dates}<td>{$entry->end}</td>{/if}
				{if $use_seo}<td>{$entry->seo_url}</td>{/if}
                <td>{$entry->editlink}</td>
                <td>{$entry->deletelink}</td>
			</tr>
	{/foreach}
		</tbody>
	</table>
</div>
