diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-07-01 11:34:17 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-07-01 11:34:17 +0000 |
| commit | 9914a035650ffb324655e1187f1bc822e4823b64 (patch) | |
| tree | d4c7a0010dbc0c8af22a9a49ab28da6720559387 /frontends/php/map.html | |
| parent | d1f643e5097215db8c0e4ac0ba472b5ebc6ba945 (diff) | |
| download | zabbix-9914a035650ffb324655e1187f1bc822e4823b64.tar.gz zabbix-9914a035650ffb324655e1187f1bc822e4823b64.tar.xz zabbix-9914a035650ffb324655e1187f1bc822e4823b64.zip | |
Hosts displayed in network maps became clickable.
git-svn-id: svn://svn.zabbix.com/trunk@118 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.html')
| -rw-r--r-- | frontends/php/map.html | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/frontends/php/map.html b/frontends/php/map.html index d46b2c10..148e9b06 100644 --- a/frontends/php/map.html +++ b/frontends/php/map.html @@ -11,11 +11,11 @@ $result=DBselect("select name,width,height from sysmaps where sysmapid=$sysmapid"); $name=DBget_field($result,0,0); - $width=DBget_field($result,0,1);; - $height=DBget_field($result,0,2);; + $width=DBget_field($result,0,1); + $height=DBget_field($result,0,2); - Header( "Content-type: text/html"); -# Header( "Content-type: image/png"); +# Header( "Content-type: text/html"); + Header( "Content-type: image/png"); Header( "Expires: Mon, 17 Aug 1998 12:51:50 GMT"); $im = imagecreate($width,$height); @@ -69,7 +69,7 @@ $x2=DBget_field($result1,0,0); $y2=DBget_field($result1,0,1); - ImageLine($im,$x1+22,$y1+22,$x2+22,$y2+22,$black); + ImageLine($im,$x1+16,$y1+16,$x2+16,$y2+16,$black); } # Draw hosts @@ -89,7 +89,6 @@ ImageCopy($im,$img,$x,$y,0,0,ImageSX($img),ImageSY($img)); - $x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2; $y1=$y+ImageSY($img); ImageFilledRectangle($im,$x1-2, $y1,$x1+ImageFontWidth(2)*strlen($label), $y1+ImageFontHeight(2),$white); |
