[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 @@
 		?>&nbsp;&nbsp;Page <?=($current_page+1)?>/<?=$tot_pages?>&nbsp;&nbsp;<?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&nbsp;&gt;</a>]&nbsp;&nbsp;[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages)))?>">last&nbsp;&gt;&gt;</a>]<?php
+			?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next&nbsp;&gt;</a>]&nbsp;&nbsp;[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages-1)))?>">last&nbsp;&gt;&gt;</a>]<?php
 		} else {
 			?>[next&nbsp;&gt;]&nbsp;&nbsp;[last&nbsp;&gt;&gt;]<?php
 		}
@@ -120,7 +120,7 @@
 		?>&nbsp;&nbsp;Page <?=($current_page+1)?>/<?=$tot_pages?>&nbsp;&nbsp;<?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&nbsp;&gt;</a>]&nbsp;&nbsp;[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages)))?>">last&nbsp;&gt;&gt;</a>]<?php
+			?>[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>(load_class('uri')->get('page',0)+1))))?>">next&nbsp;&gt;</a>]&nbsp;&nbsp;[<a href="<?=load_class('uri')->create_uri(array_merge($params, array('page'=>$tot_pages-1)))?>">last&nbsp;&gt;&gt;</a>]<?php
 		} else {
 			?>[next&nbsp;&gt;]&nbsp;&nbsp;[last&nbsp;&gt;&gt;]<?php
 		}



More information about the Commits mailing list