Modifies the way the article automatically generates static page pagination.
Find include/arc.archives.class.php The following method, this method is the method of raw page style, according to the need to rename their favorite style.
/** * Get static page pagination list * * @access public * @param int $totalPage Total pages * @param int $n Owpage Current page * @param int $aid Document ID * @return String */function Getpagebreak ($totalPage, $no
Wpage, $aid) {if ($totalPage ==1) {return ""; } $PageList = "<li><a> Total". $totalPage. "
Page: </a></li> ";
$nPage = $nowPage-1;
$lPage = $nowPage +1;
if ($nowPage ==1) {$PageList. = "<li><a href= ' # ' > Prev </a></li>"; } else {if ($nPage ==1) {$PageList. = "<li><a href= '". $this ->namefirst. ".". $this->shortname. "'
> Prev </a></li> "; } else {$PageList. = "<li><a href= '". $this->namefirst. " _ ". $nPage.". $this->shortname. "'
> Prev </a></li> ";
}
} for ($i =1; $i <= $totalPage; $i + +) {if ($i ==1) {if ($nowPage!=1) {$PageList. = "<li><a href= '". $this->namefirst. ".". $this->shortname. "'
>1</a></li> "; } else {$PageList. = "<li class=\" thisclass\ "><a href= ' # ' >1
</a></li> ";
}} else {$n = $i; if ($nowPage! = $i) {$PageList. = "<li><a href= '". $this->namefirst. " _ ". $i.". $this->shortname. "' > ". $n."
</a></li> "; } else {$PageList. = "<li class=\" thisclass\ "><a href= ' # ' >{
$n}</a></li> "; }}} if ($lPage <= $totalPage) {$PageList. = "<li><a Href= ' ". $this->namefirst." _ ". $lPage.". $this->shortname. "'
> Next </a></li> ";
} else {$PageList. = "<li><a href= ' # ' > Next </a></li>";
} return $PageList; }