<!--#include file="conn.asp"-->
<%
if session("id")="" or session("ac")="" or session("user")<>"1" then
response.write "<script language=JavaScript>" & chr(13) & "alert('登录超时!!请重新登录后填写本页内容！');"&"window.location.href = 'index.asp'"&" </script>"
Response.End
end if


if isdate(request("picdate"))=false then
response.write "<script language=JavaScript>" & chr(13) & "alert('日期格式不正确！');" & "history.back()" & "</script>" 
Response.End
end if

sql="update in_user set pic='"&request("pic")&"',picdate='"&request("picdate")&"',picdays='"&request("picdays")&"',morepic='"&request("morepic")&"' where id="&clng(session("id"))
rs.open sql,conn,1,1
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('成功设置！！')</script>" %>
