<!--#include file="admin_start.asp"-->
<%
select case request("kind")
case "list"
rs.open "select * from jins_object_sort ",conn,1,3
do while not rs.eof 
rs("sort_cache_open")=request.form("sort_cache_open_"&rs("sort_id"))
rs("sort_static_open")=request.form("sort_static_open_"&rs("sort_id"))
rs.update
rs.movenext
loop
rs.close

case "cache"
rs.open "select * from jins_object_sort where sort_id="&request("id")&" ",conn,1,3
rs("sort_cache_time")=request.form("sort_cache_time")
rs("sort_cache_num_pages")=request.form("sort_cache_num_pages")
rs.update
rs.close

case "static"
rs.open "select * from jins_object_sort where sort_id="&request("id")&" ",conn,1,3
rs("sort_static_time")=request.form("sort_static_time")
rs("sort_static_num_pages")=request.form("sort_static_num_pages")
rs("sort_static_size_files")=request.form("sort_static_size_files")
rs.update
rs.close

end select

MySys.error.info="网站缓存系统设置成功！"
MySys.error.location="back"
MySys.error.suc()
%>
<!--#include file="admin_end.asp"-->