X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fphp%2Flist.php;h=81d65edd1b40de93a2086f5c35bca638c0d0c359;hb=8af32b28b56662686b6ceb59f2e00dc19cfc7a33;hp=b08bf767c616bdccb8abcf7d0853c8a4842d4607;hpb=32deb5f9dfef1be20b8ffd96898f06c5448d7604;p=clearscm.git diff --git a/maps/php/list.php b/maps/php/list.php index b08bf76..81d65ed 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"; ?>
= 0 ? - "Previous" : ""; - $next_button = ($next + $lines) < $total ? - "Previous" : ""; + "Previous" : ""; + $next_button = ($next + $lines) < $total ? + "Next" : ""; print $prev_button; ?>