Exemple #1
0
    }
}
switch ($action) {
    case 'delete':
        $itemid or msg('请选择粉丝');
        isset($recycle) ? $do->recycle($itemid) : $do->delete($itemid);
        dmsg('删除成功', $forward);
        break;
    case 'cancel':
        $itemid or msg('请选择粉丝');
        $do->check($itemid, 2);
        dmsg('取消成功', $forward);
        break;
    case 'restore':
        $itemid or msg('请选择粉丝');
        $do->restore($itemid);
        dmsg('还原成功', $forward);
        break;
    case 'clear':
        $do->clear();
        dmsg('清空成功', $forward);
        break;
    case 'recycle':
        $lists = $do->get_list('status=0' . $condition, $dorder[$order]);
        $menuid = 3;
        include tpl('fans', $module);
        break;
    case 'reject':
        if ($itemid && !$psize) {
            $do->reject($itemid);
            dmsg('拒绝成功', $forward);