?? scorequerystep1.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="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">
<style type="text/css">
<!--
.STYLE1 {
color: #0066cc;
font-size: 18px;
}
-->
</style>
</HEAD>
<BODY text=#000000 leftMargin=0 topMargin=0>
<!--#include file="ScoreManage_Top.asp"-->
<TABLE width="760" border=0 align="center" cellPadding=0 cellSpacing=0>
<TR>
<TD align="center" bgcolor="#F7f7ff"><span class="STYLE1"><br>
<br>
第一步:請(qǐng)選擇查詢方式</span><br>
<br>
<br>
<table width="400" border="1" style="border-collapse:collapse" cellpadding="10" cellspacing="0" bordercolor="#CCCCFF">
<form Name="form1" action="ScoreQueryStep2_1.asp" method="post">
<tr valign="middle">
<td width="104" height="30" align="right"><font color="#FF0000">※</font>按月庫(kù)查詢:</td>
<td width="165" height="30"> <select Name="sheetName">
<%
i=0
While (NOT Recordset1.EOF)
if i=0 then
response.Write "<option value='" & Recordset1.Fields.Item("SheetName").Value & "' selected>" & Recordset1.Fields.Item("TestName").Value & "</option>"
else
response.Write "<option value='" & Recordset1.Fields.Item("SheetName").Value & "'>" & Recordset1.Fields.Item("TestName").Value & "</option>"
end if
i=i+1
Recordset1.MoveNext()
Wend
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If
%>
</select> </td>
<td width="111" height="30" align="center"> <input type="submit" name="Submit" value="下一步"> </td>
</tr>
</form>
<form Name="form2" action="ScoreQueryStep2_2.asp" method="post">
<tr valign="middle">
<td width="104" height="30" align="right"><font color="#FF0000">※</font>按項(xiàng)目查詢:</td>
<td width="165" height="30">
<select name="Subject">
<option value="應(yīng)發(fā)總數(shù)" selected>應(yīng)發(fā)總數(shù)</option>
<option value="實(shí)發(fā)總數(shù)">實(shí)發(fā)總數(shù)</option>
<option value="上交稅額">上交稅額</option>
<%
i=0
While (NOT Recordset2.EOF)
if i=0 then
response.Write "<option value='" & Recordset2.Fields.Item("SubjectName").Value & "'>" & Recordset2.Fields.Item("SubjectName").Value & "</option>"
else
response.Write "<option value='" & Recordset2.Fields.Item("SubjectName").Value & "'>" & Recordset2.Fields.Item("SubjectName").Value & "</option>"
end if
i=i+1
Recordset2.MoveNext()
Wend
If (Recordset2.CursorType > 0) Then
Recordset2.MoveFirst
Else
Recordset2.Requery
End If
%>
</select> </td>
<td width="111" height="30" align="center"> <input type="submit" name="Submit2" value="下一步"> </td>
</tr>
</form>
</table>
<br>
<br>
<br></td>
</TR>
</TABLE>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<Iframe src="CopyRight.asp" width="760" height="100" marginheight="0" marginwidth="0" scrolling="NO" frameborder="0" name="CopyRight"></iframe>
</td>
</tr>
</table></BODY>
</HTML>
<%
Recordset1.Close()
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -