<!-- includes/$dataname/table_view.inc -->
<div class="table-view">
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
{if !$$dataname_view}{assign var="$dataname_view" value=$table_view}{/if}
<table cellspacing="0" summary="data table">
{foreach from=$$dataname_view item="row" key="key" name="$dataname_view"}
{if $smarty.foreach.$dataname_view.first}
	<tr>
		<th></th>
	</tr>
{/if}
	<tr>
		<td></td>
	</tr>
{foreachelse}
	<tr>
		<td>{$W.data}{$W.is_nothing}</td>
	</tr>
{/foreach}
</table>
</div>
<!-- end of includes/$dataname/table_view.inc -->
