<%@ Language=vbscript%>
<%
If Request.ServerVariables ("http_method") = "Get" Then
' If you request a page as a GET, set the page number to 1
Page=1
End If
Set Rec=server. CreateObject ("Adodb.recordset")
Rec. activeconnection= "Dsn=testsys"
Rec. Source= "SELECT * from Subinfo where teachid= '" & Session ("Teachid") & "'"
' Find out the records of all teachid= current teacher numbers in the schedule
Rec. Open, 1,3
If Request.ServerVariables ("http_method") = "POST" Then
Page=cint (Request.Form ("page"))
If Request.Form ("submit") = "Join" Then
' Request to join a new course
Rec. AddNew
Rec ("Teachid") =session ("Teachid")
Rec ("sub") =request.form ("SubName")
Rec ("Testtime") =request.form ("Testtime")
Rec ("Testnum") =request.form ("Testnum")
Rec. Update
End If
If Request.Form ("submit") = "Modify" Then
' Request to process a course change
Rec. Pagesize=1
' Set the page number to the current page
Rec. Absolutepage=page
' Change according to the content of the course submitted
Rec ("Teachid") =session ("Teachid")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service