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


<%   
    nowxueqi=Right(request.cookies("nowxueqi"),4)   'request.cookies("nowxueqi") 
    strGrade = TRIM(Request("grade"))
	strsubject = TRIM(Request("subject"))
    bianhao=request("bianhao")
	mingcheng= TRIM(request("mingcheng"))
	zhangci=request("zhangci")
	strid=request("id")
    zhangming= TRIM(Request("zhangming"))

set Rssave=server.createobject("adodb.recordset")
Rssavesql="select * from Subjectvar where (id is null)" 
Rssave.open Rssavesql,conn,1,3
    Rssave.addnew
	Rssave("编号")=bianhao
    Rssave("类别")="节次"
    Rssave("科目")=strsubject
	Rssave("年级")=strGrade
	Rssave("学期")=nowxueqi
	Rssave("章次")=zhangci
	Rssave("节次")=mingcheng
	Rssave("设置人")=request.cookies("tname")
    Rssave.update


Rssave.close
response.redirect  "varJie.asp?subject="&strsubject&"&grade="&strGrade&"&zhangci="&zhangci&"&zhangming="&zhangming
 
 %>


