<!--#include file="conn_reg.asp"-->
<%
if Request.Cookies("id")="" or Request.Cookies("ac")="" or Request.Cookies("user")<>"1" then
response.write "<script language=JavaScript>" & chr(13) & "alert('登录超时!!请重新登录后填写本页内容！');"&"window.location.href = 'index.asp'"&" </script>"
Response.End
end if
if trim(request("sex"))="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('请选择性别！');" & "history.back()" & "</script>" 
Response.End
end if

if request("hka")="0" then
response.write "<script language=JavaScript>" & chr(13) & "alert('户口所在地不能为空！');" & "history.back()" & "</script>" 
Response.End
end if
if request("hkb")="0" then
response.write "<script language=JavaScript>" & chr(13) & "alert('目前所在地不能为空！');" & "history.back()" & "</script>" 
Response.End
end if
if request("edu")="0" then
response.write "<script language=JavaScript>" & chr(13) & "alert('教育程度不能为空！');" & "history.back()" & "</script>" 
Response.End
end if
if request("zye")="0" then
response.write "<script language=JavaScript>" & chr(13) & "alert('专业类别不能为空！');" & "history.back()" & "</script>" 
Response.End
end if

if trim(request("school"))="" then
response.write "<script language=JavaScript>" & chr(13) & "alert('在读学校不能为空！');" & "history.back()" & "</script>" 
Response.End
end if


sql="update in_user set code='"&request("code")&"',bdate='"&request("bdate")&"',sex='"&request("sex")&"',guoji='"&request("guoji")&"',shenggao='"&request("shenggao")&"',tizhong='"&request("tizhong")&"',minzu='"&request("minzu")&"',marry='"&request("marry")&"',hka='"&request("hka")&"',hkb='"&request("hkb")&"',edu='"&request("edu")&"',zye='"&request("zye")&"',zhuanyen1='"&request("zhuanyen1")&"',zyes='"&request("zyes")&"',zhuanyen2='"&request("zhuanyen2")&"',school='"&request("school")&"',bydate='"&request("bydate")&"',zzmm='"&request("zzmm")&"',zcheng='"&request("zcheng")&"',jyjl='"&request("jyjl")&"' where id="&clng(Request.Cookies("id"))
rs.open sql,conn,1,1
set rs=nothing
set conn=nothing
response.redirect "in_control2.asp"%>
