예제 #1
0
    mosRedirect('index2.php', _NOT_AUTH);
}
require_once $mainframe->getPath('admin_html');
$task = mosGetParam($_REQUEST, 'task', array(0));
$cid = mosGetParam($_POST, 'cid', array(0));
if (!is_array($cid)) {
    $cid = array(0);
}
$menu_name = mosGetParam($_POST, 'menu_name', 'New Menu');
$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);
예제 #2
0
require_once $mainframe->getPath('admin_html');
$menu = stripslashes(strval(mosGetParam($_GET, 'menu', '')));
$type = stripslashes(strval(mosGetParam($_POST, 'type', '')));
$cid = mosGetParam($_POST, 'cid', '');
if (isset($cid[0])) {
    $cid[0] = stripslashes($cid[0]);
}
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);
예제 #3
0
     getOrderByID($jum);
     break;
 case 'editorderrecall':
     $jum = json_decode($_GET['data']);
     editorderrecall($jum);
     break;
 case 'getAllMenu':
     getAllMenu();
     break;
 case 'newMenu':
     $jum = json_decode($_GET['data']);
     newMenu($jum);
     break;
 case 'editMenu':
     $jum = json_decode($_GET['data']);
     editMenu($jum);
     break;
 case 'deleteMenu':
     $jum = json_decode($_GET['data']);
     deleteMenu($jum);
     break;
 case 'newSettle':
     $jum = json_decode($_GET['data']);
     newSettle($jum);
     break;
 case 'newBahan':
     $jum = json_decode($_GET['data']);
     newBahan($jum);
     break;
 case 'getAllBahan':
     getAllBahan();
예제 #4
0
파일: admin.php 프로젝트: selenith/plasmide
     $reponse = inversionComment();
 } else {
     if ($action == 'listeMenu') {
         $reponse = listerMenu();
     } else {
         if ($action == 'listeMods') {
             $reponse = listeMods();
         } else {
             if ($action == 'ajoutMenu') {
                 $reponse = ajoutMenu();
             } else {
                 if ($action == 'supprMenu') {
                     $reponse = supprMenu();
                 } else {
                     if ($action == 'editMenu') {
                         $reponse = editMenu();
                     } else {
                         if ($action == 'getConfig') {
                             $reponse = getConfig();
                         } else {
                             if ($action == 'validEditConf') {
                                 $reponse = validEditConf();
                             } else {
                                 if ($action == 'validConfAccueil') {
                                     $reponse = validConfAccueil();
                                 } else {
                                     if ($action == 'getComm') {
                                         $reponse = getComm();
                                     } else {
                                         if ($action == 'supprComm') {
                                             $reponse = supprComm();