Example #1
0
    case 'search':
        //
        break;
    case 'show':
        //
        break;
    case 'del':
        //
        $ids = array();
        if (isset($id)) {
            if (is_array($id)) {
                $ids = $id;
            } else {
                $ids[] = $id;
            }
        } else {
            errorinfo('变量错误', '');
        }
        foreach ($ids as $key => $value) {
            $value = intval($value);
            if ($value <= 0) {
                errorinfo('变量错误', '');
            }
        }
        if ($ads->Del($ids)) {
            errorinfo('删除成功', '');
        } else {
            errorinfo('删除失败', '');
        }
        break;
}