git-svn-id: http://xe-core.googlecode.com/svn/trunk@1423 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-05-16 07:25:57 +00:00
parent 6503a6d593
commit 469bd4da53
6 changed files with 53 additions and 9 deletions

View file

@ -29,7 +29,7 @@
$this->page_count = $page_count;
$this->point = 0;
$first_page = $cur_page-(int)($page_count/2);
$first_page = $cur_page - (int)($page_count/2);
if($first_page<1) $first_page = 1;
$last_page = $total_page;
if($last_page>$total_page) $last_page = $total_page;
@ -43,7 +43,7 @@
**/
function getNextPage() {
$page = $this->first_page+$this->point++;
if($page > $this->last_page) $page = 0;
if($this->point > $this->page_count) $page = 0;
return $page;
}
}