Last change
on this file since 7759 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:
2.0 KB
|
Line | |
---|
1 |
|
---|
2 | <?php
|
---|
3 | if(isset($_GET['view']))
|
---|
4 | {
|
---|
5 | setcookie("view", $_GET['view']);
|
---|
6 | $view = $_GET['view'];
|
---|
7 | }
|
---|
8 | else
|
---|
9 | {
|
---|
10 | if(isset($_COOKIE['view']))
|
---|
11 | {
|
---|
12 | $view = $_COOKIE['view'];
|
---|
13 | }
|
---|
14 | else
|
---|
15 | $view = "gebruiker";
|
---|
16 | }
|
---|
17 |
|
---|
18 | if(isset($_GET['sel']))
|
---|
19 | {
|
---|
20 | $selected = $_GET['sel'];
|
---|
21 | }
|
---|
22 | else
|
---|
23 | {
|
---|
24 | $selected = "";
|
---|
25 | }
|
---|
26 |
|
---|
27 | //TYPES of nodes. 'cluster' is a cluster node. 'single' is an individual node.
|
---|
28 | if(!isset($_GET['type']))//
|
---|
29 | {
|
---|
30 | echo <<<EOF
|
---|
31 | <div id="nodeinfo">
|
---|
32 | <b>Mouse over</b> een node voor meer informatie.<br/><br/>
|
---|
33 | <b>Klik</b> op een node om deze te selecteren.<br/><br/>
|
---|
34 | Gebruik de <b>zoekfunctie</b> om de een specifieke node te zoeken.
|
---|
35 | </div>
|
---|
36 | <div id="timestamp">
|
---|
37 | Laatste update: 15:42 <br/>
|
---|
38 | Do 25 maart
|
---|
39 | </div>
|
---|
40 | EOF;
|
---|
41 |
|
---|
42 | }
|
---|
43 | elseif($_GET['type'] == "single") //Info for single nodes is stored here
|
---|
44 | {
|
---|
45 | if($view == "beheerder")//Display part for beheerder view of a single node
|
---|
46 | {
|
---|
47 | echo <<<EOF
|
---|
48 | <div id="nodeinfo">
|
---|
49 | <h1>Nodenaam</h1>
|
---|
50 | <h2>
|
---|
51 | Locatie: Oude Adeweg Leiderdorp <br/>
|
---|
52 | Meer info: <br/>
|
---|
53 | >>>>>>: <br/>
|
---|
54 | >>>>>>: <br/>
|
---|
55 | >>>>>>: <br/>
|
---|
56 | >>>>>>: <br/>
|
---|
57 |
|
---|
58 | BEHEERDERSVIEW
|
---|
59 | </h2>
|
---|
60 | </div>
|
---|
61 | <div id="timestamp">
|
---|
62 | Laatste update: 15:42 <br/>
|
---|
63 | Do 25 maart
|
---|
64 | </div>
|
---|
65 | EOF;
|
---|
66 | }
|
---|
67 | elseif($view == "gebruiker")//Display part for gebruiker view of a single node
|
---|
68 | {
|
---|
69 | echo <<<EOF
|
---|
70 | <div id="nodeinfo">
|
---|
71 | <h1>Nodenaam</h1>
|
---|
72 | <h2>
|
---|
73 | Locatie: Oude Adeweg Leiderdorp <br/>
|
---|
74 | Meer info: <br/>
|
---|
75 | >>>>>>: <br/>
|
---|
76 | >>>>>>: <br/>
|
---|
77 | >>>>>>: <br/>
|
---|
78 | >>>>>>: <br/>
|
---|
79 |
|
---|
80 | GEBRUIKERSVIEW
|
---|
81 | </h2>
|
---|
82 | </div>
|
---|
83 | <div id="timestamp">
|
---|
84 | Laatste update: 15:42 <br/>
|
---|
85 | Do 25 maart
|
---|
86 | </div>
|
---|
87 | EOF;
|
---|
88 | }
|
---|
89 | }
|
---|
90 | elseif($_GET['type'] == "cluster")
|
---|
91 | {
|
---|
92 | $markerTitles = unserialize($_GET['markers']);
|
---|
93 |
|
---|
94 | echo <<<EOF
|
---|
95 | <div id="nodeinfo">
|
---|
96 | <h1>Nodes:</h1>
|
---|
97 | <h2>
|
---|
98 | Lijst met nodes in deze cluster<br/>
|
---|
99 | <div id="clusterlist$selected">
|
---|
100 | <select multiple>
|
---|
101 | EOF;
|
---|
102 | foreach($markerTitles as $marker)
|
---|
103 | {
|
---|
104 | echo "<option value='".$marker."'>".$marker."</option>";
|
---|
105 | }
|
---|
106 |
|
---|
107 | echo <<<EOF
|
---|
108 | </select><br/>
|
---|
109 | </div>
|
---|
110 | </h2>
|
---|
111 | </div>
|
---|
112 | <div id="timestamp">
|
---|
113 | Laatste update: 15:42 <br/>
|
---|
114 | Do 25 maart
|
---|
115 | </div>
|
---|
116 | EOF;
|
---|
117 | }
|
---|
118 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.