开启inc_arclist_view.php 搜索 //--------------------------------- //获得动态性的分页查询目录 //--------------------------------- 比照下列编码改动 function GetPageListDM($list_len,$listitem=index,end,pre,next,pageno)
开启inc_arclist_view.php 搜索 //--------------------------------- //获得动态性的分页查询目录 //--------------------------------- 比照下列编码改动 function GetPageListDM($list_len,$listitem=index,end,pre,next,pageno) { $prepage=; $nextpage=; $pre...
开启inc_arclist_view.php
搜索
//---------------------------------
//获得动态性的分页查询目录
//---------------------------------
比照下列编码改动
function GetPageListDM($list_len,$listitem= index,end,pre,next,pageno )
{
$prepage=
$nextpage=
$prepagenum = $this- PageNo-1;
$nextpagenum = $this- PageNo+1;
if($list_len== ||ereg( [^0-9] ,$list_len)) $list_len=3;
$totalpage = ceil($this- TotalResult/$this- PageSize);
if($totalpage =1 $this- TotalResult 0) return 共1页/ .$this- TotalResult. 条纪录
if($this- TotalResult == 0) return 共0页 .$this- TotalResult. 条纪录
$ = 共{$totalpage}页/ .$this- TotalResult. 条纪录
$purl = $this- GetCurUrl();
$geturl = typeid= .$this- TypeID. TotalResult= .$this- TotalResult.
$gettypeid =$this- TypeID. -
//$hidenform = input type= hidden name= typeid value= .$this- TypeID. \r\n
//$hidenform .= input type= hidden name= TotalResult value= .$this- TotalResult. \r\n
$purl .= ? .$geturl;
//得到上一页和下一页的连接
if($this- PageNo != 1){
$ 上一页 /a
$ /a
}
else{
$indexpage=
}
if($this- PageNo!=$totalpage $totalpage 1){
$ 下一页 /a
$ 末页 /a
}
else{
$endpage= 末页
}
//得到数据连接
$listdd=
$total_list = $list_len * 2 + 1;
if($this- PageNo = $total_list) {
$j = $this- PageNo-$list_len;
$total_list = $this- PageNo+$list_len;
if($total_list $totalpage) $total_list=$totalpage;
}else{
$j=1;
if($total_list $totalpage) $total_list=$totalpage;
}
for($j;$j =$total_list;$j++){
$ .$j. /a
}
$plist .= $.$indexpage.$prepage.$listdd.$nextpage.$endpage;
return $plist;
}
开启inc_channel_unit_functions.php
搜索
$reurl = $GLOBALS[ cfg_plus_dir ]. /list.php?tid= .$typeid;
改为
//$reurl = $GLOBALS[ cfg_plus_dir ]. /list.php?tid= .$typeid;
$
ess文档
內容为
IfModule mod_rewrite.c
RewriteEngine On
RewriteBase /
$ $1/?tid=$2
$ $1/?typeid=$2 PageNo=$3
/IfModule
dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版