<!--#include file="../checkLogin.asp"-->
<!--#include file="../SQLconn.asp"-->

<%
  strId=request("id")
  fenlei = TRIM( Request( "fenlei" ) )
  strYears =Request( "strYears" )
  strGrade = TRIM( Request( "strGrade" ) )
  strClass = TRIM( Request( "strClass" ) )
  studentname = TRIM( Request( "studentname" ) )
  strrizhitype = TRIM( Request( "strrizhitype" ) )
  strmemo = TRIM( Request( "memo" ) )
  fenshu = TRIM( Request( "fenshu" ) )
  rizhidate=Request("rizhidate")

   
   set Rssave=server.createobject("adodb.recordset")
       Rssavesql="select * from banwurizhi where  id='"&strId& "'"
       Rssave.open Rssavesql,conn,1,3
	   
       Rssave("rizhidate")=rizhidate
       Rssave("rizhiType")=strrizhitype
	   Rssave("Grade")=strGrade
	   Rssave("class")=strClass
       Rssave("studentname")=studentname 
	   Rssave("shuoming")=strmemo
	   Rssave("fenshu")=fenshu
	   Rssave("updatetime")=now
	   Rssave("teachers")=Rssave("teachers")&"->"&request.cookies("tname")
       strip=Request.ServerVariables("REMOTE_ADDR")
       Rssave("upip")=strip
	  
	  
       Rssave.update
       Rssave.close
	  response.redirect   "AddRiZhiList.asp?fenlei="&fenlei&"&strGrade="&strGrade&"&strclass="&strClass&"&strrizhitype="&strrizhitype&"&rizhidate="&rizhidate
%>
<%=fenlei%><%=strGrade%>
