[PC-BSD Commits] r1506 - websites/pbidir.com/bibivu/tpl/pbidir/admin
svn at pcbsd.org
svn at pcbsd.org
Sun Mar 2 10:51:06 PST 2008
Author: fabry
Date: 2008-03-02 10:51:06 -0800 (Sun, 02 Mar 2008)
New Revision: 1506
Modified:
websites/pbidir.com/bibivu/tpl/pbidir/admin/list.php
Log:
Fixed an issue with pagination (the link to the last page was returning an empty page)
Modified: websites/pbidir.com/bibivu/tpl/pbidir/admin/list.php
===================================================================
--- websites/pbidir.com/bibivu/tpl/pbidir/admin/list.php 2008-03-02 18:47:21 UTC (rev 1505)
+++ websites/pbidir.com/bibivu/tpl/pbidir/admin/list.php 2008-03-02 18:51:06 UTC (rev 1506)
@@ -28,7 +28,7 @@
?> Page <?=($current_page+1)?>/<?=$tot_pages?> <?php
if(($current_page+1)<$tot_pages){
//need to allow the user to go to the previous page
- ?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next ></a>] [<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages)))?>">last >></a>]<?php
+ ?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next ></a>] [<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages-1)))?>">last >></a>]<?php
} else {
?>[next >] [last >>]<?php
}
@@ -120,7 +120,7 @@
?> Page <?=($current_page+1)?>/<?=$tot_pages?> <?php
if(($current_page+1)<$tot_pages){
//need to allow the user to go to the previous page
- ?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next ></a>] [<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages)))?>">last >></a>]<?php
+ ?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next ></a>] [<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages-1)))?>">last >></a>]<?php
} else {
?>[next >] [last >>]<?php
}
More information about the Commits
mailing list