".S_NO_PERMISSIONS.""); show_footer(); exit; } $_REQUEST["hostid"]=@iif(isset($_REQUEST["hostid"]),$_REQUEST["hostid"],get_profile("web.latest.hostid",0)); update_profile("web.latest.hostid",$_REQUEST["hostid"]); update_profile("web.menu.config.last",$page["file"]); ?> ".$graph."", "".$graph.""); } else { $h1=S_SELECT_GRAPH_TO_DISPLAY; } $h1=S_GRAPHS_BIG.nbsp(" / ").$h1; $h2=S_GROUP." "; $h2=$h2.""; $h2=$h2." ".S_HOST." "; $h2=$h2.""; show_header2($h1,$h2,"
","
"); ?> setHeader(array(S_ID,S_NAME,S_WIDTH,S_HEIGHT,S_ACTIONS)); if(isset($_REQUEST["hostid"])&&($_REQUEST["hostid"]!=0)) { $result=DBselect("select distinct g.graphid,g.name,g.width,g.height from graphs g,items i,graphs_items gi where gi.itemid=i.itemid and g.graphid=gi.graphid and i.hostid=".$_REQUEST["hostid"]." order by g.name"); } else { $result=DBselect("select distinct g.graphid,g.name,g.width,g.height from graphs g order by g.name"); } while($row=DBfetch($result)) { if(!check_right("Graph","U",$row["graphid"])) { continue; } if(!isset($_REQUEST["hostid"])) { $sql="select * from graphs_items where graphid=".$row["graphid"]; $result2=DBselect($sql); if(DBnum_rows($result2)>0) continue; } $table->addRow(array( $row["graphid"], "".$row["name"]."", $row["width"], $row["height"], "Change" )); } $table->show(); ?> "; insert_graph_form(); ?>