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

📄 wageinputstep2.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;
  }
}
document.form1.action="WageInput"+document.form1.InputType.options.value+".asp";
return true;
}
</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/ScoreInput_Title.GIF" width="500" height="60"><br>
        <table cellspacing=0 cellpadding=0 width="90%" border=0>
          <tr> 
            <td height="278"> <form Name="form1"  onSubmit="return check()" action="WageInput1.asp" method="post">
                <br>
                第二步、请选择录入的工资表项目及录入方式:<br>
                <br>
                <table width="100%" border="1" align="center" cellpadding="5" cellspacing="1" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
                  <tr> 
                    <td width="160" align="right">工资表名称:</td>
                    <td> <%=(Recordset2.Fields.Item("TestName").Value)%> <input name="SheetName" type="hidden" value="<% =strSheetName %>"></td>
                  </tr>
                  <tr> 
                    <td width="160" 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
				   %>
                        </tr>
                      </table></td>
                  </tr>
                  <tr> 
                    <td width="160" align="right">请选择录入方式:</td>
                    <td><select name="InputType" >
                        <option value="1" selected >单条记录方式</option>
                        <option value="2">列表方式</option>
                      </select></td>
                  </tr>
                  <tr align="center"> 
                    <td height="43" colspan="2"><input type="submit" Name="Submit" value="下一步"></td>
                  </tr>
                </table>
              </form></td>
          </tr>
        </table> 
        <br>
      </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>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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