<!--#include file="admin_start.asp"-->
<%
ids=trim(request("ids_list"))
rs.open "select sort_id,customer_reg_name,customer_reg_admin,customer_id,customer_open from jins_customer_list where customer_id in ("&ids&")",conn,1,3
do while not rs.eof 
	if request.form("customer_open_"&rs("customer_id"))<>"" then rs("customer_open")=int(request.form("customer_open_"&rs("customer_id")))
	if request.form("customer_reg_admin_"&rs("customer_id"))<>"" then 
	
		
		rs("customer_reg_admin")=int(request.form("customer_reg_admin_"&rs("customer_id")))
	
	end if
	rs.update
	if instr(1,rs("customer_reg_name"),"?_")>0 and request.form("customer_reg_admin")=1 then
	
		conn.execute("update jins_customer_list set sort_id="&rs("sort_id")&" where customer_reg_name='"&replace(rs("customer_reg_name"),"?_","")&"' ")
		conn.execute("delete from jins_customer_list where customer_id="&rs("customer_id")&" ")
	end if
	rs.movenext
loop
rs.close

MySys.error.info="用户列表设置成功！"
MySys.error.location="back"
MySys.error.suc()
%>
<!--#include file="admin_end.asp"-->
