$itemid or msg('请选择' . $MOD['name']); $do->restore($itemid); dmsg('还原成功', $forward); break; case 'clear': $do->clear(); dmsg('清空成功', $forward); break; case 'level': $itemid or msg('请选择' . $MOD['name']); $level = intval($level); $do->level($itemid, $level); dmsg('级别设置成功', $forward); break; 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) {
$areaid = $cityid; if ($kw) { $title = $kw; } $item = array(); } break; default: $status = isset($status) ? intval($status) : 3; in_array($status, array(1, 2, 3)) or $status = 3; $condition = "username='******'"; $condition .= " AND status={$status}"; if ($keyword) { $condition .= " AND keyword LIKE '%{$keyword}%'"; } if ($catid) { $condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}"; } $timetype = strpos($MOD['order'], 'edit') === false ? 'add' : ''; $lists = $do->get_list($condition, $MOD['order']); break; } if ($_userid) { $nums = array(); for ($i = 1; $i < 4; $i++) { $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE username='******' AND status={$i}"); $nums[$i] = $r['num']; } } $head_title = lang($L['module_manage'], array($MOD['name'])); include template('my_' . $module, 'member');