summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2008-12-06 21:53:22 +0000
committerChristian Pointner <equinox@ffgraz.net>2008-12-06 21:53:22 +0000
commitce3487743a231579722fded89ede17c514ec59fe (patch)
treebfbda2d27c90de58c2600023358a00f5785fc581 /index.php
parentd585ae96c39abe04572f7b7e9ac2c4ce264f93e5 (diff)
offline locations can now be hidden
Diffstat (limited to 'index.php')
-rw-r--r--index.php20
1 files changed, 18 insertions, 2 deletions
diff --git a/index.php b/index.php
index a89e8b6..1fa8e6a 100644
--- a/index.php
+++ b/index.php
@@ -11,7 +11,7 @@ else
if(empty($lat)) $lat=47.07102;
if(empty($lng)) $lng=15.440;
if(empty($res)) $res=15;
-if(!isset($marker)) $marker="online";
+if(empty($marker)) $marker="online";
?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
@@ -35,7 +35,23 @@ if(!isset($marker)) $marker="online";
<div id="map" style="width:100%; height:100%;"></div>
<div id="legendbox" class="box">
<b>Legende:</b>
- <!-- TODO: add Legend Info -->
+ <table class="legend">
+ <tr><td align="center"><img src="./img/marker_online.png" /></td><td>&nbsp;</td><td>Online</td></tr>
+ <tr><td align="center"><img src="./img/marker_offline.png" /></td><td>&nbsp;</td><td>Offline</td></tr>
+ <tr><td align="center"><img src="./img/marker_tunnel.png" /></td><td>&nbsp;</td><td>Tunnel</td></tr>
+ <tr><td align="center"><img src="./img/link_green.png" /></td><td>&nbsp;</td><td>Gut</td></tr>
+ <tr><td align="center"><img src="./img/link_yellow.png" /></td><td>&nbsp;</td><td>Mittel</td></tr>
+ <tr><td align="center"><img src="./img/link_red.png" /></td><td>&nbsp;</td><td>Schlecht</td></tr>
+ <tr><td align="center"><img src="./img/link_blue.png" /></td><td>&nbsp;</td><td>Tunnel</td></tr>
+ </table>
+ </div>
+ <div id="visibox" class="box">
+ <b>Elemente ausblenden</b>
+ <form name="visibleform">
+ <table class="legend">
+ <tr><td><input type="checkbox" name="offline" value="true" onclick="javascript:toggleVisible('offline')" <?php if($marker == "online") printf(' checked="checked"'); ?> ></td><td>&nbsp;</td><td>Offline</td></tr>
+ </table>
+ </from>
</div>
<div id="addressbox" class="box">
<b>Adresse suchen:</b>