{*<?php exit();?>*}
<div class="block">
	<div class="head"><span>评论列表</span></div>
	<div class="main">
		<table class="table sheet">
			<tr class="h">
				<td>评论内容</td>
				<td width="80px">通过审核</td>
				<td width="120px">操作</td>
			</tr>
			{foreach from=$comment name=comment item=item}
			<tr>
				<td style="text-align:left;line-height:22px;">
					<div>
						{section name=loop loop=$item.rank}<img src="{$S_TPL_PATH}images/star.gif" />{/section}&nbsp;
						<b>{if $item.user_name}{$item.user_name}{else}匿名用户{/if}：</b><a href="{url entrance=$index_entrance channel=$item.channel id=$item.page_id}" target="_blank">《{$item.title}》</a>
						&nbsp;[{$item.add_time|date_format:"%Y-%m-%d %H:%M:%S"}]
					</div>
					<div>{$item.text}</div>
					{if $item.reply != ''}
					<div><span class="red">管理员回复：</span>{$item.reply}</div>
					{/if}
				</td>
				<td>
					<input type="checkbox" {if $item.show == 1}checked{/if} onClick="set_order('show','comment',{$item.id},this.checked)" />
				</td>
				<td>
					<a href="{url channel=$global.channel mod='comment_edit' id=$item.id}">[回复]</a>
					<a onClick="del('comment|{$item.id}')">[删除]</a>
				</td>
			</tr>
			{/foreach}
			<tr>
				<td colspan="3">
					{$prefix = 'service/mod-comment_sheet'}
					{include file="module/page_link.php" page=$global.page}
				</td>
			</tr>
		</table>
	</div>
</div>