".S_NO_PERMISSIONS.""); show_page_footer(); exit; } ?> "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; show_table_header(S_DISPLAYED_PARAMETERS_BIG); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $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=".$_REQUEST["graphid"]." and h.hostid=i.hostid order by gi.sortorder"; $result=DBselect($sql); $col=0; while($row=DBfetch($result)) { if($col++%2==0) { echo ""; } else { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
".S_SORT_ORDER."".S_HOST."".S_PARAMETER."".S_TYPE."".S_COLOR."".S_ACTIONS."
".$row["sortorder"]."".$row["host"]."".item_description($row["description"],$row["key_"])."".get_drawtype_description($row["drawtype"])."".$row["color"].""; echo "".S_CHANGE.""; echo " - "; echo "".S_UP.""; echo " - "; echo "".S_DOWN.""; echo "
"; ?> "; echo ""; if(isset($_REQUEST["gitemid"])) { $sql="select itemid,color,drawtype,sortorder,yaxisside from graphs_items". " where gitemid=".$_REQUEST["gitemid"]; $result=DBselect($sql); $row=DBfetch($result); $itemid=$row["itemid"]; $color=$row["color"]; $drawtype=$row["drawtype"]; $sortorder=$row["sortorder"]; $yaxisside=$row["yaxisside"]; } else { $sortorder=0; $yaxisside=1; } show_form_begin("graph.item"); echo S_NEW_ITEM_FOR_THE_GRAPH; show_table2_v_delimiter(); echo "
"; echo ""; if(isset($_REQUEST["gitemid"])) { echo ""; } echo S_PARAMETER; show_table2_h_delimiter(); $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 ""; show_table2_v_delimiter(); echo S_TYPE; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo S_YAXIS_SIDE; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo S_COLOR; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo nbsp(S_SORT_ORDER_1_100); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($itemid)) { echo ""; echo ""; } show_table2_header_end(); ?>