Changeset 7735 for trunk/src/map
- Timestamp:
- Apr 13, 2010, 5:02:27 PM (15 years ago)
- Location:
- trunk/src/map/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/node_info.php
r7734 r7735 15 15 } 16 16 17 //TYPES van nodes. 'cluster' is een cluster node. 'single' is een individuelenode.18 if(!isset($_GET['type'])) 17 //TYPES of nodes. 'cluster' is a cluster node. 'single' is an individual node. 18 if(!isset($_GET['type']))// 19 19 { 20 20 echo <<<EOF … … 31 31 32 32 } 33 elseif($_GET['type'] == "single") 33 elseif($_GET['type'] == "single") //Info for single nodes is stored here 34 34 { 35 if($view == "beheerder") 35 if($view == "beheerder")//Display part for beheerder view of a single node 36 36 { 37 37 echo <<<EOF … … 55 55 EOF; 56 56 } 57 elseif($view == "gebruiker") 57 elseif($view == "gebruiker")//Display part for gebruiker view of a single node 58 58 { 59 59 echo <<<EOF … … 80 80 elseif($_GET['type'] == "cluster") 81 81 { 82 if($view == "beheerder") 82 $markerTitles = unserialize($_GET['markers']); 83 84 if($view == "beheerder")//Display part for beheerder view of a cluster node 83 85 { 84 86 echo <<<EOF … … 87 89 <h2> 88 90 Lijst met nodes in deze cluster<br/> 89 91 EOF; 92 foreach($markerTitles as $marker) 93 { 94 echo "".$marker."<br/>"; 95 } 96 97 echo <<<EOF 90 98 BEHEERDERSVIEW 91 99 </h2> … … 97 105 EOF; 98 106 } 99 elseif($view == "gebruiker") 107 elseif($view == "gebruiker")//Display part for gebruiker view of a cluster node 100 108 { 101 109 echo <<<EOF … … 104 112 <h2> 105 113 Lijst met nodes in deze cluster<br/> 106 114 <select multiple size="5" width="15"> 115 EOF; 116 foreach($markerTitles as $marker) 117 { 118 echo "<option value='".$marker."'>".$marker."</option>"; 119 } 120 121 echo <<<EOF 122 </select><br/> 107 123 GEBRUIKERSVIEW 108 124 </h2> -
trunk/src/map/inc/nodemapWL.js
r7734 r7735 61 61 function mouseOverCluster(markers) 62 62 { 63 //Make 'markers' array (containing gmarkers) into an array containing only the titles(id's) of the markers 63 64 var markerTitles = new Array; 64 65 for(var i=0; i<markers.length; i++) { … … 66 67 } 67 68 68 loadXMLDoc("inc/node_info.php?type=cluster") 69 var markerTitleSerialized; 70 71 //start 72 var a_php = ""; 73 var total = 0; 74 75 for (var i=0; i<markerTitles.length; i++) 76 { 77 ++ total; 78 a_php = a_php + "s:" + 79 String(i).length + ":\"" + String(i) + "\";s:" + 80 String(markerTitles[i]).length + ":\"" + String(markerTitles[i]) + "\";"; 81 } 82 a_php = "a:" + total + ":{" + a_php + "}"; 83 //end 84 85 loadXMLDoc("inc/node_info.php?type=cluster&markers="+a_php+"") 69 86 /* 70 87 *Hieronder verdergaan met dekking
Note:
See TracChangeset
for help on using the changeset viewer.