mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
fixed a pagination
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11942 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e29e731599
commit
0db281fea4
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@
|
||||||
|
|
||||||
$first_page = $cur_page - (int)($page_count/2);
|
$first_page = $cur_page - (int)($page_count/2);
|
||||||
if($first_page<1) $first_page = 1;
|
if($first_page<1) $first_page = 1;
|
||||||
|
|
||||||
|
if($total_page > $page_count && $first_page + $page_count - 1 > $total_page)
|
||||||
|
{
|
||||||
|
$first_page -= $first_page + $page_count - 1 - $total_page;
|
||||||
|
}
|
||||||
|
|
||||||
$last_page = $total_page;
|
$last_page = $total_page;
|
||||||
if($last_page>$total_page) $last_page = $total_page;
|
if($last_page>$total_page) $last_page = $total_page;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue