diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-31 14:28:45 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-31 14:28:45 +0000 |
| commit | bfb41b23166d700a588f192bd0ad6e819595adba (patch) | |
| tree | 1c47a9bd2077047e9da96dfa5dfb3000a4d6c22c /frontends/php/chart2.php | |
| parent | 100ead984d87b8d482709fcea91e49d677dbb50b (diff) | |
| download | zabbix-bfb41b23166d700a588f192bd0ad6e819595adba.tar.gz zabbix-bfb41b23166d700a588f192bd0ad6e819595adba.tar.xz zabbix-bfb41b23166d700a588f192bd0ad6e819595adba.zip | |
- improved graphs, added selector of data calculation function (Eugene)
NOTE: don't finished historical graphs
git-svn-id: svn://svn.zabbix.com/trunk@2933 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 36574112..53c465e1 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -77,13 +77,11 @@ $graph->setYAxisMin($row["yaxismin"]); $graph->setYAxisMax($row["yaxismax"]); - $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"); + $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype,gi.yaxisside,gi.calc_fnc 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"); while($row=DBfetch($result)) { - $graph->addItem($row["itemid"], $row["yaxisside"]); - $graph->setColor($row["itemid"], $row["color"]); - $graph->setDrawtype($row["itemid"], $row["drawtype"]); + $graph->addItem($row["itemid"], $row["yaxisside"], $row["calc_fnc"], $row["color"], $row["drawtype"]); } $graph->Draw(); ?> |
