From e5ef8796293a7d36face4704fb59831e1a3d4f47 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 19 Sep 2005 16:57:19 +0000 Subject: - added support of macros $1,..., $9 (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@2061 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/graph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'frontends/php/graph.php') diff --git a/frontends/php/graph.php b/frontends/php/graph.php index 3584f112..6cbcc77b 100644 --- a/frontends/php/graph.php +++ b/frontends/php/graph.php @@ -120,7 +120,7 @@ echo "".S_ACTIONS.""; echo ""; - $sql="select i.itemid,h.host,i.description,gi.gitemid,gi.color,gi.drawtype,gi.sortorder from hosts h,graphs_items gi,items i where i.itemid=gi.itemid and gi.graphid=".$_GET["graphid"]." and h.hostid=i.hostid order by gi.sortorder"; + $sql="select i.itemid,h.host,i.description,gi.gitemid,gi.color,gi.drawtype,gi.sortorder,i.key_ from hosts h,graphs_items gi,items i where i.itemid=gi.itemid and gi.graphid=".$_GET["graphid"]." and h.hostid=i.hostid order by gi.sortorder"; $result=DBselect($sql); $col=0; while($row=DBfetch($result)) @@ -130,7 +130,7 @@ echo "".$row["sortorder"].""; echo "".$row["host"].""; - echo "".$row["description"].""; + echo "".item_description($row["description"],$row["key_"]).""; echo "".get_drawtype_description($row["drawtype"]).""; echo "".$row["color"].""; echo ""; @@ -176,12 +176,12 @@ echo S_PARAMETER; show_table2_h_delimiter(); - $result=DBselect("select h.host,i.description,i.itemid from hosts h,items i where h.hostid=i.hostid and h.status in(".HOST_STATUS_MONITORED.",".HOST_STATUS_TEMPLATE.") and i.status=".ITEM_STATUS_ACTIVE." order by h.host,i.description"); + $result=DBselect("select h.host,i.description,i.itemid,i.key_ from hosts h,items i where h.hostid=i.hostid and h.status in(".HOST_STATUS_MONITORED.",".HOST_STATUS_TEMPLATE.") and i.status=".ITEM_STATUS_ACTIVE." order by h.host,i.description"); echo "