分享一个效果:6.0的搜索页支持标签建站知识
导读:1建站知识帝国CMS模板网下面的帝国CMS教程栏目为您提供了分享一个效果:6.0的搜索页支持标签网站建设多少钱网站建设教程。
搜索结果页支持标签:
<?php require("../../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/"; } //搜索结果 $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['searc网seo优化趋势hid'])) { printerror("SearchNotRecord",$getfrom,1); } $page=(int)$_GET['page']; $start=0; $page_line=$public_r['search_pagenum'];//每页显示链接数 $line=$public_r['search_num'];//每页显示记录数 if(!(int)$_GET['line']){ $line=$public_r['search_num'];//每页显示记录数 }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; $seo网站优化培训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 seo网站优化软件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");
声明: 本文由我的SEOUC技术文章主页发布于:2023-05-22 ,文章分享一个效果:6.0的搜索页支持标签建站知识主要讲述标签,效果,搜索网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_4825.html