query("delete from {$dbtbpre}enewssearch where onclick<".$onclick.";"); if($sql) { //操作日志 insert_dolog("onclick=".$onclick); printerror("DelSearchKeySuccess","SearchKey.php".hReturnEcmsHashStrHref2(1)); } else { printerror("DbError","history.go(-1)"); } } //删除搜索关键字 function DelSearchKey_all($add,$userid,$username){ global $empire,$dbtbpre; //验证权限 CheckLevel($userid,$username,$classid,"searchkey"); $searchid=$add['searchid']; $count=count($searchid); if(empty($count)) { printerror("EmptySearchId","history.go(-1)"); } $ids=''; for($i=0;$i<$count;$i++) { $dh=','; if($i==0) { $dh=''; } $ids.=$dh.intval($searchid[$i]); } $sql=$empire->query("delete from {$dbtbpre}enewssearch where searchid in (".$ids.");"); if($sql) { //操作日志 insert_dolog(""); printerror("DelSearchKeySuccess","SearchKey.php".hReturnEcmsHashStrHref2(1)); } else { printerror("DbError","history.go(-1)"); } } $enews=$_POST['enews']; if(empty($enews)) {$enews=$_GET['enews'];} if($enews) { hCheckEcmsRHash(); } //删除搜索关键字 if($enews=="DelSearchKey") { $onclick=$_POST['onclick']; DelSearchKey($onclick,$logininid,$loginin); } if($enews=="DelSearchKey_all") { DelSearchKey_all($_POST,$logininid,$loginin); } $page=(int)$_GET['page']; $page=RepPIntvar($page); $start=0; $line=25;//每页显示条数 $page_line=18;//每页显示链接数 $offset=$page*$line;//总偏移量 $query="select * from {$dbtbpre}enewssearch"; $totalquery="select count(*) as total from {$dbtbpre}enewssearch"; $classid=ehtmlspecialchars($_GET['classid']); $bclassid=0; if($classid!='all'&&strlen($classid)!=0) { $bclassid=$classid; $query.=" where trueclassid='".intval($classid)."'"; $totalquery.=" where trueclassid='".intval($classid)."'"; } $search="&classid=".$classid.$ecms_hashur['ehref']; //取得总条数 $num=$empire->gettotal($totalquery); $query.=" order by onclick desc limit $offset,$line"; $sql=$empire->query($query); //类别 $fcfile="../data/fc/ListEnews.php"; $class=""; if(!file_exists($fcfile)) {$class=ShowClass_AddClass("",$bclassid,0,"|-",0,0);} $returnpage=page2($num,$line,$page_line,$start,$page,$search); ?> 搜索关键字排行
位置:搜索关键字排行

删除搜索关键字记录
删除搜索次 < 的记录

fetch($sql)) { if($r['iskey']) { $r[keyboard]='[多条件搜索]'; } ?>
显示范围:
ID
关键字
搜索栏目
搜索字段
人气
" target=_blank>