summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-25 19:12:58 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-08-25 19:12:58 +0000
commitafd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20 (patch)
tree84aa824aedb5e1bfa0ca7a451699387f4685f0ff /frontends/php/include/config.inc.php
parent93248e9b70106966ef70e752a32d2528e46435b3 (diff)
- added support for customised Y axis for graphs (Alexei)
- added columns graphs.(yaxistype|yaxismin|yaxismax) (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1405 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 66e614b1..0bb1f90b 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -2646,7 +2646,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
# Update Graph
- function update_graph($graphid,$name,$width,$height)
+ function update_graph($graphid,$name,$width,$height,$yaxistype,$yaxismin,$yaxismax)
{
global $ERROR_MSG;
@@ -2656,7 +2656,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
return 0;
}
- $sql="update graphs set name='$name',width=$width,height=$height where graphid=$graphid";
+ $sql="update graphs set name='$name',width=$width,height=$height,yaxistype=$yaxistype,yaxismin=$yaxismin,yaxismax=$yaxismax where graphid=$graphid";
return DBexecute($sql);
}
@@ -2678,7 +2678,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
# Add Graph
- function add_graph($name,$width,$height)
+ function add_graph($name,$width,$height,$yaxistype,$yaxismin,$yaxismax)
{
global $ERROR_MSG;
@@ -2688,7 +2688,7 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
return 0;
}
- $sql="insert into graphs (name,width,height) values ('$name',$width,$height)";
+ $sql="insert into graphs (name,width,height,yaxistype,yaxismin,yaxismax) values ('$name',$width,$height,$yaxistype,$yaxismin,$yaxismax)";
return DBexecute($sql);
}