'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=' . $_REQUEST['cdef_id']); break; case 'item_moveup': item_moveup(); header('Location: cdef.php?action=edit&id=' . $_REQUEST['cdef_id']); break; case 'item_remove': item_remove(); header('Location: cdef.php?action=edit&id=' . $_REQUEST['cdef_id']); break; case 'item_edit': top_header(); item_edit(); bottom_footer(); break; case 'remove': cdef_remove(); header ('Location: cdef.php'); break; case 'edit': top_header(); cdef_edit(); bottom_footer(); break; default: top_header(); cdef(); bottom_footer(); break; } /* -------------------------- Global Form Functions -------------------------- */ function draw_cdef_preview($cdef_id) { ?>
cdef=