X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fphp%2Flist.php;h=8edb44a49225b1d218503f9e12ed2ecebacad1e4;hb=3c28a301742e8f8cdd35825fd6ebe4f842a510c7;hp=9ca33b7eecbf02dd3e5779313ad0ab5744663f76;hpb=e24caf500afdb661a6844649561da5e04b27c493;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 9ca33b7..8edb44a 100755 --- a/maps/php/list.php +++ b/maps/php/list.php @@ -17,7 +17,6 @@ include "MAPS.php"; MAPSHeader (); $next = (isset ($_GET ["next"])) ? $_GET ["next"] : 0; -// $prev; $type = $_GET ["type"]; if (isset($_GET['message'])) { $message = $_GET["message"]; @@ -50,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,23 +72,25 @@ $this_page = $next / $lines + 1; print ""; print ""; print "Page: "; - print " of $last_page"; + //print "next: $next last_page: $last_page"; + print " of $last_page"; ?>