<!--#include file="admin_start.asp"-->
<%
index=int(request("index"))

if index=1 then
object_open="object_open"
object_num="object_num"
end if

if index=2 then
object_open="object_open_temp"
object_num="object_num_temp"
end if 

object_ids=trim(request.form("object_ids"))
if object_ids<>"" then
	rs.open "select object_id,"&object_open&","&object_num&",object_insert from jins_object_list where object_id in ("&object_ids&") ",conn,1,3
	do while not rs.eof 
		if request.form("object_open_"&rs("object_id"))<>"" then rs(object_open)=int(request.form("object_open_"&rs("object_id")))
		if request.form("object_num_"&rs("object_id"))<>"" then rs(object_num)=int(request.form("object_num_"&rs("object_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"-->
