"Delete", 2 => "Duplicate" ); /* set default action */ if (!isset($_REQUEST["action"])) { $_REQUEST["action"] = ""; } switch ($_REQUEST["action"]) { case 'save': form_save(); break; case 'actions': form_actions(); break; case 'item_movedown': item_movedown(); header("Location: cdef.php?action=edit&id=" . $_GET["cdef_id"]); break; case 'item_moveup': item_moveup(); header("Location: cdef.php?action=edit&id=" . $_GET["cdef_id"]); break; case 'item_remove': item_remove(); header("Location: cdef.php?action=edit&id=" . $_GET["cdef_id"]); break; case 'item_edit': include_once("./include/top_header.php"); item_edit(); include_once("./include/bottom_footer.php"); break; case 'remove': cdef_remove(); header ("Location: cdef.php"); break; case 'edit': include_once("./include/top_header.php"); cdef_edit(); include_once("./include/bottom_footer.php"); break; default: include_once("./include/top_header.php"); cdef(); include_once("./include/bottom_footer.php"); break; } /* -------------------------- Global Form Functions -------------------------- */ function draw_cdef_preview($cdef_id) { global $colors; ?>
cdef=