"Delete", 2 => "Change Graph Template", 5 => "Change Host", 3 => "Duplicate", 4 => "Convert to Graph Template" ); /* set default action */ if (!isset($_REQUEST["action"])) { $_REQUEST["action"] = ""; } switch ($_REQUEST["action"]) { case 'save': form_save(); break; case 'actions': form_actions(); break; case 'graph_diff': include_once("./include/top_header.php"); graph_diff(); include_once("./include/bottom_footer.php"); break; case 'item': include_once("./include/top_header.php"); item(); include_once("./include/bottom_footer.php"); break; case 'graph_remove': graph_remove(); header("Location: graphs.php"); break; case 'graph_edit': include_once("./include/top_header.php"); graph_edit(); include_once("./include/bottom_footer.php"); break; default: include_once("./include/top_header.php"); graph(); include_once("./include/bottom_footer.php"); break; } /* -------------------------- Global Form Functions -------------------------- */ function add_tree_names_to_actions_array() { global $graph_actions; /* add a list of tree names to the actions dropdown */ $trees = db_fetch_assoc("select id,name from graph_tree order by name"); if (sizeof($trees) > 0) { foreach ($trees as $tree) { $graph_actions{"tr_" . $tree["id"]} = "Place on a Tree (" . $tree["name"] . ")"; } } } function draw_user_form_tabs() { ?>
| nowrap='nowrap' width='150' align='center' class='tab'> Graph Management | nowrap='nowrap' width='80' align='center' class='tab'> CDEFs | nowrap='nowrap' width='80' align='center' class='tab'> Colors | nowrap='nowrap' width='130' align='center' class='tab'> GPRINT Presets |