0) { $title = "Tree Item [graph]"; }else{ $title = "Tree Item [graph]"; } start_box($title, "", ""); ?>
Graph
Choose a graph from this list to add it to the tree. Round Robin Archive
Choose a round robin archive to control how this graph is displayed. Tree Item [header]"; }else{ $title = "Tree Item [header]"; } start_box($title, "", ""); DrawMatrixRowAlternateColorBegin($colors[form_alternate1],$colors[form_alternate2],0); ?> Header Title
If this item is a header, enter a title here.
0) { branch_up($order_key, 'graph_tree_view_items', 'order_key', ''); } } function item_movedown() { include_once('include/tree_functions.php'); global $args; $order_key = db_fetch_cell("SELECT order_key FROM graph_tree_view_items WHERE id=$args[tree_item_id]"); if ($order_key > 0) { branch_down($order_key, 'graph_tree_view_items', 'order_key', ''); } } /* --------------------- Tree Functions --------------------- */ function tree_save() { global $form; $save["id"] = $form["id"]; $save["name"] = $form["name"]; if (sql_Save($save, "graph_tree_view")) { raise_message(1); }else{ raise_message(2); header("Location: " . $_SERVER["HTTP_REFERER"]); exit; } } function tree_remove() { global $args, $config; if (($config["remove_verification"]["value"] == "on") && ($args[confirm] != "yes")) { include ('include/top_header.php'); DrawConfirmForm("Are You Sure?", "Are you sure you want to delete the tree '" . db_fetch_cell("select name from graph_tree_view where id=$args[id]") . "'?", getenv("HTTP_REFERER"), "tree.php?action=remove&id=$args[id]"); include ('include/bottom_footer.php'); exit; } if (($config["remove_verification"]["value"] == "") || ($args[confirm] == "yes")) { db_execute("delete from graph_tree_view where id=$args[id]"); } } function tree_edit() { include_once("include/tree_view_functions.php"); global $args, $colors, $cdef_item_types; start_box("Trees [edit]", "", ""); if (isset($args[id])) { $tree = db_fetch_row("select * from graph_tree_view where id=$args[id]"); }else{ unset($tree); } ?>
Name
A useful name for this graph tree.
Graph Trees", "", "tree.php?action=edit"); print ""; DrawMatrixHeaderItem("Name",$colors[header_text],1); DrawMatrixHeaderItem(" ",$colors[header_text],1); print ""; $trees = db_fetch_assoc("select * from graph_tree_view order by name"); if (sizeof($trees) > 0) { foreach ($trees as $tree) { DrawMatrixRowAlternateColorBegin($colors[alternate],$colors[light],$i); $i++; ?> Delete