<!-- includes/common/auto_list_view.inc -->
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
{if !$list_view}{assign var="list_view" value=$table_view}{/if}
<div class="table-view list-view">
<table cellspacing="0" summary="list table">
{foreach from=$list_view item="row" key="key" name="list_view"}
{if $display_cmd!='none'}
	<tr>
		<td colspan="2">No.<a href="{$display_cmd}?id={$row.id.body}">{$row.sequence.value}</a>¡§</td>
	</tr>
{/if}
{foreach from=$row item="column" name="data"}
	{if $column.label and $column.body}
	<tr>
		<th>{$column.label}</th>
		<td>{if $column.type=='textarea'}{$column.body|nl2br}{else}{$column.body}{/if}</td>
	</tr>
	{/if}
{/foreach}
{foreachelse}
	<tr>
		<td>{$W.data}{$W.is_nothing}</td>
	</tr>
{/foreach}
</table>
</div>
<!-- end of includes/common/auto_list_view.inc -->