$type = mosGetParam($_POST, 'type', ''); switch ($task) { case "new": editMenu($option, 0); break; case "edit": editMenu($option, $cid[0]); break; case "copyconfirm": copyConfirm($option, $cid); break; case "savemenu": saveMenu($option); break; case "deleteconfirm": deleteconfirm($option, $cid); break; case "deletemenu": deleteMenu($option, $cid, $type); break; case "copymenu": copyMenu($option, $cid, $menu_name, $type); break; case "cancel": cancelMenu($option); break; default: showMenu($option); break; } /**
} switch ($task) { case 'new': editMenu($option, ''); break; case 'edit': if (!$menu) { $menu = $cid[0]; } editMenu($option, $menu); break; case 'savemenu': saveMenu(); break; case 'deleteconfirm': deleteconfirm($option, $cid[0]); break; case 'deletemenu': deleteMenu($option, $cid, $type); break; case 'copyconfirm': copyConfirm($option, $cid[0]); break; case 'copymenu': copyMenu($option, $cid, $type); break; case 'cancel': cancelMenu($option); break; default: showMenu($option);