<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>网站留言管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
</head>
<BODY style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
	<form name=form method=post action="<?=site_url('admin/gbook/pldel/')?>">
	<tr>
   		<td align="center" height="20" colspan="5" class="title">留言管理
   		 ｜ <a title="网站留言" href="<?=site_url('admin/gbook/index/')?>?sid=1">网站留言</a>
   		 ｜ <a title="会员留言" href="<?=site_url('admin/gbook/index/')?>?sid=2">会员留言</a>
   		 ｜ <a title="全部留言" href="<?=site_url('admin/gbook/index/')?>">全部留言</a>
                </td>
	</tr>
	<tr align="center">
		<td width="5%">选中</td>  
		<td width="43%">留言内容</td>
		<td width="10%">留言人/IP</td>
		<td width="10%">留言时间</td>
		<td width="10%">操作</td>
	</tr>
<?php
 if(empty($gbook)) echo '<tr align="center"><td colspan="5" align="center">当前没有记录!</td></tr>';
 foreach ($gbook as $row) { 
?>
	<tr>
		<td align="center"><input type=checkbox Name="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
		<td><?=$this->CsdjSkins->facehtml($row->CS_Neir)?><br><?php if(!empty($row->CS_Hfneir)) echo '<hr>&nbsp;&nbsp;&nbsp;&nbsp;<font color=red>回复：'.$row->CS_Hfneir.'</font>';?></td>
		<td align="center"><?=$row->CS_Userb?><br><?=$row->CS_Ip?></td>
		<td align="center"><?=$this->CsdjSkins->GetDate($row->CS_AddTime)?></td>
		<td align="center">
<?php if($row->CS_Usera=='cscms'){ ?>
			<a href="<?=site_url('admin/gbook/hf/'.$row->CS_ID)?>">回复</a> ｜
<?php } ?>
			<a href="<?=site_url('admin/gbook/del/'.$row->CS_ID)?>" onClick="return confirm('确定删除此内容吗?');">删除</a>
                </td>
	</tr>
<?php } ?>
	<tr>
		<td colspan="5">
		<span style="float:right;">留言数：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span>
		<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">选中本页 
		<input type="submit" class="italk-st" name="put" value="批量删除" onClick="return confirm('确定删除选中的留言吗?');" class="button"> </td>
	</tr></form> 
</table>
</body>
</html>

