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