summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2008-12-05 13:38:31 +0000
committerChristian Pointner <equinox@ffgraz.net>2008-12-05 13:38:31 +0000
commitc8e8a9404112b449a546249b6ead075feb031f82 (patch)
tree1159faae63f6b5043f3c07c80e0252cf9044872e /index.php
parent42aa8e9d62ede2e663badcbd7f9a34ae0f0f889e (diff)
initial checkin
- geocoding works - zoom with auto map type change works - ruler works
Diffstat (limited to 'index.php')
-rw-r--r--index.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..297e0aa
--- /dev/null
+++ b/index.php
@@ -0,0 +1,54 @@
+<?php
+if(isset($_REQUEST['lat'])) $lat = mysql_escape_string($_REQUEST['lat']);
+if(isset($_REQUEST['lng'])) $lng = mysql_escape_string($_REQUEST['lng']);
+if(isset($_REQUEST['res'])) $res = $_REQUEST['res'];
+if(isset($_REQUEST['marker']))
+ $marker = $_REQUEST['marker'];
+else
+ $marker = 'all';
+
+//default values
+if(empty($lat)) $lat=47.07102;
+if(empty($lng)) $lng=15.440;
+if(empty($res)) $res=15;
+if(!isset($marker)) $marker="online";
+?>
+
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
+ <title>graz.funkfeuer.at: Map</title>
+ <link rel="stylesheet" href="map.css" type="text/css" />
+ <script src="http://maps.google.com/maps?file=api&v=2&amp;&key=ABQIAAAAZRu0cBQNp9TOBJp1i-DhohS9pf3riiZoWFmOpEuQ19If-UHZjhRHIGQIC00eY1H5H71yDqx-QzdyJA"
+ type="text/javascript"></script>
+ <script src="map.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ function onLoad() {
+<?php
+ printf(" initialize(" . $lat . ", " . $lng . ", " . $res . ");\n");
+?>
+ }
+ </script>
+ </head>
+
+ <body onload="onLoad()" onunload="GUnload()">
+ <div id="map" style="width:100%; height:100%;"></div>
+ <div id="visibox" class="box">
+ <b>Verbindungen ausblenden:</b>
+ </div>
+ <div id="addressbox" class="box">
+ <b>Adresse suchen:</b>
+ <form action="#" onsubmit="showAddress(this.address.value); return false">
+ <p>
+ <input type="text" size="40" name="address" value="Lendkai 1" />
+ <input type="submit" value="Suchen" />
+ </p>
+ </form>
+ </div>
+ </body>
+</html>
+
+
+
+
+