summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.html
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-06-24 17:14:02 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2001-06-24 17:14:02 +0000
commit0db5010365e68d85776cc095012f95d6b2cdcd60 (patch)
treef11d4dc01ff677630e7cce3cc02db6cc40117387 /frontends/php/map.html
parent8a7434e7df3385c008a7825536eb4c069620fd98 (diff)
downloadzabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.tar.gz
zabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.tar.xz
zabbix-0db5010365e68d85776cc095012f95d6b2cdcd60.zip
Change of sysmap information became possible.
git-svn-id: svn://svn.zabbix.com/trunk@107 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.html')
-rw-r--r--frontends/php/map.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/map.html b/frontends/php/map.html
index 0f91b263..35354041 100644
--- a/frontends/php/map.html
+++ b/frontends/php/map.html
@@ -6,6 +6,8 @@
# sysmapid
# noedit
+ $grid=50;
+
$result=DBselect("select name,width,height from sysmaps where sysmapid=$sysmapid");
$name=DBget_field($result,0,0);
@@ -37,12 +39,12 @@
if(!isset($noedit))
{
- for($x=32;$x<$width;$x+=32)
+ for($x=$grid;$x<$width;$x+=$grid)
{
ImageDashedLine($im,$x,0,$x,$height,$black);
ImageString($im, 2, $x+2,2, $x , $black);
}
- for($y=32;$y<$height;$y+=32)
+ for($y=$grid;$y<$height;$y+=$grid)
{
ImageDashedLine($im,0,$y,$width,$y,$black);
ImageString($im, 2, 2,$y+2, $y , $black);