X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=maps%2Fphp%2Flist.php;h=672f09db2ed90fa124293773c8abec4bd3c4812c;hb=a9a87bbe82dc57fbb837f86139419eaf76095105;hp=1576d965b7b53d416ca21cb34b07145cdbc87163;hpb=de78e21b1817db1ce95008aff35dce56a456d172;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index 1576d96..672f09d 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,15 +72,17 @@ $this_page = $next / $lines + 1; print ""; print ""; print "Page: "; - print " of $last_page"; + //print "next: $next last_page: $last_page"; + print " of $last_page"; ?>
@@ -118,13 +119,13 @@ $this_page = $next / $lines + 1;