YOU DO NOT HAVE RIGHTS TO CHANGE GRAPH SETTINGS"; exit; } $settings = db_fetch_assoc("select * from settings_graphs where userid=$current_user_id"); if (getenv("HTTP_REFERER") == "") { $referer = $HTTP_REFERER; }else{ $referer = getenv("HTTP_REFERER"); } DrawFormHeader("Graph Preview Settings","",false); DrawFormItem("Height","The height of graphs created in preview mode."); DrawFormItemTextBox("Height",$settings[Height],"100",""); DrawFormItem("Width","The width of graphs created in preview mode."); DrawFormItemTextBox("Width",$settings[Width],"300",""); DrawFormItem("Timespan","The amount of time to represent on a graph created in preview mode (0 uses auto)."); DrawFormItemTextBox("TimeSpan",$settings[TimeSpan],"60000",""); DrawFormItem("Default RRA","The default RRA to use when displaying graphs in preview mode."); DrawFormItemDropdownFromSQL("RRAID",db_fetch_assoc("select * from rrd_rra order by name"),"Name","ID",$settings[RRAID],"",""); DrawFormItem("Columns","The number of columns to display graphs in using preview mode."); DrawFormItemTextBox("ColumnNumber",$settings[ColumnNumber],"2",""); DrawFormItem("Page Refresh","The number of seconds between automatic page refreshes."); DrawFormItemTextBox("PageRefresh",$settings[PageRefresh],"300",""); DrawPlainFormHeader("List Settings"); DrawFormItem("View Settings","Options that govern how the graphs are displayed."); DrawFormItemRadioButton("ListViewType", $settings[ListViewType], "1", "Show a 4 column list of each graph and its RRA.", "1"); DrawFormItemRadioButton("ListViewType", $settings[ListViewType], "2", "Show a 1 column list of each graph.", "1"); DrawPlainFormHeader("Hierarchical Settings"); DrawFormItem("Default Graph Hierarchy ","The default graph hierarchy to use when displaying graphs in tree mode."); DrawFormItemDropdownFromSQL("TreeID",db_fetch_assoc("select * from viewing_trees order by Title"),"Title","ID",$settings[TreeID],"",""); DrawFormItem("View Settings","Options that govern how the graphs are displayed."); DrawFormItemRadioButton("ViewType", $settings[ViewType], "1", "Show a preview of the graph.", "1"); DrawFormItemRadioButton("ViewType", $settings[ViewType], "2", "Show a text-based listing of the graph.", "1"); DrawFormSaveButton(); DrawFormItemHiddenIDField("ID",$settings[ID]); DrawFormItemHiddenIDField("referer", $referer); DrawFormFooter(); include_once ("include/bottom_footer.php"); break; } ?>