X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fphp%2Flist.php;h=672f09db2ed90fa124293773c8abec4bd3c4812c;hb=1f5737d7c0b97ac29c72a9f0cd883bd6211edec9;hp=7cca7b27aef8bcd48457cc95052da957a011225d;hpb=1f0a76df468c6ae7ee878730cc68fc133c70c0a5;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 7cca7b2..672f09d 100755 --- a/maps/php/list.php +++ b/maps/php/list.php @@ -49,7 +49,7 @@ if (($next - $lines) > 0) { $total = CountList ($type); $last = $next + $lines < $total ? $next + $lines : $total; -$last_page = floor ($total / $lines); +$last_page = floor ($total / $lines) + 1; $this_page = $next / $lines + 1; ?> @@ -73,15 +73,16 @@ $this_page = $next / $lines + 1; print ""; print "Page: "; + //print "next: $next last_page: $last_page"; print " of $last_page"; + ($last_page - 1) * $lines . "\">$last_page"; ?>
@@ -118,13 +119,13 @@ $this_page = $next / $lines + 1;