summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-16 10:06:44 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-16 10:06:44 +0000
commit96fbc177dee3d7275d3b4b7ec0f39ee228616bac (patch)
tree1a2e9d116f16d946d899a3caef70bc48ec1a7c81 /frontends/php/chart2.php
parent53538e4a4fb3b59a0e52555f19627f932b9c66f0 (diff)
downloadzabbix-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/chart2.php')
-rw-r--r--frontends/php/chart2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 6c1b5c5e..7e7a62df 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -67,13 +67,14 @@
$graph->setYAxisMin(DBget_field($result,0,4));
$graph->setYAxisMax(DBget_field($result,0,5));
- $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_REQUEST["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
+ $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype,gi.yaxisside from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_REQUEST["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
for($i=0;$i<DBnum_rows($result);$i++)
{
$graph->addItem(DBget_field($result,$i,0));
$graph->setColor(DBget_field($result,$i,0), DBget_field($result,$i,2));
$graph->setDrawtype(DBget_field($result,$i,0), DBget_field($result,$i,4));
+ $graph->setYAxisSide(DBget_field($result,$i,0), DBget_field($result,$i,5));
}
$graph->Draw();