projects
/
clearscm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ec853e
)
Fixed one off error and made last page a convenient link.
author
Andrew DeFaria
<Andrew@DeFaria.com>
Wed, 22 Nov 2017 16:56:11 +0000
(08:56 -0800)
committer
Andrew DeFaria
<Andrew@DeFaria.com>
Wed, 22 Nov 2017 16:56:11 +0000
(08:56 -0800)
maps/php/list.php
patch
|
blob
|
history
diff --git
a/maps/php/list.php
b/maps/php/list.php
index
1576d96
..
7cca7b2
100755
(executable)
--- 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;
include "MAPS.php";
MAPSHeader ();
$next = (isset ($_GET ["next"])) ? $_GET ["next"] : 0;
-// $prev;
$type = $_GET ["type"];
if (isset($_GET['message'])) {
$message = $_GET["message"];
$type = $_GET ["type"];
if (isset($_GET['message'])) {
$message = $_GET["message"];
@@
-73,7
+72,7
@@
$this_page = $next / $lines + 1;
print "<input type=hidden name=type value=$type>";
print "<input type=hidden name=next value=$next>";
print "Page: <select name=page onChange=\"ChangePage(this.value,'$type','$lines');\"";
print "<input type=hidden name=type value=$type>";
print "<input type=hidden name=next value=$next>";
print "Page: <select name=page onChange=\"ChangePage(this.value,'$type','$lines');\"";
- for ($i =
1
; $i <= $last_page; $i++) {
+ for ($i =
0
; $i <= $last_page; $i++) {
if ($i == ($this_page - 1)) {
print "<option selected>$i</option>";
} else {
if ($i == ($this_page - 1)) {
print "<option selected>$i</option>";
} else {
@@
-81,7
+80,8
@@
$this_page = $next / $lines + 1;
} // if
} // for
print "</select>";
} // if
} // for
print "</select>";
- print " of $last_page";
+ print " of <a href=\"/maps/php/list.php?type=$type&next=" .
+ $last_page * $lines . "\">$last_page</a>";
?>
</div>
<div class="toolbar" align="center">
?>
</div>
<div class="toolbar" align="center">