<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id,i,str2,yz
if trim(request("jleyz"))="ok" then
yz=request("yz")
id=trim(request("selectedid"))
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select yz from [jle_shop] where username='"&trim(str2(i))&"'"
rs.open sql,conn,1,3
if yz<>"" then
rs("yz")=0
else
if rs("yz")=0 then
rs("yz")=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=admin_shop_user.asp"">"
response.end
end if
%>

<%
jle=trim(request("jle"))
id=trim(request("selectedid"))
str2=split(id,",")
for i=0 to ubound(str2)
set rs=server.createobject("adodb.recordset")
sql="select vip from [jle_shop] where username='"&trim(str2(i))&"'"
rs.open sql,conn,1,3
if jle="vip" then
rs("vip")=1
else
rs("vip")=0
end if
rs.update
next
response.write "<script language=JavaScript>" & chr(13) & "alert('商家会员设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=admin_shop_user.asp"">"
%>