Last change
on this file since 7767 was 7767, checked in by janveeden, 15 years ago |
|
-
Property svn:eol-style
set to
native
|
File size:
1.6 KB
|
Line | |
---|
1 | <?php
|
---|
2 | require_once("../../config.php");
|
---|
3 | require_once($config['root']."/map/inc/kmlHandler.php");
|
---|
4 |
|
---|
5 | if(isset($_GET['view']))
|
---|
6 | {
|
---|
7 | setcookie("view", $_GET['view']);
|
---|
8 | $view = $_GET['view'];
|
---|
9 | }
|
---|
10 | else
|
---|
11 | {
|
---|
12 | if(isset($_COOKIE['view']))
|
---|
13 | {
|
---|
14 | $view = $_COOKIE['view'];
|
---|
15 | }
|
---|
16 | else
|
---|
17 | $view = "gebruiker";
|
---|
18 | }
|
---|
19 |
|
---|
20 | if(isset($_GET['sel']))
|
---|
21 | {
|
---|
22 | $selected = $_GET['sel'];
|
---|
23 | }
|
---|
24 | else
|
---|
25 | {
|
---|
26 | $selected = "";
|
---|
27 | }
|
---|
28 |
|
---|
29 | //TYPES of nodes. 'cluster' is a cluster node. 'single' is an individual node.
|
---|
30 | if(!isset($_GET['type']))//
|
---|
31 | {
|
---|
32 | echo <<<EOF
|
---|
33 | <div id="nodeinfo">
|
---|
34 | <b>Mouse over</b> een node voor meer informatie.<br/><br/>
|
---|
35 | <b>Klik</b> op een node om deze te selecteren.<br/><br/>
|
---|
36 | Gebruik de <b>zoekfunctie</b> om de een specifieke node te zoeken.
|
---|
37 | </div>
|
---|
38 | <div id="timestamp">
|
---|
39 | Laatste update: 15:42 <br/>
|
---|
40 | Do 25 maart
|
---|
41 | </div>
|
---|
42 | EOF;
|
---|
43 |
|
---|
44 | }
|
---|
45 | elseif($_GET['type'] == "single") //Info for single nodes is stored here
|
---|
46 | {
|
---|
47 | $markers = getArrayFromKML();
|
---|
48 |
|
---|
49 | if($view == "beheerder")//Display part for beheerder view of a single node
|
---|
50 | {
|
---|
51 | print $markers[$_GET['name']]['description'];
|
---|
52 |
|
---|
53 |
|
---|
54 | }
|
---|
55 | elseif($view == "gebruiker")//Display part for gebruiker view of a single node
|
---|
56 | {
|
---|
57 |
|
---|
58 | }
|
---|
59 | }
|
---|
60 | elseif($_GET['type'] == "cluster")
|
---|
61 | {
|
---|
62 | $markerTitles = unserialize($_GET['markers']);
|
---|
63 |
|
---|
64 | echo <<<EOF
|
---|
65 | <div id="nodeinfo">
|
---|
66 | <h1>Nodes:</h1>
|
---|
67 | <h2>
|
---|
68 | Lijst met nodes in deze cluster<br/>
|
---|
69 | <div id="clusterlist$selected">
|
---|
70 | <select multiple>
|
---|
71 | EOF;
|
---|
72 | foreach($markerTitles as $marker)
|
---|
73 | {
|
---|
74 | echo "<option value='".$marker."'>".$marker."</option>";
|
---|
75 | }
|
---|
76 |
|
---|
77 | echo <<<EOF
|
---|
78 | </select><br/>
|
---|
79 | </div>
|
---|
80 | </h2>
|
---|
81 | </div>
|
---|
82 | <div id="timestamp">
|
---|
83 | Laatste update: 15:42 <br/>
|
---|
84 | Do 25 maart
|
---|
85 | </div>
|
---|
86 | EOF;
|
---|
87 | }
|
---|
88 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.