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

📄 wagequerystep2.asp

📁 设计广州农信管理系统,具有一般的存取款功能等客户服务.
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/DatabaseConnection.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Dim strSheetName
strSheetName = Request("SheetName")
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_DatabaseConnection_STRING
Recordset1.Source = "SELECT Top 1 * FROM " & strSheetName
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<%
Dim Recordset2__MMColParam
Recordset2__MMColParam = Request("SheetName")
%>
<%
Dim Recordset2
Dim Recordset2_numRows

Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_DatabaseConnection_STRING
Recordset2.Source = "SELECT * FROM TestName WHERE SheetName = '" + Replace(Recordset2__MMColParam, "'", "''") + "'"
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">
<script language="JavaScript">
function check()
{
var total=0;
var intmax=document.form1.chkbox.length;
if(intmax>1){
  for(var idx=0;idx<intmax;idx++){
    if(eval("document.form1.chkbox[" + idx + "].checked")==true){
      total+=1;
    }
  }
  if(total==0){
    alert("您未选择任何科目!");
    document.form1.chkbox[0].focus();
    return false;
  }
}
else{
  if(document.form1.chkbox.checked==false){
    alert("您未选择任何科目!");
    document.form1.chkbox.focus();
    return false;
  }
}
}
</script>
<script language="JavaScript" type="text/JavaScript">
function ChangeClass()
{
	var i;
	for(i=document.form1.ClassSelect.options.length-1;i>=0;i--)
	{
		document.form1.ClassSelect.options[i]=null;
	}
	switch(document.form1.Grade.selectedIndex)
	{
	case 0:
		for(i=0;i<document.Classes.Grade1.options.length;i++)
		{
			document.form1.ClassSelect.options[i]=new Option(document.Classes.Grade1.options[i].text,document.Classes.Grade1.options[i].value);
		}
		break;
	case 1:
		for(i=0;i<document.Classes.Grade2.options.length;i++)
		{
			document.form1.ClassSelect.options[i]=new Option(document.Classes.Grade2.options[i].text,document.Classes.Grade2.options[i].value);
		}
		break;
	case 2:
		for(i=0;i<document.Classes.Grade3.options.length;i++)
		{
			document.form1.ClassSelect.options[i]=new Option(document.Classes.Grade3.options[i].text,document.Classes.Grade3.options[i].value);
		}
		break;
	}
}
</script>

</HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>
<!--#include file="Default_Top.asp"-->
<TABLE width="760" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD width=1 background="images/dotLine_h.gif"><IMG src="images/shim(1).gif" width=1></TD>
      <TD Width="100" align="center" bgcolor="#EEEEEE">&nbsp;</TD>
      <td width="10" bgcolor="#F2FBF2"></td>
      <TD bgcolor="#F2FBF2"><img src="images/ScoreQurey_Title.GIF" width="500" height="60"><br>
        <form Name="form1"  onSubmit="return check()" action="WageQueryStep3.asp" method="post">
          第二步、请输入查询条件并选择科目:<br>
          <br>
          <table width="90%" border="1" cellpadding="5" cellspacing="1" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
            <tr> 
              <td width="100" align="right">考试名称:</td>
              <td><%=(Recordset2.Fields.Item("TestName").Value)%> <input name="SheetName" type="hidden" id="SheetName2" value="<% =strSheetName %>"></td>
            </tr>
            <tr> 
              <td width="100" align="right">请选择科目:</td>
              <td> <table border="0" cellspacing="5" cellpadding="0">
                  <tr> 
                    <%
					For i = 5 to Recordset1.Fields.Count - 1 
				      Response.write "<td width='80'><input Name='chkbox' type='checkbox' value='" & Recordset1.Fields(i).Name & "'>" & Recordset1.Fields(i).Name & "</td>"
				      if (i+1-5)>0 and ((i+1-5) mod 5 =0) then response.write "</tr><tr>"
					next
					Response.write "<td><input Name='chkbox' type='checkbox' value='工资总计'>工资总计</td>"
					if (i+1-5)>0 and ((i+1-5) mod 5 =0) then response.write "</tr><tr>"
				    i=i+1
					Response.write "<td><input Name='chkbox' type='checkbox' value='平均工资'>平均工资</td>"
					if (i+1-5)>0 and ((i+1-5) mod 5 =0) then response.write "</tr><tr>"
				    i=i+1
					Response.write "<td><input Name='chkbox' type='checkbox' value='部门排名'>部门排名</td>"
					if (i+1-5)>0 and ((i+1-5) mod 5 =0) then response.write "</tr><tr>"
					Response.write "<td><input Name='chkbox' type='checkbox' value='全社排名'>全社排名</td>"
				   %>
                  </tr>
                </table></td>
            </tr>
            <tr align="center"> 
              <td height="43" colspan="2"><input type="submit" Name="Submit" value="下一步"></td>
            </tr>
          </table>
          <br>
        </form> </td>
      <TD width=1 background="images/dotLine_h.gif"><IMG src="images/shim(1).gif" width=1></TD>
    </TR>
    <tr> 
      <TD height="1" colspan="7" background="images/dotLine_w.gif"><IMG height=1 src="images/shim(1).gif" width=100></TD>
    </tr>
  </TBODY>
</TABLE>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
		<Iframe src="CopyRight.asp" width="760" height="200" marginheight="0" marginwidth="0" scrolling="NO" frameborder="0" name="CopyRight"></iframe>
	</td>
  </tr>
</table></BODY>
</HTML>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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