<!--#include file="admin_start.asp"-->
<%
dim object_id

object_id=trim(request("id"))

if not MySys.check.isInteger(object_id) then
MySys.error.info="请选择您要设置的栏目！"
MySys.error.location="back"
MySys.error.err()
end if

'///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if int(request.form("object_style_default"))=0 then

rs.open "select * from jins_object_style where object_id ="&object_id&" ",conn,1,3
if not rs.eof then

rs("style_table")=request.form("style_table")
rs("style_link")=request.form("style_link")
rs("style_hover")=request.form("style_hover")
rs("style_visited")=request.form("style_visited")
rs("style_input")=request.form("style_input")
rs("style_property")=request.form("style_property")

else

rs.addnew
rs("object_id")=object_id
rs("style_table")=request.form("style_table")
rs("style_link")=request.form("style_link")
rs("style_hover")=request.form("style_hover")
rs("style_visited")=request.form("style_visited")
rs("style_input")=request.form("style_input")
rs("style_property")=request.form("style_property")

end if

rs.update
rs.close

end if
'///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
rs.open "select * from jins_object_list where object_id ="&object_id&" ",conn,1,3
rs("object_style_default")=int(request.form("object_style_default"))
rs.update
rs.close

MySys.error.info="栏目样式设置成功！"
MySys.error.location="back"
MySys.error.suc()
%><!--#include file="admin_end.asp"-->