<!-- includes/item/table_view.inc -->
{if !$header}{assign var="header" value="yes"}{/if}
{if !$item_view}{assign var="item_view" value=$table_view}{/if}
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
<div class="table-view">
<table id="item-table-view" cellspacing="0" summary="item table" class="{if $header=="yes"}has-header{else}no-header{/if}">
{foreach from=$item_view item="row" key="key" name="item_view"}
{if $smarty.foreach.item_view.first AND $header=="yes"}
<tr>
<th>&nbsp;</th>
<th class="col-name">{$row.name.label}<span id="asc-name"><a href="./index1.html?sort=name&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-name"><a href="./index1.html?sort=name&amp;order=desc">{$W.desc_mark}</a></span></th>
<th class="col-url">{$row.url.label}<span id="asc-url"><a href="./index1.html?sort=url&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-url"><a href="./index1.html?sort=url&amp;order=desc">{$W.desc_mark}</a></span></th>
<th class="col-updatedatetime">{$row.update_datetime.label}<span id="asc-updatedatetime"><a href="./index1.html?sort=update_datetime&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-updatedatetime"><a href="./index1.html?sort=update_datetime&amp;order=desc">{$W.desc_mark}</a></span></th>
</tr>

{/if}
<tr>
<td>{$row.sequence.value}</td>
<td><a href="{$display_cmd}?id={$row.id.body}">{$row.name.html|escape:"html"}</a></td>
<td>{$row.url.html}</td>
<td>{$row.update_datetime.value|date_format:"%Y/%m/%d"}</td>
</tr>

{foreachelse}
<tr>
<td>{$W.data}{$W.is_nothing}</td>
</tr>

{/foreach}
</table>
</div>
<!-- end of includes/item/table_view.inc -->
