} dmsg($L['op_del_success'], $forward); break; default: $status = isset($status) ? intval($status) : 3; in_array($status, array(1, 2, 3)) or $status = 3; $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1; $type_select = type_select($TYPE, 0, 'typeid', $L['default_type'], $typeid, '', $L['all_type']); $condition = "username='******' AND status={$status}"; if ($keyword) { $condition .= " AND title LIKE '%{$keyword}%'"; } if ($typeid > -1) { $condition .= " AND typeid={$typeid}"; } $lists = $do->get_list($condition); foreach ($lists as $k => $v) { $lists[$k]['type'] = $lists[$k]['typeid'] && isset($TYPE[$lists[$k]['typeid']]) ? set_style($TYPE[$lists[$k]['typeid']]['typename'], $TYPE[$lists[$k]['typeid']]['style']) : $L['default_type']; } $head_title = $L['news_title']; break; } $nums = array(); $limit_used = 0; for ($i = 1; $i < 4; $i++) { $r = $db->get_one("SELECT COUNT(*) AS num FROM {$DT_PRE}news WHERE username='******' AND status={$i}"); $nums[$i] = $r['num']; $limit_used += $r['num']; } $nums[0] = count($TYPE); $limit_free = $MG['news_limit'] && $MG['news_limit'] > $limit_used ? $MG['news_limit'] - $limit_used : 0;
if ($db->affected_rows($result)) { while ($r = $db->fetch_array($result)) { $itemid = $r['itemid']; $do->update($itemid); } $itemid += 1; } else { $itemid = $fid + $num; } } else { dmsg('更新成功', "?moduleid={$moduleid}&file={$file}"); } msg('ID从' . $fid . '至' . ($itemid - 1) . '更新成功' . progress($sid, $fid, $tid), "?moduleid={$moduleid}&file={$file}&action={$action}&sid={$sid}&fid={$itemid}&tid={$tid}&num={$num}"); break; case 'recycle': $lists = $do->get_list('status=0' . $condition, $dorder[$order]); include tpl('news_recycle', $module); break; case 'check': if ($itemid && !$psize) { $do->check($itemid); dmsg('审核成功', $forward); } else { $lists = $do->get_list('status=2' . $condition, $dorder[$order]); include tpl('news_check', $module); } break; case 'reject': if ($itemid && !$psize) { $do->reject($itemid); dmsg('拒绝成功', $forward);