<!--#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") 
   xinji=request("xinji")
   pingrendate=request("pingrendate")
  
   
   
   set RsSave=server.createobject("adodb.recordset")
   
       if id="" then 
          RsSavesql="select * from RenShiPingRen where (id is null)" 
          RsSave.open RsSavesql,conn,1,3
          RsSave.addnew
	   else
	      set RsSave=server.createobject("adodb.recordset")
          RsSavesql="select * from RenShiPingRen where   id='"&ID&"'"
          RsSave.open RsSavesql,conn,1,3  
	   end if 

       RsSave("姓名")=teacher
	   RsSave("薪级级别")=xinji
	   RsSave("聘任时间")=pingrendate
	  

       RsSave.update
       RsSave.close
	  
  
	   set RsSave=nothing  
	   conn.close
	   set conn=nothing
	   response.redirect   "PingRen.asp?teacher="&teacher
%>
<%=teacher%><br><%=qizhidate%><br><%=danwei%>