?? counttest.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="CheckLogin.asp"-->
<!--#include file="StudentConn.asp" -->
<%
Dim RS1
set RS1 = Server.CreateObject("ADODB.Recordset")
RS1.ActiveConnection = MM_StudentConn_STRING
RS1.Source = "SELECT * FROM TestName ORDER BY id Desc"
RS1.CursorType = 0
RS1.CursorLocation = 2
RS1.LockType = 3
RS1.Open()
RS1_numRows = 0
%>
<%
Dim Recordset2
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_StudentConn_STRING
Recordset2.Source = "SELECT * FROM Subject"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
%>
<!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">
<!--
body {
background-color: #f7f7ff;
}
.STYLE1 {
font-size: 18px;
color: #3366FF;
font-weight: bold;
}
.STYLE2 {font-size: 18px; color: #FF0000; font-weight: bold; }
-->
</style></HEAD>
<BODY text=#000000 leftMargin=0 topMargin=0>
<!--#include file="ScoreManage_top.asp"-->
<p align="center" class="STYLE1"><a href="ChuQinSet.asp">出勤設置</a> <a href="YeBanSet.asp">夜班設置</a> <a href="JiaBanSet.asp">加班設置</a> <a href="BinShiSet.asp">病事假設置</a> <a href="#"><span class="STYLE2">公式設置</span></a> <a href="ShowContent.asp">公式查看</a></p>
<form Name="form1" action="CountTest2.asp" method="post">
<p align="center" class="msg"><%=Request("msg")%></p><br>
<TABLE width="300" border=1 align="center" cellPadding=8 cellSpacing=0 bordercolor="#CCCCFF" style="border-collapse:collapse">
<tr>
<td align="right"><span class="content">請選擇要進行統計的月庫</span></td>
<td align="left"><select name="SheetName">
<%
i = 0
While (NOT RS1.EOF)
if i = 0 then
response.Write "<option value='" & RS1.Fields.Item("SheetName").Value & "' selected >" & RS1.Fields.Item("TestName").Value & "</option>"
else
response.Write "<option value='" & RS1.Fields.Item("SheetName").Value & "'>" & RS1.Fields.Item("TestName").Value & "</option>"
end if
i = i + 1
RS1.MoveNext()
Wend
If (RS1.CursorType > 0) Then
RS1.MoveFirst
Else
RS1.Requery
End If
%>
</select></td>
</tr>
<TR>
<TD align="right" class="content">請選擇要統計的項目</td>
<TD align="left" class="content"><select name="Content" id="Content">
<option value="應發總數">應發總數</option>
<option value="實發總數">實發總數</option>
<option value="上交稅額">上交稅額</option>
<%
While (NOT Recordset2.EOF)
%>
<option value="<%=(Recordset2.Fields.Item("SubjectName").Value)%>"><%=(Recordset2.Fields.Item("SubjectName").Value)%></option>
<%
Recordset2.MoveNext()
Wend
If (Recordset2.CursorType > 0) Then
Recordset2.MoveFirst
Else
Recordset2.Requery
End If
%>
</select></td>
</tr>
<tr align="center">
<td height="43" colspan="2"><input type="submit" Name="Submit" value="下一步"></td>
</tr>
</table>
</form></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>
<%
RS1.Close()
Set RS1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -