<{include file="index/header.html"}> 
<div class="nav"><span>订单评价</span></div>
<div class="filter"> 
	<input type="button" name="del_checked" class="del_ck button" value="删除选项"/> 
	<a href="?m=goods_order&a=comment" class="<{if $smarty.get.status == ''}>option_ch<{else}>option<{/if}>">全部</a>
	<a href="?m=goods_order&a=comment&status=1" class="<{if $smarty.get.status == '1'}>option_ch<{else}>option<{/if}>">通过</a>
	<a href="?m=goods_order&a=comment&status=0" class="<{if $smarty.get.status == '0'}>option_ch<{else}>option<{/if}>">屏蔽</a>
</div>
<div class="main"> 
	<table width="100%" class="ltable">
	  	<thead>
		  	<tr>
				<th width="30"><input type="checkbox" class="checked_all"/></th> 
				<th width="80">商户</th>
				<th width="500">评论内容</th>
				<th width="50">评分</th> 
				<th width="120">编辑</th>
		  	</tr>
	  	</thead>
		<tbody>
		<{if $data.list}>
			<{foreach item=i from=$data.list}>
				<tr> 
					<td><input name="key_id[]" type="checkbox" value="<{$i.id}>" class="checked_list"/></td>
					<td><{$i.shop_name}></td>
					<td style="padding-right:10px;"><{$i.content}></td> 
					<td><{$i.score}></td>  
					<td>
						<a href="javascript:;" onclick="edit_con('评论编辑','?m=goods_order&a=comment_edit&id=<{$i.id}>')" class="edit">编辑</a>
						<a href="javascript:;" data-id="<{$i.id}>" class="del">删除</a>
					</td>
				</tr>
			<{/foreach}>
		<{else}>
			<tr><td colspan="5">还没有数据，赶快添加吧！</td></tr>
		<{/if}>
		</tbody> 
	</table> 
	<div class="page"><{$data.page}></div>
</div>
<{include file="index/footer.html"}> 
<script type="text/javascript">
_delete('?m=goods_order&a=comment_del', '.del_ck', 'as');
function edit_con(name,url){
	parent.dialog(name, url,600, 260); 
} 
</script>