X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fphp%2Flist.php;h=81d65edd1b40de93a2086f5c35bca638c0d0c359;hb=6555890a4b740a47493769229747244ee6d2a160;hp=7cca7b27aef8bcd48457cc95052da957a011225d;hpb=a80e7e873fd3acf729cd547134a4dbd55362bb1b;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 7cca7b2..81d65ed 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"; ?>