Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/umedia3/ |
Upload File : |
<? include ("./inc/config.inc.php"); //html_start(); ?><html> <head><style> body { margin: 0 0 0 0; } </style> <title>Gmap display (uMedia)</title> <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=<? echo barcodeval_get("webpage-o-gmapapiurl");?>" type="text/javascript"></script> <script type="text/javascript"> function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } <? $catelist=urldecode($catelist); $s="select * from dc_coverage where f3<>'' and (0 $catelist )"; $s=tmq($s); $alist=""; $blist=""; while ($r=tmq_fetch_array($s)) { if (trim($r[f3])!="") { $tmp=explode(",",$r[f3]); $alist[]=$tmp[0]; $blist[]=$tmp[1]; } } //printr($alist); $centera=min($alist)-((min($alist)-max($alist))/2); $centerb=min($blist)-((min($blist)-max($blist))/2); ?> function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); var center = new GLatLng(<? echo $centera?>,<? echo $centerb;?>); map.setCenter(center, 8); map.setUIToDefault(); <? $s="select * from dc_coverage where f3<>'' and (0 $catelist )"; $s=tmq($s); while ($r=tmq_fetch_array($s)) { ?> var point1 = new GLatLng(<? echo $r[f3]?>); var marker = createMarker(point1,'<A HREF="<? echo $dcrURL?>index.php?mode=viewrecord&mid=<? echo $r[mid]?>&kw=" target=_top><? echo addslashes(marc_gettitle($r[mid]));?></A>') map.addOverlay(marker); <?}?> } } </script> </head> <body onload="initialize()" onunload="GUnload()"> <div id="map_canvas" style="width: 745px; height: 395px"></div> </body> </html>