source: trunk/src/map/index.php@ 7756

Last change on this file since 7756 was 7756, checked in by janveeden, 15 years ago

Selecting nodes for clusters done. For single nodes background still has to turn yellow

  • Property svn:eol-style set to native
File size: 4.2 KB
Line 
1<?php require_once("inc/kmlHandler.php"); ?>
2<?php include("../config.php");
3
4# Key is defined to be the domain name if exists
5$apikey = $config['googlekey']['default'];
6$servername = $_SERVER['SERVER_NAME'];
7
8# Little hack, does not work with foo.co.uk domains
9$servername = implode('.',array_slice(explode('.',$servername),-2));
10if (array_key_exists($servername,$config['googlekey'])) {
11 $apikey = $config['googlekey'][$servername];
12}
13?>
14
15<html>
16<head>
17<title>Nodemap Wireless Leiden</title>
18<!-- External stylesheet for all browsers -->
19<link href="style/stylesheet.css" rel="stylesheet" type="text/css">
20<!-- Using stylesheet2.css when browser is any version of Microsoft Internet Explorer -->
21<!--[if IE]>
22 <link href="style/stylesheet2.css" rel="stylesheet" type="text/css">
23<![endif]-->
24
25<!-- Make our $marker[] array from kmlHandler available to javascript in JSON (No idea on how to this another less ugle way)-->
26<script>
27var markers = <?php echo json_encode($markers); ?>;
28</script>
29
30<!-- Loading in the google-api -->
31<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?php print $apikey;?>" type="text/javascript"></script>
32<!-- Loading in the markerClusterer that will handle the clustering of markers. -->
33<script type="text/javascript" src="inc/markerClusterer.js"></script>
34<!-- Loading in the javascript that will add the map into #mapcanvas -->
35<script type="text/javascript" src="inc/nodemapWL.js"></script>
36<script type="text/javascript" src="inc/overlay.js"></script>
37
38<!-- Loading in the javascript that handles the switching between gebruiker and beheerder -->
39<script type="text/javascript" src="inc/gebruiker_beheerder_switch.js"></script>
40</head>
41<body>
42<!-- Mainwrapper contains all content on the page -->
43<div id="mainwrapper">
44 <!-- Mapcanvas is the container where the map will be put in. Height and width of map is specified by size of the div -->
45 <div id="mapcanvas">
46 <!-- Create the map using the intitialize_map() function from nodemapWL.js -->
47 <script type="text/javascript">initialize_map();</script>
48 <!--<script type="text/javascript">nodeAdd();</script>-->
49 </div>
50 <div id="infowrapper">
51 <!-- Top information space -->
52 <div id="infotop">
53 <!-- Calling on the node information from an external php file. inc/node_info.php -->
54 <?php include("inc/node_info.php") ?>
55 </div>
56
57 <!-- Bottom information space -->
58 <div id="infobottom">
59 <!-- This contains the searchbox of the searchtool, and the send button for it -->
60 <div id="searchbox">
61 <form>
62 <input type="text" name="naam" size="18" maxlength="30"><input type="button" name="knop" value=" > ">
63 </form>
64 </div>
65 <!-- This contains the list of nodes, in future the searchbox will make it possible to filter this list -->
66 <div id="searchlist">
67 <select multiple>
68 <option value="node1">Node 1 Leiden</option>
69 <option value="node2">Node 2 Leiden</option>
70 <option value="node3">Node 3 Leiden</option>
71 <option value="node4">Node 4 Leiden</option>
72 <option value="node5">Node 5 Leiden</option>
73 <option value="node6">Node 6 Leiden</option>
74 <option value="node7">Node 7 Leiden</option>
75 <option value="node8">Node 8 Leiden</option>
76 <option value="node9">Node 9 Leiden</option>
77 <option value="node10">Node 10 Leiden</option>
78 </select>
79 </div>
80 </div>
81 <!-- The buttons under the searchframe. In a table for positioning. -->
82 <div id="userpick">
83 <table>
84 <tr><!-- onclick events activate functions from within inc/gebruiker_beheerder_switch.js which load in the selected view with node_info.php -->
85 <td><input type="button" value="Gebruiker" onclick="switchGebruiker();"></td>
86 <td><input type="button" value="Beheerder" onclick="switchBeheerder();"></td>
87 </tr>
88 </table>
89 </div>
90 </div>
91
92 <!-- General functions under the map -->
93 <div id="navigation">
94 <form>
95 <table>
96 <tr>
97 <!-- First colum -->
98 <td>
99 <input type="checkbox" value="shownodes" onclick="toggleMyKml();" checked="checked">Toon nodes
100 </td>
101 <!-- Second colum -->
102 <td>
103 <input type="checkbox" value="showrange">Toon dekking <br/>
104 <input type="checkbox" value="showtraffic">Toon dataverkeer
105 </td>
106 </tr>
107 </table>
108 </form>
109 </div>
110</div>
111</body>
112</html>
Note: See TracBrowser for help on using the repository browser.