"Header", TREE_ITEM_TYPE_GRAPH => "Graph", TREE_ITEM_TYPE_HOST => "Host" ); $host_group_types = array( 1 => "Graph Template", 2 => "Data Query Index" ); $item_sort_types = array( 1 => "Manual Ordering (No Sorting)", 2 => "Alphabetic Ordering", 3 => "Numeric Ordering" ); if (!empty($_GET["id"])) { $tree_item = db_fetch_row("select * from graph_tree_items where id=" . $_GET["id"]); if ($tree_item["local_graph_id"] > 0) { $db_type = 2; } if ($tree_item["title"] != "") { $db_type = 1; } if ($tree_item["host_id"] > 0) { $db_type = 3; } } if (isset($_GET["type_select"])) { $current_type = $_GET["type_select"]; }elseif (isset($db_type)) { $current_type = $db_type; }else{ $current_type = "1"; } html_start_box("Tree Items", "98%", $colors["header"], "3", "center", ""); print "