www.gusucode.com > 仿51.com的php源码 1.1 > admin/yijian.php

    <?php
include("ck_login.php");
include("../include/dbclass.php");
include("../include/page.php");
$dbc=new DbConn();
$maxline = 25;
$key=$_GET["key"];
$page=(int)$_GET["page"];
//$deferentparameter="&key=".$key;
if($_GET["act"]=="dels")
{
$id=$_GET["id"];
$sql="delete from yijian where id='$id'";
$dbc->Execute($sql);
echo "<script>alert('删除完成!');location.href='yijian.php?page=$page';</script>";

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link rel="stylesheet" href="admin_style.css">
<style type="text/css">
<!--
.STYLE1 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
<tr align="center">
    <td height=25 colspan=2 class="topbg"><span class="STYLE1">
	意见管理</span></tr>
<tr><td>
</td>
</tr>
</table>
<br>
<table cellspacing="1" border="0" class="border" align=center width="100%" id="table1" height="25">
	<tr align=center>
		<td class="topbg" height="28" width="15%"><b>会员名</b></td>
		<td class="topbg" height="28" width="15%"><b>类  型</b></td>
		<td class="topbg" height="28" width="15%"><b>是否VIP</b></td>
		<td class="topbg" height="28" width="15%"><b>时  间</b></td>
		<td class="topbg" height="28" width="15%"><b>是否查看</b></td>
		<td class="topbg" height="28" width="15%"><b>是否回复</b></td>
		<td class="topbg" height="28" width="10%"><b>删  除</b></td>
	</tr>
	<?php


$sql="select * from  yijian  order by tag desc,readed asc,replay asc,AddDate desc";

$news = $dbc->getGopageRs($sql,$maxline);
  //echo "$sql";
$gopage = new GoPage($dbc->tpages,$dbc->total);//建立翻页程序
$backurl = "yijian.php?".$dbc->getParameter();
for($i=0;$i<$dbc->num_rows;$i++)
{?>

	<tr align=center>
		<td class="tdbg" height=25 width="15%"><a href="/home.php?user=<?php echo $news[$i]["User_Account"]; ?>" target="_blank" ><?php echo $news[$i]["User_Account"]; ?></a></td>
		<td class="tdbg" height=25 width="15%"><a href='yijian_edit.php?id=<?php echo $news[$i]["id"]; ?>&page=<?php echo $page; ?>'><?php echo $news[$i]["ug_type"]; ?></a></td>
		<td class="tdbg" height=25 width="15%"><?php if((int)$news[$i]["tag"]>0){?><font color=red>VIP会员</font><?php }else{?>普通会员<?php }?></td>
		<td class="tdbg" height=25 width="15%"><?php echo date("Y-m-d",strtotime($news[$i]["AddDate"]));?></td>
		<td class="tdbg" height=25 width="15%"><?php if($news[$i]["readed"]==0){?><font color=red>未查看</font><?php }else{?>已查看<?php }?></td>
				<td class="tdbg" height=25 width="15%"><?php if($news[$i]["replay"]==""){?><a href='yijian_edit.php?id=<?php echo $news[$i]["id"]; ?>&page=<?php echo $page; ?>'><font color=red>未回复</font></a><?php }else{?><a href='yijian_edit.php?id=<?php echo $news[$i]["id"]; ?>&page=<?php echo $page; ?>'>已回复</a><?php }?></td>
		<td class="tdbg" height=25 width="10%"><a href="?act=dels&id=<?php echo $news[$i]["id"]; ?>&page=<?php echo $page; ?>">删除</a></td>
	</tr>
<?php }?>
</table>
<br>
<table cellspacing="1" border="0" class="border" align=center width="100%" id="table1" height="25"><tr align=center><td class="tdbg"><?=$gopage->style(2)?></td></table>

</body>
</html>