"Delete", 2 => "Change Graph Template", 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_remove': item_remove(); header ("Location: graphs.php?action=item&id=" . $_GET["id"]); break; case 'item_edit': include_once ("include/top_header.php"); item_edit(); include_once ("include/bottom_footer.php"); break; case 'item': include_once ("include/top_header.php"); item(); include_once ("include/bottom_footer.php"); break; case 'item_movedown': item_movedown(); header ("Location: " . $_SERVER["HTTP_REFERER"]); break; case 'item_moveup': item_moveup(); header ("Location: " . $_SERVER["HTTP_REFERER"]); 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 draw_graph_form_select($main_action) { global $colors; ?>