不错的一个网站管理系统
源代码在线查看: feedback.php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/functions.php");
include("../../class/com_functions.php");
$link=db_connect();
$empire=new mysqlquery();
$logininid=getcvar('loginuserid');
$loginin=getcvar('loginusername');
$loginrnd=getcvar('loginrnd');
$loginlevel=getcvar('loginlevel');
$editor=1;
is_login($logininid,$loginin,$loginrnd);
//验证权限
CheckLevel($logininid,$loginin,$classid,"feedback");
$enews=$_GET['enews'];
if(empty($enews))
{
$enews=$_POST['enews'];
}
if($enews=="DelFeedback")
{
$id=$_GET['id'];
$bid=$_GET['bid'];
DelFeedback($id,$bid,$logininid,$loginin);
}
elseif($enews=="DelFeedback_all")
{
$id=$_POST['id'];
$bid=$_POST['bid'];
DelFeedback_all($id,$bid,$logininid,$loginin);
}
include "../".LoadLang("pub/fun.php");
$page=(int)$_GET['page'];
$start=(int)$_GET['start'];
$line=25;//每页显示条数
$page_line=12;//每页显示链接数
$offset=$start+$page*$line;//总偏移量
$query="select id,bid,title,saytime,userid,username from {$dbtbpre}enewsfeedback";
$totalquery="select count(*) as total from {$dbtbpre}enewsfeedback";
//选择分类
$bid=(int)$_GET['bid'];
if($bid)
{
$query.=" where bid='$bid'";
$totalquery.=" where bid='$bid'";
$search="&bid=$bid";
}
$num=$empire->gettotal($totalquery);//取得总条数
$query=$query." order by id desc limit $offset,$line";
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
$url="管理信息反馈";
$gbclass=ReturnGbookClass($bid,1);
//风格
$loginadminstyleid=(int)getcvar('loginadminstyleid');
?>
管理信息反馈
位置:
选择反馈分类:
显示全部反馈
ID
标题(点击查看)
所属分类
发布时间
操作
while($r=$empire->fetch($sql))
{
$br=$empire->fetch1("select bname from {$dbtbpre}enewsfeedbackclass where bid='$r[bid]'");
$username="游客";
if($r['userid'])
{
$username="".$r['username']."";
}
?>
()
[ ]
}
?>
db_close();
$empire=null;
?>