Posted on | by liu
织梦pagebreak文章分页显示设置:
在include/arc.archives.class.php这个类,这个主是来解析文章内容的类
找到 function GetPagebreak(totalPage,nowPage,$aid)
function GetPagebreak($totalPage, $nowPage, $aid) { if($totalPage==1) { return ""; } // $PageList = "
共".$totalPage."页: "; $nPage = $nowPage-1; $lPage = $nowPage+1; if($nowPage==1) { // $PageList.="
上一页"; } else { if($nPage==1) { // $PageList.="
NameFirst.".https://www.liuzhongwei.com/a/dedejq/".$this->ShortName."'>上一页"; } else { // $PageList.="
NameFirst."_".$nPage.".https://www.liuzhongwei.com/a/dedejq/".$this->ShortName."'>上一页"; } } for($i=1;$i<=$totalPage;$i++) { if($i==1) { if($nowPage!=1) { $PageList.="
NameFirst.".https://www.liuzhongwei.com/a/dedejq/".$this->ShortName."' >1"; } else { $PageList.="
1"; } } else { $n = $i; if($nowPage!=$i) { $PageList.="
NameFirst."_".$i.".https://www.liuzhongwei.com/a/dedejq/".$this->ShortName."' >".$n.""; } else { $PageList.="
{$n}"; } } } if($lPage <= $totalPage) { // $PageList.="
NameFirst."_".$lPage.".https://www.liuzhongwei.com/a/dedejq/".$this->ShortName."'>下一页"; } else { // $PageList.= "
下一页"; } return $PageList; }