From 054a546ff167d60bb13d0ecfc79dc1c1bce2cff0 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 24 Jun 2001 14:05:36 +0000 Subject: Several changes: - added map.html maps.html sysmap.html - support for system (network) maps git-svn-id: svn://svn.zabbix.com/trunk@105 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/map.html | 128 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 frontends/php/map.html (limited to 'frontends/php/map.html') diff --git a/frontends/php/map.html b/frontends/php/map.html new file mode 100644 index 00000000..0f91b263 --- /dev/null +++ b/frontends/php/map.html @@ -0,0 +1,128 @@ +0) + { + $color=$red; + $label="Problems"; + } + else + { + $color=$darkgreen; + $label="OK"; + } + } + $x1=$x+ImageSX($img)/2-ImageFontWidth(2)*strlen($label)/2; + $y1=$y+ImageSY($img)+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); + } + + ImagePng($im); + ImageDestroy($im); +?> -- cgit