Changeset 890
- Timestamp:
- 07/26/06 15:29:41 (7 years ago)
- Location:
- ccsweb/trunk/ccs_mods/host
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ccsweb/trunk/ccs_mods/host/host.php
r680 r890 24 24 require("lib/ccs_init.php"); 25 25 require("host/host_common.php"); 26 @include("host/zoominkey.php"); 27 if (!isset($zoominkey)) { 28 $zoominkey=""; 29 } 26 30 27 31 if (!isset($_REQUEST["do"]) || $_REQUEST["do"] == "") { … … 279 283 $hosts[$idx]["gps_lat"] = $bits[0]; 280 284 $hosts[$idx]["gps_long"] = $bits[1]; 281 //$hosts[$idx]["ifaces"] = getHostInterfaces($hosts[$idx]["host_id"]);285 $hosts[$idx]["ifaces"] = getHostInterfaces($hosts[$idx]["host_id"]); 282 286 } 283 287 $smarty->assign("hosts", $hosts); 284 288 $smarty->assign("sheets", array("host.css")); 285 289 $smarty->assign("scripts", 286 //array("/js/zoomin2.js", "map.js")); 287 array("http://mapapi.zoomin.co.nz/?v=4&apikey=foo", "map.js")); 290 array("/js/zoomin2.js", 291 //array("http://mapapi.zoomin.co.nz/?v=4&apikey=".$zoominkey, 292 "map.js")); 288 293 display_page("mods/host/map.tpl"); 289 294 -
ccsweb/trunk/ccs_mods/host/map.js
r680 r890 63 63 marker.addEventListener('mouseout', siteHoverOff); 64 64 } 65 /*for (i in links) { 65 for (i in links) { 66 d= document.getElementById("debug"); 67 debug("link: " + i); 66 68 point1 = sites[links[i][0]]; 69 debug("point 1"); 67 70 point2 = sites[links[i][1]]; 71 debug("point 2"); 68 72 points = new Array(point1, point2); 73 debug("points"); 69 74 var line = new GPolyLine(points, "#ff0000", 2, 100); 75 debug("line " + line.icon + " " + line.icon.style); 70 76 map.addOverlay(line); 71 }*/ 77 debug(" overlaid"); 78 } 72 79 } 73 80 } 81 function debug(msg) { 82 d= document.getElementById("debug"); 83 ts = new Date(); 84 d.innerHTML = d.innerHTML + ts +": " + msg + "<br />"; 85 } -
ccsweb/trunk/ccs_mods/host/map.tpl
r680 r890 72 72 {$host.host_name} = new GPoint({$host.gps_lat}, {$host.gps_long}); 73 73 sites["{$host.host_name}"] = new Array({$host.host_name}, "{$host.host_name}", "{$host.description} at {$host.location}"); 74 {*75 74 {foreach from=$host.ifaces item=iface} 76 75 {if $iface.link_id != ""} … … 81 80 {/if} 82 81 {/foreach} 83 *}84 82 {/if} 85 83 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.
