summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-10 15:45:43 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-10 15:45:43 +0000
commite486dc3d851b74b984c3433deaff836e69ea7507 (patch)
treed1eaae083fcb9cf23b8b30e911443e9ae9932786 /frontends/php/map.php
parent024d1de15b266f8c7536c79657d5940ae9292689 (diff)
downloadzabbix-e486dc3d851b74b984c3433deaff836e69ea7507.tar.gz
zabbix-e486dc3d851b74b984c3433deaff836e69ea7507.tar.xz
zabbix-e486dc3d851b74b984c3433deaff836e69ea7507.zip
- [ZBX-200] improved Sysmap links color selection, changes in schema (Artem),
- [ZBX-190] fixed typo in triggers.inc.php (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5154 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index d5d001ac..b4d8c6e7 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -110,17 +110,14 @@ include_once "include/page_header.php";
$str=date("m.d.Y H:i:s",time(NULL));
ImageString($im, 0,imagesx($im)-120,imagesy($im)-12,"$str", $gray);
- if(!isset($_REQUEST["noedit"]))
- {
+ if(!isset($_REQUEST["noedit"])){
$grid = 50;
- for($x=$grid;$x<$width;$x+=$grid)
- {
+ for($x=$grid;$x<$width;$x+=$grid){
MyDrawLine($im,$x,0,$x,$height,$black,GRAPH_DRAW_TYPE_DASHEDLINE);
ImageString($im, 2, $x+2,2, $x , $black);
}
- for($y=$grid;$y<$height;$y+=$grid)
- {
+ for($y=$grid;$y<$height;$y+=$grid){
MyDrawLine($im,0,$y,$width,$y,$black,GRAPH_DRAW_TYPE_DASHEDLINE);
ImageString($im, 2, 2,$y+2, $y , $black);
}
@@ -137,7 +134,7 @@ include_once "include/page_header.php";
list($x2, $y2) = get_icon_center_by_selementid($link["selementid2"]);
$drawtype = $link["drawtype"];
- $color = $colors[$link["color"]];
+ $color = convertColor($im,$link["color"]);
$triggers = get_link_triggers($link['linkid']);
@@ -149,7 +146,7 @@ include_once "include/page_header.php";
if($triggers[$id]["status"] == TRIGGER_STATUS_ENABLED && $triggers[$id]["value"] == TRIGGER_VALUE_TRUE){
if($triggers[$id]['severity'] >= $max_severity){
$drawtype = $triggers[$id]['drawtype'];
- $color = $colors[$triggers[$id]['color']];
+ $color = convertColor($im,$triggers[$id]['color']);
$max_severity=$triggers[$id]['severity'];
}
}