Beispiel #1
0
if (!empty($_GET['edit_third_lvl_field']) && !empty($_GET['name'])) {
    $cataObj = new Cores\Models\CataModel();
    $result = $cataObj->modify($_GET['edit_third_lvl_field'], $_GET['name']);
    print_r(json_encode($result));
}
if (!empty($_GET['cata_rd_lve_del'])) {
    $cataObj = new Cores\Models\CataModel();
    print_r(json_encode($cataObj->delete($_GET['cata_rd_lve_del'])));
}
if (!empty($_GET['action']) && !empty($_GET['rid'])) {
    $rid = $_GET['rid'];
    switch ($_GET['action']) {
        case 'edit_comments_confirm':
            if (!empty($_GET['content'])) {
                $commentsObj = new Cores\Models\CommentsModel();
                $result = $commentsObj->modify($rid, $_GET['content']);
                echo $result;
            } else {
                echo -1;
            }
            break;
        default:
            break;
    }
}
if (!empty($_GET['action']) && !empty($_GET['remarkId'])) {
    $remarkId = $_GET['remarkId'];
    switch ($_GET['action']) {
        case 'edit_remarkId_confirm':
            if (!empty($_GET['content'])) {
                $commentsObj = new Cores\Models\RemarksModel();