summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 13:17:12 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 13:17:12 +0000
commit3d46f8cd88e6ae75d3c2f5ad151b031d0a275dec (patch)
tree4f8090dca92df6374f2ff917acafc3d424a443f3 /frontends/php/map.php
parent77b0f6eeccfb4e183664d8b1bb4023e8075d6290 (diff)
downloadzabbix-3d46f8cd88e6ae75d3c2f5ad151b031d0a275dec.tar.gz
zabbix-3d46f8cd88e6ae75d3c2f5ad151b031d0a275dec.tar.xz
zabbix-3d46f8cd88e6ae75d3c2f5ad151b031d0a275dec.zip
- support for no labels and no status in network maps (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1676 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 669df00e..6e102f41 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -326,10 +326,7 @@
else
$color=$darkyellow;
-// if( strstr($label,"%s"))
-// {
$label=expand_trigger_description_simple(DBget_field($result1,0,1));
-// }
}
else if($count>1)
{
@@ -348,12 +345,11 @@
{
$y1=$y1+ImageFontHeight(2);
}
- ImageFilledRectangle($im,$x1-2, $y1,$x1+ImageFontWidth(2)*strlen($label), $y1+ImageFontHeight(2),$white);
- ImageString($im, 2, $x1, $y1, $label,$color);
-
-# ImageFilledRectangle($im,$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2-2, $y+ImageSY($img),$x+ImageSX($img)/2+ImageFontWidth(2)*strlen($label)/2, $y+ImageSY($img)+ImageFontHeight(2),$white);
-# ImageString($im, 2, $x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2, $y+ImageSY($img)+ImageFontHeight(2), $label,$color);
-# ImageDestroy($img);
+ if($label_type!=MAP_LABEL_TYPE_NOTHING)
+ {
+ ImageFilledRectangle($im,$x1-2, $y1,$x1+ImageFontWidth(2)*strlen($label), $y1+ImageFontHeight(2),$white);
+ ImageString($im, 2, $x1, $y1, $label,$color);
+ }
}
ImageStringUp($im,0,imagesx($im)-10,imagesy($im)-50, S_ZABBIX_URL, $gray);