X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fphp%2Flist.php;h=8edb44a49225b1d218503f9e12ed2ecebacad1e4;hb=42bd9d8ce9f61e7d723efcb64a90fb499b8b9626;hp=7cca7b27aef8bcd48457cc95052da957a011225d;hpb=3fc0300de319993a14dffd84849e510074a35963;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 7cca7b2..8edb44a 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"; ?>