query("delete from {$dbtbpre}enewsmemberfeedback where fid='$fid'"); if($sql) { //操作日志 insert_dolog("fid=".$fid); printerror("DelMemberFeedbackSuccess",EcmsGetReturnUrl()); } else { printerror("DbError","history.go(-1)"); } } //批量删除反馈 function hDelMemberFeedback_All($add,$userid,$username){ global $empire,$dbtbpre; $fid=$add['fid']; $count=count($fid); if(empty($count)) { printerror("NotDelMemberFeedbackid","history.go(-1)"); } for($i=0;$i<$count;$i++) { $addsql.="fid='".intval($fid[$i])."' or "; } $addsql=substr($addsql,0,strlen($addsql)-4); $sql=$empire->query("delete from {$dbtbpre}enewsmemberfeedback where (".$addsql.")"); if($sql) { //操作日志 insert_dolog(""); printerror("DelMemberFeedbackSuccess",EcmsGetReturnUrl()); } else { printerror("DbError","history.go(-1)"); } } $enews=$_GET['enews']; if(empty($enews)) { $enews=$_POST['enews']; } if($enews) { hCheckEcmsRHash(); } if($enews=="hDelMemberFeedback") { hDelMemberFeedback($_GET,$logininid,$loginin); } elseif($enews=="hDelMemberFeedback_All") { hDelMemberFeedback_All($_POST,$logininid,$loginin); } include("../../member/class/user.php"); include "../".LoadLang("pub/fun.php"); $page=(int)$_GET['page']; $page=RepPIntvar($page); $start=0; $line=25;//每页显示条数 $page_line=12;//每页显示链接数 $offset=$page*$line;//总偏移量 //搜索 $search=''; $search.=$ecms_hashur['ehref']; $and=''; if($_GET['sear']) { $keyboard=RepPostVar2($_GET['keyboard']); if($keyboard) { $show=RepPostStr($_GET['show'],1); if($show==1)//反馈标题 { $and.=" where title like '%$keyboard%'"; } elseif($show==2)//反馈内容 { $and.=" where ftext like '%$keyboard%'"; } elseif($show==3)//空间主人用户ID { $and.=" where userid='$keyboard'"; } elseif($show==4)//留言者IP { $and.=" where ip like '%$keyboard%'"; } $search.="&sear=1&keyboard=$keyboard&show=$show"; } } $query="select fid,title,uid,uname,addtime,userid from {$dbtbpre}enewsmemberfeedback".$and; $totalquery="select count(*) as total from {$dbtbpre}enewsmemberfeedback".$and; $num=$empire->gettotal($totalquery);//取得总条数 $query=$query." order by fid desc limit $offset,$line"; $sql=$empire->query($query); $returnpage=page2($num,$line,$page_line,$start,$page,$search); $url="会员空间 > 管理反馈"; ?> 管理反馈
位置:
搜索:
fetch($sql)) { $ur=$empire->fetch1("select ".egetmf('username')." from ".eReturnMemberTable()." where ".egetmf('userid')."='$r[userid]'"); $username=$ur['username']; if($r['uid']) { $r['uname']="$r[uname]"; } else { $r['uname']='游客'; } ?>
ID
标题(点击查看)
空间主人
发布时间
操作
 ()