<!-- includes/review/table_view.inc -->
{if !$header}{assign var="header" value="yes"}{/if}
{if !$review_view}{assign var="review_view" value=$table_view}{/if}
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
<div class="table-view">
<table id="review-table-view" cellspacing="0" summary="review table" class="{if $header=="yes"}has-header{else}no-header{/if}">
{foreach from=$review_view item="row" key="key" name="review_view"}
{if $smarty.foreach.review_view.first AND $header=="yes"}
<tr>
<th>No.</th>
<th class="col-name">{$W._review_name}<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-handle">{$W._review_user}<span id="asc-handle"><a href="./index1.html?sort=handle&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-handle"><a href="./index1.html?sort=handle&amp;order=desc">{$W.desc_mark}</a></span></th>
<th class="col-rate">{$row.rate.label}<span id="asc-rate"><a href="./index1.html?sort=rate&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-rate"><a href="./index1.html?sort=rate&amp;order=desc">{$W.desc_mark}</a></span></th>
</tr>
{/if}
<tr>
<td><a href="{$display_cmd}?id={$row.id.body}">{$row.sequence.value}</a></td>
<td><a href="{$b}/item/info?id={$row.item_id.value}">{$row.item_name.value}</a></td>
<td><a href="{$b}/user/info?id={$row.user_id.value}">{$row.handle.value}</a></td>
<td class="rate{$row.rate.value}">{$row.rate.html}</td>
</tr>
<tr>
<td colspan="3">{$row.comment.html|nl2br}</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/review/table_view.inc -->
