ShowMsg("该用户已经是你的好友!", "index.php?uid=" . $uid); exit; } else { $inquery = "INSERT INTO `#@__member_friends` (`fid` , `floginid` , `funame` , `mid` , `addtime` , `ftype`)\n VALUES ('{$cfg_ml->M_ID}' , '{$cfg_ml->M_LoginID}' , '{$cfg_ml->M_UserName}' , '{$_vars['mid']}' , '{$addtime}' , '-1'); "; $dsql->ExecuteNoneQuery($inquery); ShowMsg("成功添加好友在黑名单!", "index.php?uid=" . $uid); exit; } } elseif ($action == 'introduce') { $dpl = new DedeTemplate(); $dpl->LoadTemplate(DEDEMEMBER . "/space/{$_vars['spacestyle']}/introduce.htm"); $dpl->display(); } elseif ($action == 'contact') { $dpl = new DedeTemplate(); $dpl->LoadTemplate(DEDEMEMBER . "/space/{$_vars['spacestyle']}/contact.htm"); $dpl->display(); } elseif ($action == 'products') { $mtype = isset($mtype) && is_numeric($mtype) ? $mtype : 0; if ($action == 'products') { $channel = 6; } include_once DEDEINC . '/arc.memberlistview.class.php'; include_once DEDEINC . '/channelunit.func.php'; $query = "Select arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,\n tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath FROM `#@__archives` arc\n left join `#@__arctype` tp on arc.typeid=tp.id\n where arc.mid='{$_vars['mid']}' and arc.channel='{$channel}' {$addqSql} order by arc.id desc"; $dlist = new MemberListview(); $dlist->pageSize = 12; $dlist->SetParameter('mtype', $mtype); $dlist->SetParameter('uid', $_vars['userid']); $dlist->SetParameter('action', $action); $dlist->SetTemplate(DEDEMEMBER . "/space/{$_vars['spacestyle']}/listproducts.htm"); $dlist->SetSource($query);