<!-- includes/$dataname/table_view.inc -->
{if !$header}{assign var="header" value="yes"}{/if}
{if !$$dataname_view}{assign var="$dataname_view" value=$table_view}{/if}
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
<div class="table-view">
<table id="$dataname-table-view" cellspacing="0" summary="$dataname table" class="{if $header=="yes"}has-header{else}no-header{/if}">
{foreach from=$$dataname_view item="row" key="key" name="$dataname_view"}
{if $smarty.foreach.$dataname_view.first AND $header=="yes"}
<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 -->
