<!--#include file="admin_start.asp"-->
<%
if request("sort_ids")<>"" then
rs.open "select sort_id,sort_open,sort_grade,sort_description from sys_admin_sort where sort_id in ("&request("sort_ids")&") ",conn,1,3
do while not rs.eof 
	if request.form("sort_open_"&rs("sort_id"))<>"" then rs("sort_open")=int(request.form("sort_open_"&rs("sort_id")))
	if request.form("sort_grade_"&rs("sort_id"))<>"" and MySys.admin_grade-rs("sort_grade")>0 then 
	  if request.form("sort_grade_"&rs("sort_id"))-MySys.admin_grade<0 then rs("sort_grade")=int(request.form("sort_grade_"&rs("sort_id")))
	end if
	if request.form("sort_description_"&rs("sort_id"))<>"" then rs("sort_description")=request.form("sort_description__"&rs("sort_id"))
	rs.update
	rs.movenext
loop
rs.close
end if

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