⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_test.asp

📁 汕头育新学校学籍与成绩管理平台是集学籍管理与成绩管理于一体的网络互动平台。功能强大、使用简单、高效速成、安全方便
💻 ASP
📖 第 1 页 / 共 4 页
字号:
  <TR class=h4_center>            
        <TD align=middle bgColor=#d2e7f4 height=30>找不到该班学生成绩,<a href="user_test.asp?b1=恢复&s_class=<%=Session("stat")%>">重新查找</a>,或<a href="logout.asp">退出</a>后再登陆。</TD></TR>                    
  <TR>                    
    <TD height=10></TD></TR></TBODY></TABLE>            
<%                
else              
dim rs1            
dim count1            
set rs1 = conn.execute("select * from stat where st_del=false order by st_id asc")            
%>            
<script language = "JavaScript">            
var onecount;                
onecount=0;                
subcat = new Array();                
        <%                
        count1 = 0                
        do while not rs1.eof                 
        %>                
subcat[<%=count1%>] = new Array("<%=(rs1("st_name"))%>","<%=rs1("st_class")%>","<%=rs1("st_id")%>");                
        <%                
        count1 = count1 + 1                
        rs1.movenext                
        loop                
        rs1.close                
        %>                
onecount=<%=count1%>;                
                
function changelocation(locationid)                
    {                
    document.form1.stat.length = 0;                 
                
    var locationid=locationid;                
    var i;                
    for (i=0;i < onecount; i++)                
        {                
            if (subcat[i][1] == locationid)                
            {                 
                document.form1.stat.options[document.form1.stat.length] = new Option(subcat[i][0], subcat[i][2]);                
            }                        
        }                
                        
    }                    
</script>                
<TABLE width=700 border=0>                        
  <TBODY>                        
  <TR>                 
  <TD vAlign=top width="5%"></TD>                       
    <TD vAlign=top align=middle width="90%">                        
      <TABLE cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width=630                         
      borderColorLight=#3a9ad3 border=1>                        
        <TBODY>                        
        <TR> <TD vAlign=center align=middle                         
          bgColor=#ebf4fa><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">                
    <tr>                 
      <form name="form1" method="post" action="user_test.asp?b1=确定">                
      <td bgcolor="#ebf4fa" align="center">
	   <% 	sql = "select y_id,y_name from years order by y_id desc"                                                                                                                          
					set rs1 = conn.execute(sql)                                                                                                                          
					if rs1.eof and rs1.bof then                                                                                                                          
						response.write "请先添加学年!"                                                                                                                          
						response.end                                                                                                                          
					else                                                                                                                          
					%>                                                                                                                          
 <select class=txBox_p id=years   maxLength=30 name=years>                                                                              
          <%do while not rs1.eof%>                                                                                                                          
          <option value="<%=rs1(0)%>"><%=(rs1(1))%></option>                                                                                                                          
          <%                                                                                                                          
        				rs1.movenext                                                                                                                          
       					loop                                                                                                                          
						end if                                                                                                                          
       					rs1.close                                                                                                                          
        				set rs1 = nothing                                                                                                                          
		 %>                                                                                                                          
        </select>                                                                                                                          
<%          		sql = "select c_id,c_name from class order by c_id asc"                                                                                                                                                                                                                                              
					set rs1 = conn.execute(sql)                                                                                                                                                                                                                                              
					if rs1.eof and rs1.bof then                                                                                                                                                                                                                                              
						response.write "请先添加班级!"                                                                                                                                                                                                                                              
						response.end                                                                                                                                                                                                                                              
					else                                                                                                                                                                                                                                              
					%>                                                                                                                      
		  <select name="classes" onChange="changelocation(document.form1.classes.options[document.form1.classes.selectedIndex].value)" size="1">                                                                                                                                                                                                                                              
          <option value="">选择班级</option>                                                                                                                                                                                                                                          
          <%do while not rs1.eof%>                                                                                                                                                                                                                                          

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -