?? counttest2.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="CheckLogin.asp"-->
<!--#include file="StudentConn.asp" -->
<%
Test_Name=Request("SheetName")
Content_Name=Request("Content")
%>
<%
Dim RS1
Set RS1 = Server.CreateObject("ADODB.Recordset")
RS1.ActiveConnection = MM_StudentConn_STRING
RS1.Source = "SELECT * FROM " & Test_Name
RS1.CursorType = 0
RS1.CursorLocation = 2
RS1.LockType = 1
RS1.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: #3333FF;
font-weight: bold;
}
-->
</style>
<script language="JavaScript">
function ChangeClass()
{
if(document.form1.gongshi.value=="")
{
document.form1.gongshi.value=document.form1.ziduan.value;
}
else
{
document.form1.gongshi.value=document.form1.gongshi.value + "+" + document.form1.ziduan.value; }
}
</script>
</HEAD>
<BODY text=#000000 leftMargin=0 topMargin=0>
<!--#include file="ScoreManage_top.asp"-->
<p align="center" class="STYLE1">公式設(shè)置</p>
<form Name="form1" action="SaveContent.asp" method="post">
<TABLE width="400" border=1 align="center" cellPadding=8 cellSpacing=0 bordercolor="#CCCCFF" style="border-collapse:collapse">
<tr>
<td align="right" class="content">月庫(kù)名稱:</td>
<td width="171" align="left"><%=Test_Name%></td>
</tr>
<TR>
<TD align="right" class="content">項(xiàng)目名稱:</td>
<TD align="left" class="content"><%=Content_Name%></td>
</tr>
<tr align="center">
<td align="right" class="content">選擇統(tǒng)計(jì)字段:</td>
<td align="left">
<table width="100%">
<tr>
<td align=left>
<select id="ziduan" onChange="ChangeClass()">
<option value="應(yīng)發(fā)總數(shù)">應(yīng)發(fā)總數(shù)</option>
<option value="實(shí)發(fā)總數(shù)">實(shí)發(fā)總數(shù)</option>
<option value="上交稅額">上交稅額</option>
<%
For i = 4 to RS1.Fields.Count - 1
%>
<option value="<%=RS1.Fields(i).Name%>"><%=RS1.Fields(i).Name%></option>
<%
next
%>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" class="content">公式定義:</td>
<td align="left"><textarea name="gongshi" cols="35" style="width:250;overflow-x:visible;overflow-y:visible;"></textarea></td>
</tr>
<tr align="center">
<td height="43" colspan="2">
<input type="submit" name="Submit2" value="保存公式">
<input type="hidden" name="TestName" value="<%=Test_Name%>">
<input type="hidden" name="ContentName" value="<%=Content_Name%>"><span class="msg"><%=Request("mmsg")%></span>
</td>
</tr>
</table>
</td>
</TR>
</TABLE>
</form>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<Iframe src="CopyRight.asp" width="760" height="100" scrolling="NO" frameborder="0" name="CopyRight"></iframe>
</td>
</tr>
</table>
</BODY>
</HTML>
<%
RS1.Close()
Set RS1 = Nothing
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -