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

📄 search_ach.asp

📁 一个学生管理系统 ASP+ACCE
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
	response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
	response.end
end if
%>

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>成绩高级查询系统</title>
<link rel="stylesheet" href="style.css">
</head>

<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
  <center>
<table width="738" height="35">
  <td background="images/top_1.jpg">&nbsp; <a href="ach_manager.asp">考试成绩列表</a> 
    | <a href="search_st.asp">添加考试成绩</a> | <a href="search_ach.asp">成绩高级查询</a> 
    | <a href="ach_top.asp">单科成绩排行榜</a> | <a href="total_top.asp">总分成绩排行榜</a> 
    | <a href="all.asp">考试成绩分析</a> | <a href="ach_email.asp">用E-Mail发成绩单</a></table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" width="400" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%"></td>
    </tr>
    <tr>
      <td width="100%">
        <form method="POST" action="search_ach_1.asp">
          <table border="1" width="100%" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">按学号、课程、考次查询</td>
            </tr>
            <tr>
              <td width="33%" align="center">学号</td>
              <td width="33%" align="center">课程</td>
              <td width="34%" align="center">所属考次</td>
            </tr>
            <tr>
              <td width="33%" align="center"><input type="text" name="user_number" size="15"></td>
              <td width="33%" align="center">
              <%
              set rs=server.createobject("adodb.recordset")
              sql="select * from subject"
              rs.open sql,conn,1,1
              %>
              <select size="1" name="subject">
              <%do while not rs.eof%>
              <option value="<%=rs("subject")%>"><%=rs("subject")%></option>
              <%rs.movenext%>
              <%loop%>
              <%rs.close%>
                </select></td>
  </center>
            <td width="34%" align="center">
            <%
            set rs1=server.createobject("adodb.recordset")
            sql1="select * from testno"
            rs1.open sql1,conn,1,1
            %>
              <p align="center"><select size="1" name="testno">
              <%do while not rs1.eof%>
              <option value="<%=rs1("testno")%>"><%=rs1("testno")%></option>
              <%rs1.movenext%>
              <%loop%>
              <%rs1.close%>
              </select></td>
          </tr>
  <tr>
    <td width="100%" colspan="3" align="center">
      <p align="right"><input type="submit" value="提交" name="B1"></p>
    </td>
  </tr>
          </table>
      </form>
  <center>
        </center>
      </td>
    </tr>
    <tr>
      <td width="100%">
        <form method="POST" action="search_ach_2.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">按班级、课程、考次查询</td>
            </tr>
            <tr>
              <td width="34%" align="center">班级</td>
              <td width="33%" align="center">课程</td>
              <td width="33%" align="center">所属考次</td>
            </tr>
            <tr>
              <td width="34%" align="center">
              <%set rs3=server.createobject("adodb.recordset")%>
              <%sql3="select * from class"%>
              <%rs3.open sql3,conn,1,1%>
             
              <select size="1" name="stclass">
               <%do while not rs3.eof%>
              <option value="<%=rs3("stclass")%>"><%=rs3("stclass")%></option>
              <%rs3.movenext%>
              <%loop%>
              <%rs3.close%>
              </select></td>
              <td width="33%" align="center">
              <select size="1" name="subject">
              <%
              set rs2=server.createobject("adodb.recordset")
              sql2="select * from subject"
              rs2.open sql2,conn,1,1
              %>

              <%do while not rs2.eof%>
              <option value="<%=rs2("subject")%>"><%=rs2("subject")%></option>
              <%rs2.movenext%>
              <%loop%>
              <%rs2.close%>
                </select></td>
                <%set rs4=server.createobject("adodb.recordset")%>
                <%sql4="select * from testno"%>
                <%rs4.open sql4,conn,1,1%>
              <td width="33%" align="center">
              <select size="1" name="testno">
              <%do while not rs4.eof%>
              <option value="<%=rs4("testno")%>"><%=rs4("testno")%></option>
              <%rs4.movenext%>
              <%loop%>
                </select></td>
              <%rs4.close%>
            </tr>
            <tr>
              <td width="100%" colspan="3">
                <p align="right"><input type="submit" value="提交" name="B1"></td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
    <tr>
      <td width="100%">
        <form method="POST" action="search_ach_3.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">按姓名、考次查询</td>
            </tr>
            <tr>
              <td width="33%" align="center">姓名</td>
              <td width="33%" align="center">所属考次</td>
              <td width="34%"> </td>
            </tr>
            <tr>
              <td width="33%" align="center"><input type="text" name="user_name" size="20"></td>
              <%
              set rs5=server.createobject("adodb.recordset")
              sql5="select * from testno"
              rs5.open sql5,conn,1,1
              %>
              
              <td width="33%" align="center">
           
              <select size="1" name="testno">
              <%do while not rs5.eof%>
              <option value="<%=rs5("testno")%>"><%=rs5("testno")%></option>
                
                <%rs5.movenext%>
                <%loop%>
                </select>
                <%rs5.close%></td>
              <td width="34%" align="right"><input type="submit" value="提交" name="B1"></td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
    <tr>
      <td width="100%">
        <form method="POST" action="search_ach_4.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="3">按考次、成绩分档查询</td>
            </tr>
            <tr>
              <td width="33%" align="center">成绩分档</td>
              <td width="33%" align="center">所属考次</td>
              <td width="34%" align="center">课程</td>
            </tr>
            <tr>
              <td width="33%" align="center">
              
<select size="1" name="level">
                <option value="1">90分以上</option>
                <option value="2">80-89分</option>
                <option value="3">70-79分</option>
                <option value="4">60-69分</option>
                <option value="5">60分以下</option>
                &nbsp;   
                </select></td>
              <td width="33%" align="center">
              <%
              set rs7=server.createobject("adodb.recordset")
              sql7="select * from testno"
              rs7.open sql7,conn,1,1

              %>
              <select size="1" name="testno">
              <%do while not rs7.eof%>
              <option value="<%=rs7("testno")%>"><%=rs7("testno")%></option>
              <%rs7.movenext%>
              <%loop%>
              <%rs7.close%>
                </select></td><%
              set rs6=server.createobject("adodb.recordset")
              sql6="select * from subject"
              rs6.open sql6,conn,1,1

              %>
              <td width="34%" align="center"><select size="1" name="subject">
              <%do while not rs6.eof%>
              <option value="<%=rs6("subject")%>"><%=rs6("subject")%></option>
              <%rs6.movenext%>
              <%loop%>
              <%rs6.close%>
                </select></td>
            </tr>
            <tr>
              <td width="100%" align="right" colspan="3"><input type="submit" value="提交" name="B1"></td>
            </tr>
          </table>
        </form>
      </td>
    </tr>
    <tr>
      <td width="100%"></td>
    </tr>
  </table>
</div>

</body>

</html>

⌨️ 快捷键说明

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