"; ?> No permissions !"); show_footer(); exit; } ?> ".$row["name"].""); echo ""; for($c=0;$c<$row["cols"];$c++) { echo ""; } echo "\n"; } echo "
\n"; echo ""; echo "
"; { $screenitemid=0; $screengraphid=0; $graphid=0; $sysmapid=0; $itemid=0; $width=500; $height=100; $resource=@iif(isset($HTTP_GET_VARS["resource"]),$HTTP_GET_VARS["resource"],0); } $iresult=DBSelect("select * from screens_items where screenid=$screenid and x=$c and y=$r"); if(DBnum_rows($iresult)>0) { $resource=1; $irow=DBfetch($iresult); $screenitemid=$irow["screenitemid"]; $graphid=$irow["graphid"]; $width=$irow["width"]; $height=$irow["height"]; $found=1; } $iresult=DBSelect("select * from screens_graphs where screenid=$screenid and x=$c and y=$r"); if(DBnum_rows($iresult)>0) { $resource=0; $irow=DBfetch($iresult); $screengraphid=$irow["screengraphid"]; $itemid=$irow["itemid"]; $width=$irow["width"]; $height=$irow["height"]; } if(isset($HTTP_GET_VARS["x"])&&($HTTP_GET_VARS["x"]==$c)&&($HTTP_GET_VARS["y"]==$r)) { show_table2_header_begin(); echo "Screen item configuration"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; show_table2_v_delimiter(); echo "Resource"; show_table2_h_delimiter(); echo ""; if($resource == 0) { show_table2_v_delimiter(); echo "Graph name"; 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 (0,2) and i.status=0 order by h.host,i.description"); echo ""; } else { echo ""; } if($resource == 1) { show_table2_v_delimiter(); echo "Graph name"; show_table2_h_delimiter(); $result=DBselect("select graphid,name from graphs order by name"); echo ""; } else { echo ""; } if($resource == 2) { show_table2_v_delimiter(); echo "Map"; show_table2_h_delimiter(); $result=DBselect("select sysmapid,name from sysmaps order by name"); echo ""; } else { echo ""; } if($resource!=2) { show_table2_v_delimiter(); echo "Width"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Height"; show_table2_h_delimiter(); echo ""; } else { echo ""; echo ""; } show_table2_v_delimiter2(); echo ""; if(($screenitemid!=0)||($screengraphid!=0)) { echo ""; } echo ""; show_table2_header_end(); } else if($graphid!=0) { echo ""; } else if($itemid!=0) { echo ""; } else { echo "Empty"; } echo "
\n"; echo "
"; ?>