break; case 'level': $itemid or msg('请选择商品'); $level = intval($level); $do->level($itemid, $level); dmsg('级别设置成功', $forward); break; case 'type': $itemid or msg('请选择商品'); $tid = intval($tid); array_key_exists($tid, $TYPE) or $tid = 0; $do->type($itemid, $tid); dmsg('类型设置成功', $forward); break; case 'recycle': $lists = $do->get_list('status=0' . $condition, $dorder[$order]); $menuid = 5; 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 = 4; include tpl('index', $module); } break; case 'expire': $lists = $do->get_list('status=4' . $condition);
$condition .= " AND sales<={$maxsales}"; } if ($minamount) { $condition .= " AND amount>={$minamount}"; } if ($maxamount) { $condition .= " AND amount<={$maxamount}"; } if ($mincomments) { $condition .= " AND comments>={$mincomments}"; } if ($maxcomments) { $condition .= " AND comments<={$maxcomments}"; } $timetype = strpos($MOD['order'], 'add') !== false ? 'add' : ''; $lists = $do->get_list($condition, $dorder[$order]); foreach ($lists as $k => $v) { $lists[$k]['mycat'] = $v['mycatid'] && isset($MTYPE[$v['mycatid']]) ? set_style($MTYPE[$v['mycatid']]['typename'], $MTYPE[$v['mycatid']]['style']) : $L['type_default']; } break; } if ($_userid) { $nums = array(); for ($i = 1; $i < 5; $i++) { $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE username='******' AND status={$i}"); $nums[$i] = $r['num']; } $nums[0] = count($MTYPE); $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table}_order WHERE seller='{$_username}'"); $nums[9] = $r['num']; }