Example #1
0
        echo "<table valign='top'><tr>";
        echo "<td width='30%'valign='top'><span style='color:#ff0000;'><b>" . _AM_WANTDEL . "</b></span></td>";
        echo "<td width='3%'>\n";
        echo myTextForm("index.php?op=MyMenuDel&menuid={$menuid}&ok=1", _AM_YES);
        echo "</td><td>\n";
        echo myTextForm("index.php?op=MyMenuAdmin", _AM_NO);
        echo "</td></tr></table>\n";
        CloseTable();
    }
}
switch ($op) {
    case "MyMenuDel":
        MyMenuDel($menuid, $ok);
        break;
    case "MyMenuAdd":
        MyMenuAdd($xposition, $itemname, $indent, $margin, $itemurl, $bold, $membersonly, $status);
        break;
    case "MyMenuSave":
        MyMenuSave($menuid, $xposition, $itemname, $indent, $margin, $itemurl, $bold, $membersonly, $status);
        break;
    case "MyMenuAdmin":
        MyMenuAdmin();
        break;
    case "MyMenuEdit":
        MyMenuEdit($menuid);
        break;
    default:
        MyMenuAdmin();
        break;
}
xoops_cp_footer();
Example #2
0
if (!isset($op)) {
    $op = '';
}
if (isset($_POST)) {
    foreach ($_POST as $k => $v) {
        ${$k} = $v;
    }
}
if (isset($_GET)) {
    foreach ($_GET as $k => $v) {
        ${$k} = $v;
    }
}
switch ($op) {
    case "MyMenuAdd":
        MyMenuAdd($xposition, $itemname, $indent, $margintop, $marginbottom, $itemurl, $bold, $status);
        break;
    case "MyMenuSave":
        MyMenuSave($menuid, $xposition, $itemname, $indent, $margintop, $marginbottom, $itemurl, $bold, $status);
        break;
    case "MyMenuAdmin":
        MyMenuAdmin();
        break;
    case "MyMenuEdit":
        MyMenuEdit($menuid);
        break;
    case "ele_up":
        ele_up($id, $pos);
        break;
    case "ele_down":
        ele_down($id, $pos);