麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網(wǎng)站 > 幫助中心 > 正文

分享一個效果:6.0的搜索頁支持標(biāo)簽

2024-07-09 22:58:43
字體:
供稿:網(wǎng)友

搜索結(jié)果頁支持標(biāo)簽:

<?phprequire("../../class/connect.php");include("../../class/db_sql.php");include("../../data/dbcache/class.php");require('../../class/functions.php');require('../../class/t_functions.php');include "../".LoadLang("pub/fun.php");$editor=1;$link=db_connect();$empire=new mysqlquery();$getvar=$_GET['getvar'];if(empty($getvar)){ $getfrom="history.go(-1)";}else{ $getfrom="../../../search/";}//搜索結(jié)果$searchid=(int)$_GET['searchid'];if(empty($searchid)){ printerror("SearchNotRecord",$getfrom,1);}$search_r=$empire->fetch1("select searchid,keyboard,result_num,orderby,myorder,tbname,tempid,andsql,trueclassid from {$dbtbpre}enewssearch where searchid='$searchid'");if(empty($search_r['searchid'])){ printerror("SearchNotRecord",$getfrom,1);}$page=(int)$_GET['page'];$start=0;$page_line=$public_r['search_pagenum'];//每頁顯示鏈接數(shù)$line=$public_r['search_num'];//每頁顯示記錄數(shù)if(!(int)$_GET['line']){ $line=$public_r['search_num'];//每頁顯示記錄數(shù)}else{ $line=(int)$_GET['line']; $search="&line=".(int)$_GET['line'];}$search.="&classid=".(int)$_GET['classid'];$offset=$page*$line;//總偏移量$search.="&searchid=".$searchid;$myorder=$search_r[orderby];if(empty($search_r[myorder])){ $myorder.=" desc";}$add=stripSlashes($search_r['andsql']);$num=$search_r[result_num];$query="select * from {$dbtbpre}ecms_".$search_r[tbname]." where checked=1".$add;$query.=" order by ".$myorder." limit $offset,$line";$sql=$empire->query($query);$listpage=page1($num,$line,$page_line,$start,$page,$search);//取得模板if($search_r['tempid']){ $tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewssearchtemp")." where tempid='".$search_r['tempid']."' limit 1");}elseif(empty($class_r[$search_r[trueclassid]][searchtempid])){ $tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewssearchtemp")." where isdefault=1 limit 1");}else{ $tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewssearchtemp")." where tempid='".$class_r[$search_r[trueclassid]][searchtempid]."' limit 1");}$have_class=1; //頁面支持標(biāo)簽(知行網(wǎng)絡(luò))$tempr[temptext]=DtNewsBq('list'.$tempr[tempid],$tempr[temptext],0);//替換公共模板變量$listtemp=$tempr[temptext];if($public_r['searchtempvar']){ $listtemp=ReplaceTempvar($listtemp);}$search_r[keyboard]=htmlspecialchars($search_r[keyboard]);$listtemp=str_replace("[!--show.page--]",$listpage,$listtemp);$listtemp=str_replace("[!--keyboard--]",$search_r[keyboard],$listtemp);$listtemp=str_replace("[!--ecms.num--]",$num,$listtemp);$url="<a href='".$public_r[newsurl]."'>".$fun_r['index']."</a>&nbsp;>&nbsp;".$fun_r['adsearch'];$pagetitle=$fun_r['adsearch']." ".$search_r[keyboard];$listtemp=ReplaceSvars($listtemp,$url,0,$pagetitle,$pagetitle,$pagetitle,$add,0);$rownum=$tempr[rownum];if(empty($rownum)){ $rownum=1;}$formatdate=$tempr[showdate];$subnews=$tempr[subnews];$subtitle=$tempr[subtitle];$docode=$tempr[docode];$modid=$tempr[modid];$listvar=str_replace('[!--news.url--]',$public_r[newsurl],$tempr[listvar]);//字段$ret_r=ReturnReplaceListF($tempr[modid]);//取得列表模板$list_exp="[!--empirenews.listtemp--]";$list_r=explode($list_exp,$listtemp);$listtext=$list_r[1];$no=$offset+1;$changerow=1;while($r=$empire->fetch($sql)){ //替換列表變量 $repvar=ReplaceListVars($no,$listvar,$subnews,$subtitle,$formatdate,$url,$have_class,$r,$ret_r,$docode); $listtext=str_replace("<!--list.var".$changerow."-->",$repvar,$listtext); $changerow+=1; //超過行數(shù) if($changerow>$rownum) {  $changerow=1;  $string.=$listtext;  $listtext=$list_r[1]; } $no++;}db_close();$empire=null;//多余數(shù)據(jù)if($changerow<=$rownum&&$listtext<>$list_r[1]){ $string.=$listtext;}$string=$list_r[0].$string.$list_r[2];echo stripSlashes($string);?>

將此文件放到e/search/result/index.php目錄覆蓋就OK了

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 蜜桃传媒视频麻豆第一区免费观看 | 久久av免费 | 色999国产| 久久久久久久亚洲精品 | 天天天干夜夜夜操 | 蜜桃视频在线观看视频 | 久久视讯| 91在线看黄 | 日韩视频一区二区三区四区 | 国产精品看片 | 成年免费看 | 黄色小视频在线免费看 | 91懂色| 亚洲福利在线观看视频 | 亚洲特黄a级毛片在线播放 久久久入口 | 国产成人强伦免费视频网站 | 中文字幕一区二区三区四区 | 久久区二区 | 国产精品视频一区二区三区四区五区 | 欧美韩国日本在线 | 日本成人午夜 | 中文字幕涩涩久久乱小说 | 久久综合给合久久狠狠狠97色69 | 538任你躁在线精品视频网站 | 在线成人免费网站 | 国产精品成人一区二区三区吃奶 | 国产91精品欧美 | 欧美a区 | 极品销魂一区二区三区 | 免费黄色欧美视频 | 曰批全过程120分钟免费69 | av免费在线网 | chinese xxxx hd pron8 tube| 欧美特黄a | 成人性爱视频在线观看 | 大奶一级片 | 爽成人777777婷婷 | 国产免费中文字幕 | 91在线视频精品 | 五月天堂av91久久久 | 羞羞羞羞视频 |