<!-- includes/reviews/table_view.inc -->
<div class="table-view">
{if !$display_cmd}{assign var="display_cmd" value="edit"}{/if}
{if !$reviews_view}{assign var="reviews_view" value=$table_view}{/if}
<table cellspacing="0" summary="reviews table">
{foreach from=$reviews_view item="row" key="key" name="reviews_view"}
{if $smarty.foreach.reviews_view.first}
	<tr>
		<th>No.</th>
		<th class="col-name">{$W._review_name}<span id="asc-name"><a href="./?sort=name&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-name"><a href="./?sort=name&amp;order=desc">{$W.desc_mark}</a></span></th>
		<th class="col-handle">{$W._review_user}<span id="asc-handle"><a href="./?sort=handle&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-handle"><a href="./?sort=handle&amp;order=desc">{$W.desc_mark}</a></span></th>
		<th class="col-rate">{$row.rate.label}<span id="asc-rate"><a href="./?sort=rate&amp;order=asc">{$W.asc_mark}</a></span><span id="desc-rate"><a href="./?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}/items/info?id={$row.items_id.value}">{$row.items_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/reviews/table_view.inc -->