Exemplo n.º 1
0
            dmsg('拒绝成功', $forward);
        } else {
            $lists = $do->get_list('status=1' . $condition, $dorder[$order]);
            include tpl('news_reject', $module);
        }
        break;
    case 'delete':
        $itemid or msg('请选择新闻');
        isset($recycle) ? $do->recycle($itemid) : $do->delete($itemid);
        dmsg('删除成功', $forward);
        break;
    case 'restore':
        $itemid or msg('请选择新闻');
        $do->restore($itemid);
        dmsg('还原成功', $forward);
        break;
    case 'clear':
        $do->clear();
        dmsg('清空成功', $forward);
        break;
    case 'level':
        $itemid or msg('请选择新闻');
        $level = intval($level);
        $do->level($itemid, $level);
        dmsg('级别设置成功', $forward);
        break;
    default:
        $lists = $do->get_list('status=3' . $condition, $dorder[$order]);
        include tpl('news', $module);
        break;
}