Changeset 7827 for trunk/src/map/inc
- Timestamp:
- Apr 18, 2010, 2:00:42 PM (15 years ago)
- Location:
- trunk/src/map/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/kmlHandler.php
r7815 r7827 59 59 $type = $data->value; 60 60 61 if($name == "host name")61 if($name == "hostName") 62 62 $hostname = $data->value; 63 63 … … 67 67 if($name == "checkExecutionTime") 68 68 $checkExecutionTime = $data->value; 69 70 if($name == "lastCheck") 71 $lastCheck = $data->value; 69 72 70 73 if($name == "currentState") -
trunk/src/map/inc/node_info.php
r7823 r7827 5 5 { 6 6 setcookie("view", $_GET['view']); 7 header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); 7 8 $view = $_GET['view']; 8 9 } … … 56 57 $name = $marker['name']; 57 58 $location = $marker['location']; 59 $status = $marker['status']; 60 $interfaces = $marker['interfaces']; 61 $masterIP = $marker['masterIP']; 62 $nodeType = $marker['nodeType']; 63 $type = $marker['type']; 64 $hostname = $marker['hostname']; 65 $hasBeenChecked = $marker['hasBeenChecked']; 66 $checkExecutionTime = $marker['checkExecutionTime']; 67 $currentState = $marker['currentState']; 68 $problemHasBeenAcknowledged = $marker['problemHasBeenAcknowledged']; 69 70 $lastcheck = $marker['lastCheck']; 71 $lastcheck = date('d-m-Y H:i:s', (int)$lastcheck); 72 58 73 } 59 74 } … … 64 79 echo <<<EOF 65 80 <div id='nodeinfo'> 66 {$name}<br/> 67 Locatie: {$location} 81 <b>{$name}</b> 82 <div id="information"> 83 <p>Locatie: {$location} 84 <p>Status: {$status} 85 <p>Inferfaces: {$interfaces} 86 <p>Master IP: {$masterIP} 87 <p>Node type: {$nodeType} 88 <p>Type: {$type} 89 <p>Hostname: {$hostname} 90 <p>Has been check: {$hasBeenChecked} 91 <p>Check execution time: {$checkExecutionTime} 92 <p>Current state: {$currentState} 93 <p>Problem has been acknowledged: {$problemHasBeenAcknowledged} 68 94 </div> 69 95 <div id="timestamp"> 70 Laatste update: 15:42 <br/> 71 Do 25 maart 96 Laatste update: {$lastcheck} 72 97 </div> 73 98 EOF; … … 77 102 echo <<<EOF 78 103 <div id='nodeinfo'> 79 {$name}<br/> 80 Locatie: {$location} 104 <b>{$name}</b> 105 <div id="information"> 106 <p>Locatie: {$location} 107 <p>Status: {$status} 108 <p>Type: {$type} 109 <p>Hostname: {$hostname} 81 110 </div> 82 111 <div id="timestamp"> … … 93 122 echo <<<EOF 94 123 <div id="nodeinfo"> 95 < h1>Nodes:</h1>96 <h2>124 <b>Nodes:</b><br/> 125 97 126 Lijst met nodes in deze cluster<br/> 98 127 <div id="clusterlist$selected" > … … 105 134 106 135 echo <<<EOF 107 </select> <br/>136 </select> 108 137 </div> 109 </h2>110 </div>111 <div id="timestamp">112 Laatste update: 15:42 <br/>113 Do 25 maart114 138 </div> 115 139 EOF; -
trunk/src/map/inc/nodemapWL.js
r7826 r7827 100 100 markerSelected = marker; 101 101 marker.setImage("../img/sleutelGroenSelected.png");//Path should be in config 102 loadXMLDoc("inc/node_info.php?type=single&name="+name+" "); //Should also be in config102 loadXMLDoc("inc/node_info.php?type=single&name="+name+"&a="+Math.random()); //Should also be in config 103 103 } 104 104 } … … 114 114 map.addOverlay(polygon); 115 115 116 loadXMLDoc("inc/node_info.php?type=single&name="+name+" ");//Path should be in config116 loadXMLDoc("inc/node_info.php?type=single&name="+name+"&a="+Math.random());//Path should be in config 117 117 118 118 /* … … 221 221 //end 222 222 223 loadXMLDoc("inc/node_info.php?type=cluster&markers="+a_php+"&sel=selected" )223 loadXMLDoc("inc/node_info.php?type=cluster&markers="+a_php+"&sel=selected"+"&a="+Math.random()) 224 224 } 225 225 … … 356 356 function suggestMarkers(value) 357 357 { 358 loadSuggest("inc/suggestions.php?value="+value );358 loadSuggest("inc/suggestions.php?value="+value+"&a="+Math.random()); 359 359 } 360 360 … … 368 368 { 369 369 map.setCenter(markerArray[i].getLatLng(), 15); 370 loadXMLDoc("inc/node_info.php?type=single&name="+value+" ")370 loadXMLDoc("inc/node_info.php?type=single&name="+value+"&a="+Math.random()) 371 371 } 372 372 }
Note:
See TracChangeset
for help on using the changeset viewer.