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

📄 scorequerystep1.asp

📁 一篇不错的好论文
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%> 
<!--#include file="Connections/StudentConn.asp" -->
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_StudentConn_STRING
Recordset1.Source = "SELECT * FROM TestName ORDER BY id DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Recordset2
Dim Recordset2_numRows

Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_StudentConn_STRING
Recordset2.Source = "SELECT * FROM Subject ORDER BY ID ASC"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()

Recordset2_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>学生成绩查询</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" Name=GENERATOR>
<link href="home.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>
<!--#include file="Top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
   
  <TR> 
    <TD vAlign=top width=46 background=images/p_left_2.gif></TD>
    <TD width=20>&nbsp;</TD>
    <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <tr> 
          <td height=30 width="20%"><img src="images/friendsite.GIF" width="19" height="19"> 
            <a href="ScoreInputStep1.asp">录入学生成绩</a></td>
          <td height=30 width="20%"><img src="images/friendsite.gif" width="19" height="19"> 
            <a href="ScoreQueryStep1.asp">查询学生成绩</a></td>
          <td height=30 width="20%"><img src="images/friendsite.gif" width="19" height="19"> 
            <a href="ScoreModifyDel.asp">修改/删除学生成绩</a></td>
          <td height=30 width="20%"><img src="images/friendsite.gif" width="19" height="19"> 
            <a href="ScoreOrder.asp">计算总分与排名</a></td>
          <td height=30 width="20%"><img src="images/friendsite.gif" width="19" height="19"><a href="TargetManage.asp">目标分管理</a></td>
        </tr>
      </TABLE>
      <table cellspacing=0 cellpadding=0 width="95%" border=0>
        
        <tr> 
          <td valign=top width="136" align="center"> <b><font color="#0066cc"><br>
            <font size="5">
            学<br>
            生<br>
            成<br>
            绩<br>
			查<br>
			询</font></font></b></td>
          <td width="514"> <br>
            第一步:请选择查询方式<br>
              <br>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="3" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<form Name="form1" action="ScoreQueryStep2_1.asp" method="post">
                <tr valign="middle"> 
                  <td width="100" height="30" align="right"><font color="#FF0000">※</font>按考试查询:</td>
                  <td width="150" height="30"> 
                    <select Name="sheetName">
                      <%
While (NOT Recordset1.EOF)
%>
                      <option value="<%=(Recordset1.Fields.Item("SheetName").Value)%>" selected ><%=(Recordset1.Fields.Item("TestName").Value)%></option>
                      <%
  Recordset1.MoveNext()
Wend
If (Recordset1.CursorType > 0) Then
  Recordset1.MoveFirst
Else
  Recordset1.Requery
End If
%>
                    </select>
                  </td>
                  <td width="200" height="30"> 
                    <input type="submit" name="Submit" value="下一步">
                  </td>
                </tr>
                <tr valign="middle"> 
                  <td width="100" height="30" align="right">&nbsp;</td>
                  <td height="30" colspan="2">查询指定考试中某一科或几科的成绩及总分、达标等信息。此种方式便于班任或科任掌握相应考试的考试情况。</td>
                </tr>
              </form>
              <form Name="form2" action="ScoreQueryStep2_2.asp" method="post">
                <tr valign="middle"> 
                  <td width="100" height="30" align="right"><font color="#FF0000">※</font>按科目查询:</td>
                  <td width="150" height="30"> 
                    <select name="Subject" id="Subject">
                      <%
While (NOT Recordset2.EOF)
%>
                      <option value="<%=(Recordset2.Fields.Item("SubjectName").Value)%>" selected><%=(Recordset2.Fields.Item("SubjectName").Value)%></option>
                      <%
  Recordset2.MoveNext()
Wend
If (Recordset2.CursorType > 0) Then
  Recordset2.MoveFirst
Else
  Recordset2.Requery
End If
%>
                    </select>
                  </td>
                  <td width="200" height="30"> 
                    <input type="submit" name="Submit2" value="下一步">
                  </td>
                </tr>
                <tr valign="middle"> 
                  <td width="100" height="30" align="right">&nbsp;</td>
                  <td height="30" colspan="2">查询指定科目的某一次或几次考试的成绩、达标、成绩升降等信息。此种方式便于科任老师掌握学生的学习情况。</td>
                </tr>
              </form>
            </table>
          </td>
        </tr>
      </table>
    </TD>
  </TR>
</TABLE>
<!--#include file="CopyRight.asp"-->
</BODY>
</HTML>
<%
Recordset1.Close()
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>

⌨️ 快捷键说明

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