diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-16 10:06:44 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-16 10:06:44 +0000 |
| commit | 96fbc177dee3d7275d3b4b7ec0f39ee228616bac (patch) | |
| tree | 1a2e9d116f16d946d899a3caef70bc48ec1a7c81 /frontends/php/include/graphs.inc.php | |
| parent | 53538e4a4fb3b59a0e52555f19627f932b9c66f0 (diff) | |
| download | zabbix-96fbc177dee3d7275d3b4b7ec0f39ee228616bac.tar.gz zabbix-96fbc177dee3d7275d3b4b7ec0f39ee228616bac.tar.xz zabbix-96fbc177dee3d7275d3b4b7ec0f39ee228616bac.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2324 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
| -rw-r--r-- | frontends/php/include/graphs.inc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php index c72302e4..f2d44c2a 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -34,15 +34,15 @@ return DBinsert_id($result,"graphs","graphid"); } - function update_graph_item($gitemid,$itemid,$color,$drawtype,$sortorder) + function update_graph_item($gitemid,$itemid,$color,$drawtype,$sortorder,$yaxisside) { - $sql="update graphs_items set itemid=$itemid,color='$color',drawtype=$drawtype,sortorder=$sortorder where gitemid=$gitemid"; + $sql="update graphs_items set itemid=$itemid,color='$color',drawtype=$drawtype,sortorder=$sortorder,yaxisside=$yaxisside where gitemid=$gitemid"; return DBexecute($sql); } - function add_item_to_graph($graphid,$itemid,$color,$drawtype,$sortorder) + function add_item_to_graph($graphid,$itemid,$color,$drawtype,$sortorder,$yaxisside) { - $sql="insert into graphs_items (graphid,itemid,color,drawtype,sortorder) values ($graphid,$itemid,'$color',$drawtype,$sortorder)"; + $sql="insert into graphs_items (graphid,itemid,color,drawtype,sortorder) values ($graphid,$itemid,'$color',$drawtype,$sortorder,$yaxisside)"; $result=DBexecute($sql); return DBinsert_id($result,"graphs_items","gitemid"); } @@ -146,14 +146,14 @@ $host=get_host_by_hostid($row["hostid"]); while($row2=DBfetch($result2)) { - add_item_to_graph($row2["graphid"],$itemid,$graph_item["color"],$graph_item["drawtype"],$graph_item["sortorder"]); + add_item_to_graph($row2["graphid"],$itemid,$graph_item["color"],$graph_item["drawtype"],$graph_item["sortorder"],$graph_item["taxisside"]); info("Added graph element to graph ".$graph["name"]." of linked host ".$host["host"]); } if(DBnum_rows($result2)==0) { $graphid=add_graph($graph["name"],$graph["width"],$graph["height"],$graph["yaxistype"],$graph["yaxismin"],$graph["yaxismax"]); info("Added graph ".$graph["name"]." of linked host ".$host["host"]); - add_item_to_graph($graphid,$itemid,$graph_item["color"],$graph_item["drawtype"],$graph_item["sortorder"]); + add_item_to_graph($graphid,$itemid,$graph_item["color"],$graph_item["drawtype"],$graph_item["sortorder"],$graph_item["yaxisside"]); info("Added graph element to graph ".$graph["name"]." of linked host ".$host["host"]); } } |
