<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id,i,str2
id=trim(request("selectedid"))
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select vip from [com] where username='"&trim(str2(i))&"'"
rs.open sql,conn,1,3
if request("del")="ok" then
rs("vip")=0
else
if rs("vip")=0 then
rs("vip")=1
end if
end if
rs.update
next
response.write "<script language=JavaScript>" & chr(13) & "alert('特约商户设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=comlist.asp"">"
%>