From 1c7b0477211c458883b3fb3ede2049e2f3b93a14 Mon Sep 17 00:00:00 2001 From: haoxiaopang Date: Fri, 7 Dec 2012 11:49:57 +0800 Subject: [PATCH] Update Extend/Library/ORG/Util/Page.class.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当前页总是在中间 --- Extend/Library/ORG/Util/Page.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extend/Library/ORG/Util/Page.class.php b/Extend/Library/ORG/Util/Page.class.php index b65d927..7da2a5c 100644 --- a/Extend/Library/ORG/Util/Page.class.php +++ b/Extend/Library/ORG/Util/Page.class.php @@ -128,7 +128,7 @@ public function show() { // 1 2 3 4 5 $linkPage = ""; for($i=1;$i<=$this->rollPage;$i++){ - $page = ($nowCoolPage-1)*$this->rollPage+$i; + $page = $this->nowPage + $i - ceil($this->rollPage/2); if($page!=$this->nowPage){ if($page<=$this->totalPages){ $linkPage .= "  ".$page." ";