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

<%
 
  strYears = request.cookies("nowxueqi") 
  louhao = TRIM( Request( "louhao" ) )
  shehao = TRIM( Request( "shehao" ) )
  strgrade = TRIM( Request( "strgrade" ) )
  strclass = TRIM( Request( "strclass" ) )
  studentname = TRIM( Request( "studentname" ) )
  
  
  

dim mysendto1
mysendto1=split(studentname,"|",-1,1)
for each sendtoinf in mysendto1
  			  
			  
	   str1=split(sendtoinf,".",-1,1)	  
			  
	   Set Rssave=Server.CreateObject("Adodb.Recordset")
       sqlsave="select * from students  where Years='"&request.cookies("nowxueqi")&"'  and  grade='"&strGrade&"' and  class='"&strClass&"'  and  Number='"&str1(0)&"'"
       Rssave.open sqlsave,conn,1,3
	%> 
	<%=sqlsave%>    <br><%=louhao%><%=shehao%><br>
	
	 <%
	   Rssave("ËÞÉáÂ¥Ãû³Æ")=louhao
	   Rssave("ËÞÉáºÅ")=shehao
	   Rssave("´²Î»ºÅ")=""	   
	  
       Rssave.update
       Rssave.close
next

	 response.redirect   "SheYuan.asp?louhao="&louhao&"&shehao="&shehao
%>

<%=studentname%>
<%=louhao%>
<%=strgrade%>