diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-06-01 13:44:55 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-06-01 13:44:55 +0000 |
| commit | 6dd15b8a41d705ab1d0735a053a697f23b08d9b5 (patch) | |
| tree | 4591b95c92c34ae8251f700eb7e5b54b8d87c898 /frontends/php/chart2.php | |
| parent | 15eaca904b14e5396f766ef2d7979707e1090f7f (diff) | |
| download | zabbix-6dd15b8a41d705ab1d0735a053a697f23b08d9b5.tar.gz zabbix-6dd15b8a41d705ab1d0735a053a697f23b08d9b5.tar.xz zabbix-6dd15b8a41d705ab1d0735a053a697f23b08d9b5.zip | |
- developed aggrgated graphs (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2935 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 53c465e1..a39a21f6 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -77,11 +77,19 @@ $graph->setYAxisMin($row["yaxismin"]); $graph->setYAxisMax($row["yaxismax"]); - $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"); + $result=DBselect("select gi.*,i.description,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"); while($row=DBfetch($result)) { - $graph->addItem($row["itemid"], $row["yaxisside"], $row["calc_fnc"], $row["color"], $row["drawtype"]); + $graph->addItem( + $row["itemid"], + $row["yaxisside"], + $row["calc_fnc"], + $row["color"], + $row["drawtype"], + $row["type"], + $row["periods_cnt"] + ); } $graph->Draw(); ?> |
