예제 #1
0
    case 'recycle':
        $lists = $do->get_list('status=0' . $condition, $dorder[$order]);
        $menuid = 4;
        include tpl('index', $module);
        break;
    case 'reject':
        if ($itemid && !$psize) {
            $do->reject($itemid);
            dmsg('拒绝成功', $forward);
        } else {
            $lists = $do->get_list('status=1' . $condition, $dorder[$order]);
            $menuid = 3;
            include tpl('index', $module);
        }
        break;
    case 'check':
        if ($itemid && !$psize) {
            $do->check($itemid);
            dmsg('审核成功', $forward);
        } else {
            $lists = $do->get_list('status=2' . $condition, $dorder[$order]);
            $menuid = 2;
            include tpl('index', $module);
        }
        break;
    default:
        $lists = $do->get_list('status=3' . $condition, $dorder[$order]);
        $menuid = 1;
        include tpl('index', $module);
        break;
}