Update of /cvsroot/meshdb/www/db2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24883
Modified Files:
Tag: leonard-dev
view.php
Log Message:
use onclick instead of onchange; other minor fixes
Index: view.php
===================================================================
RCS file: /cvsroot/meshdb/www/db2/view.php,v
retrieving revision 1.16.2.5
retrieving revision 1.16.2.6
diff -u -d -r1.16.2.5 -r1.16.2.6
--- view.php 23 Jan 2005 11:48:44 -0000 1.16.2.5
+++ view.php 28 Jan 2005 07:16:27 -0000 1.16.2.6
@@ -114,9 +114,6 @@
function edithelp($text) {
}
- function isnan($s) {
- return ("x".strtolower($s) == "xnan");
- }
/* Computes a map of useful calculations about two physloc records */
function elev($loc1, $loc2) {
@@ -259,7 +256,9 @@
<table width="100%">
<tr><td>
<ul>
-<li><a href="edit.php?nodeid=<?=$nodeid?>">Edit this node entry</a>
+<? if (!$READONLY) { ?>
+ <li><a href="edit.php?nodeid=<?=$nodeid?>">Edit this node entry</a>
+<? } ?>
<li><a href="index.php">Return to index</a>
</ul>
<td><div align=right>
@@ -447,7 +446,7 @@
foreach ($layers as $l) {
print "<nobr>"
."<input type=checkbox name=\"BOX".$l["name"]."\" checked"
- ." onchange=\"return blah(this)\""
+ ." onclick=\"return blah(this)\""
/*
." onChange=\"setMapLayerVisibility("
."'FORM1', '"
@@ -459,7 +458,9 @@
<tr><td class="caption"><?
zoomlinks($zoom);
foreach ($layers as $l) {
- print "<br>". $l["info"];
+ if ($l["info"]) {
+ print "<br><i>".$l["name"]." info:</i> ".$l["info"];
+ }
} ?>
</td></tr> <?
}
@@ -491,7 +492,8 @@
$mapinfo = "Ground height at site: "
. "<strong>$localt</strong> AHD est.<br>"
. "Range: low <font color=blue>$minalt</font>m"
- . " high <font color=green>$maxalt</font>m";
+ . " high <font color=green>$maxalt</font>m<br>"
+ . " Blue shows predicted visible area";
}
|