<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->
<html>
<head>
<title>保存</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
</head>

<% id=request("id")            
   teacher=request("teacher") 
   sex=request("sex") 
   chushengdate=request("chushengdate")
   minzu=request("minzu")
   zhengzhi=request("zhengzhi")
   rudangdate=request("rudangdate")
   
   
   set RsSave=server.createobject("adodb.recordset")
   
      
	      set RsSave=server.createobject("adodb.recordset")
          RsSavesql="select * from RenShiXinXi where   姓名='"&teacher&"'"
          RsSave.open RsSavesql,conn,1,3  
	      if RsSave.eof and  RsSave.bof then        
             RsSave.addnew
	      end if 

       RsSave("姓名")=teacher
	   RsSave("性别")=sex
	   RsSave("出生日期")=chushengdate
	   RsSave("民族")=minzu
	   RsSave("政治面貌")=zhengzhi
	   RsSave("入党日期")=rudangdate
	  

       RsSave.update
       RsSave.close
	  
  
	   set RsSave=nothing  
	   conn.close
	   set conn=nothing
	   response.redirect   "ZiLiao.asp?teacher="&teacher
%>
<%=teacher%><br><%=sex%><br><%=chushengdate%>