$mycat_select = type_select('product-' . $_userid, 0, 'mycatid', $L['type_default'], $mycatid, '', $L['type_my']); $condition = "username='******' AND status={$status}"; if ($keyword) { $condition .= " AND keyword LIKE '%{$keyword}%'"; } if ($catid) { $condition .= $CAT['child'] ? " AND catid IN (" . $CAT['arrchildid'] . ")" : " AND catid={$catid}"; } if ($typeid >= 0) { $condition .= " AND typeid={$typeid}"; } if ($mycatid >= 0) { $condition .= " AND mycatid IN (" . type_child($mycatid, $MTYPE) . ")"; } $timetype = strpos($MOD['order'], 'add') !== false ? 'add' : ''; $lists = $do->get_list($condition, $MOD['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); } $head_title = lang($L['module_manage'], array($MOD['name'])); include template($MOD['template_my'] ? $MOD['template_my'] : 'my_' . $module, 'member');
break; case 'level': $itemid or msg('请选择' . $MOD['name']); $level = intval($level); $do->level($itemid, $level); dmsg('级别设置成功', $forward); break; case 'type': $itemid or msg('请选择' . $MOD['name']); $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': if (isset($refresh)) {