<?php include(pe_tpl('header.html'));?>
<div class="right fr">
	<div class="now">
		<div class="fl now1"></div>
		<div class="fl now2">评价列表</div>
		<div class="fl now3"></div>
		<div class="clear"></div>
	</div>
	<div class="spqh mat8">
		<div class="fr searbox mat3">
			<form method="get">
				<input type="hidden" name="mod" value="<?php echo $_g_mod ?>" />
				<input type="hidden" name="act" value="<?php echo $_g_act ?>" />
				评价详情：<input type="text" name="keyword" value="<?php echo $_g_keyword ?>" class="inputtext inputtext_200" />
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat5">
	<tr>
		<td class="bgtt" align="center" width="10"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'comment_id')" /></td>
		<td class="bgtt" align="center" width="150">产品名称</td>
		<td class="bgtt" align="center">评价详情</td>
		<td class="bgtt" align="center" width="80">姓名</td>
		<td class="bgtt" align="center" width="70">评价时间</td>
		<td class="bgtt" align="center" width="30">回复</td>
		<td class="bgtt" align="center" width="30">审核</td>
		<td class="bgtt" align="center" width="70">操作</td>
	</tr>
	<?php foreach($info_list as $v):?>
	<tr>
		<td align="center"><input type="checkbox" name="comment_id[]" value="<?php echo $v['comment_id'] ?>" /></td>
		<td align="center"><?php echo $v['package_name'] ?></td>
		<td><?php echo $v['comment_text'] ?></td>
		<td align="center"><?php echo $v['comment_uname'] ?><br/><a href="http://www.ip138.com/ips.asp?ip=<?php echo $v['comment_uip'] ?>" target="_blank"><?php echo $v['comment_uip'] ?></a></td>
		<td align="center"><?php echo pe_date($v['comment_atime'], 'Y-m-d') ?></td>
		<td align="center">
			<?php if($v['comment_replytext']):?>
			<span class="cgreen">已回</span>
			<?php else:?>
			<span class="cred">待回</span>
			<?php endif;?>
		</td>
		<td align="center">
			<?php if($v['comment_state']):?>
			<a href="admin.php?mod=comment&act=statesql&id=<?php echo $v['comment_id'] ?>&state=0" class="cgreen">已审</a>
			<?php else:?>
			<a href="admin.php?mod=comment&act=statesql&id=<?php echo $v['comment_id'] ?>&state=1" class="cred">未审</a>
			<?php endif;?>
		</td>
		<td align="center">
			<a href="admin.php?mod=comment&act=edit&id=<?php echo $v['comment_id'] ?>" class="admin_edit">回复</a>
			<a href="admin.php?mod=comment&act=delsql&id=<?php echo $v['comment_id'] ?>" class="admin_del" onclick="return pe_cfone('删除')">删除</a>
		</td>
	</tr>
	<?php endforeach;?>
	<tr>
		<td class="bgtt" align="center"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'comment_id')" /></td>
		<td class="bgtt" colspan="7">
			<span class="fl">
				<button href="admin.php?mod=comment&act=delsql" onclick="return pe_cfall(this, 'comment_id', 'form', '批量删除')">批量删除</button>
				<button href="admin.php?mod=comment&act=statesql&state=1" onclick="return pe_cfall(this, 'comment_id', 'form', '批量审核')">批量审核</button>
				<button href="admin.php?mod=comment&act=statesql&state=0" onclick="return pe_cfall(this, 'comment_id', 'form', '批量取消')">批量取消</button>
			</span>
			<span class="fenye"><?php echo $db->page->html ?></span>
		</td>
	</tr>
	</table>
	</form>
</div>
<?php include(pe_tpl('footer.html'));?>