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

📄 infoquery1.asp

📁 工资管理系统功能齐全包括工人工资信息查询.
💻 ASP
📖 第 1 页 / 共 2 页
字号:
Dim MM_movePrev
Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam
MM_keepMove = MM_keepBoth
MM_moveParam = "index"
If (MM_size > 1) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    MM_paramList = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For MM_paramIndex = 0 To UBound(MM_paramList)
      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
      End If
    Next
    If (MM_keepMove <> "") Then
      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
    End If
  End If
End If
If (MM_keepMove <> "") Then 
  MM_keepMove = MM_keepMove & "&"
End If
MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
MM_moveFirst = MM_urlStr & "0"
MM_moveLast  = MM_urlStr & "-1"
MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
  MM_movePrev = MM_urlStr & "0"
Else
  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<!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 rel="stylesheet" href="home.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
function check1()
{
  if(document.form1.StudentNum.value=="")
  {
    alert("你还没有填编号");
    document.form1.StudentNum.focus();
    return false;
  }
}
function check2()
{
  if(document.form2.Name.value=="")
  {
    alert("你还没有填姓名");
    document.form2.Name.focus();
    return false;
  }
}
function ChangeClass()
{
	var i;
	for(i=document.form1.ClassID.options.length-1;i>=0;i--)
	{
		document.form1.ClassID.options[i]=null;
	}
	switch(document.form1.Grade.selectedIndex)
	{
	case 0:
		for(i=0;i<document.Classes.Grade1.options.length;i++)
		{
			document.form1.ClassID.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.ClassID.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.ClassID.options[i]=new Option(document.Classes.Grade3.options[i].text,document.Classes.Grade3.options[i].value);
		}
		break;
	case 3:
		for(i=0;i<document.Classes.Grade4.options.length;i++)
		{
			document.form1.ClassID.options[i]=new Option(document.Classes.Grade4.options[i].text,document.Classes.Grade4.options[i].value);
		}
		break;
	case 4:
		for(i=0;i<document.Classes.Grade5.options.length;i++)
		{
			document.form1.ClassID.options[i]=new Option(document.Classes.Grade5.options[i].text,document.Classes.Grade5.options[i].value);
		}
		break;
	}
}
</script>
<style type="text/css">
<!--
.STYLE1 {
	color: #000000;
	font-weight: bold;
}
-->
</style>
</HEAD>
<BODY text=#000000 bgColor=#f7f7ff leftMargin=0 topMargin=0>
<div id="Layer1" style="position:absolute; left:445px; top:220px; width:188px; height:64px; z-index:1; visibility: hidden;"> 
  <form name="Classes" method="post" action="">
    <select name="Grade1" id="select">
      <option value="All">全部</option>
      <%
While (NOT rsGrade1.EOF)
%>
      <option value="<%=(rsGrade1.Fields.Item("ClassID").Value)%>"><%=(rsGrade1.Fields.Item("ClassName").Value)%></option>
      <%
  rsGrade1.MoveNext()
Wend
If (rsGrade1.CursorType > 0) Then
  rsGrade1.MoveFirst
Else
  rsGrade1.Requery
End If
%>
    </select>
    <select name="Grade2" id="select2">
      <option value="All">全部</option>
      <%
While (NOT rsGrade2.EOF)
%>
      <option value="<%=(rsGrade2.Fields.Item("ClassID").Value)%>"><%=(rsGrade2.Fields.Item("ClassName").Value)%></option>
      <%
  rsGrade2.MoveNext()
Wend
If (rsGrade2.CursorType > 0) Then
  rsGrade2.MoveFirst
Else
  rsGrade2.Requery
End If
%>
    </select>
    <select name="Grade3" id="Grade3">
      <option value="All">全部</option>
      <%
While (NOT rsGrade3.EOF)
%>
      <option value="<%=(rsGrade3.Fields.Item("ClassID").Value)%>"><%=(rsGrade3.Fields.Item("ClassName").Value)%></option>
      <%
  rsGrade3.MoveNext()
Wend
If (rsGrade3.CursorType > 0) Then
  rsGrade3.MoveFirst
Else
  rsGrade3.Requery
End If
%>
    </select>
    <select name="Grade4" id="Grade4">
      <option value="All">全部</option>
      <%
While (NOT rsGrade4.EOF)
%>
      <option value="<%=(rsGrade4.Fields.Item("ClassID").Value)%>"><%=(rsGrade4.Fields.Item("ClassName").Value)%></option>
      <%
  rsGrade4.MoveNext()
Wend
If (rsGrade4.CursorType > 0) Then
  rsGrade4.MoveFirst
Else
  rsGrade4.Requery
End If
%>
    </select>
    <select name="Grade5" id="Grade5">
      <option value="All">全部</option>
      <%
While (NOT rsGrade5.EOF)
%>
      <option value="<%=(rsGrade5.Fields.Item("ClassID").Value)%>"><%=(rsGrade5.Fields.Item("ClassName").Value)%></option>
      <%
  rsGrade5.MoveNext()
Wend
If (rsGrade5.CursorType > 0) Then
  rsGrade5.MoveFirst
Else
  rsGrade5.Requery
End If
%>
    </select>
  </form>
</div>
<!--#include file="InfoManage_Top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
  <TR> 
    <TD align="center"><br>
        <% If Recordset1.EOF And Recordset1.BOF Then %>
      <BR><BR>
      <font color="#FF3399">抱歉!找不到您所寻找的人员记录!</font><BR>
      <BR><BR>
        <% End If %> <% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="20"> 查询条件: 
              <%
			 if Request("StudentNum")<>"" then
			     response.write "编号中含有“" & strStudentNum & "”"
			 elseif strName<>"" then
			     response.write "姓名中含有“" & strName & "”"
			 else
				 if strClass<>"" then response.write strClass
			 end if
			%>
            </td>
			<td height="20" valign="middle">共找到&nbsp;<font color="#FF0000"><%=(Recordset1_total)%></font>&nbsp;条记录,100条记录/页 </td>
            <td height="20" align="right"> <% If MM_offset <> 0 Then %>
              <A HREF="<%=MM_moveFirst%>"><img src="images/First.gif" width="43" height="15" alt="首页" border="0" align="absbottom"></A> 
              <A HREF="<%=MM_movePrev%>"><img src="images/Prev.gif" width="56" height="15" alt="前一页" border="0" align="absbottom"></A> 
              <% else %>
              <img src="images/First.gif" width="43" height="15" alt="首页" align="absbottom" border="0"> 
              <img src="images/Prev.gif" width="56" height="15" alt="上一页" align="absbottom" border="0"> 
              <% End If %> 
              <% If Not MM_atTotal Then %>
              <A HREF="<%=MM_moveNext%>"><img src="images/Next.gif" width="56" height="15" alt="下一页" border="0" align="absbottom"></A> 
              <A HREF="<%=MM_moveLast%>"><img src="images/Last.gif" width="43" height="15" alt="尾页" align="absbottom" border="0"></A> 
              <% else %>
              <img src="images/next.gif" width="56" height="15" alt="下一页" align="absbottom" border="0"> 
              <img src="images/Last.gif" width="43" height="15" align="absbottom" border="0" alt="尾页"> 
              <% End If %> </td>
          </tr>
        </table>
      <table cellspacing=0 width="100%" border=1 cellpadding="1" bordercolor="#CCCCFF" align="center" style="border-collapse:collapse">
        <tr valign="middle" bgcolor="#CCCCFF"> 
          <td height="25" align="center"><strong><font color="#000000"> 
            编号</font></strong></td>
          <td height="25" align="center"><strong><font color="#000000"> 
            姓名</font></strong></td>
          <td height="25" align="center"><strong><font color="#000000"> 
            政治面貌</font></strong></td>
          <td height="25" align="center"><span class="STYLE1">科室</span></td>
          <td height="25" align="center"><strong><font color="#000000"> 
            身份证号</font></strong></td>
          <td height="25" align="center"><strong><font color="#000000"> 
            账号</font></strong></td>
        </tr>
          <% 
				While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
		   %>
          <%
			  txtStudentNum=Recordset1.Fields.Item("StudentNum").Value & ""
			  txtName=replace(Recordset1.Fields.Item("Name").Value & ""," ","&nbsp;")
			  if txtName="" then txtName="&nbsp;"
			  txtPolitics=replace(Recordset1.Fields.Item("politics").Value & ""," ","&nbsp;")
			  if txtPolitics="" then txtPolitics="&nbsp;"
			  txtClassName=replace(Recordset1.Fields.Item("ClassName").Value & ""," ","&nbsp;")
			  if txtClassName="" then txtClassName="&nbsp;"
			  txtTelnum=replace(Recordset1.Fields.Item("TelNum").Value & ""," ","&nbsp;")
			  if txtTelnum="" then txtTelnum="&nbsp;"
			  txtRemark=replace(Recordset1.Fields.Item("Remark").Value & ""," ","&nbsp;")
			  if txtRemark="" then txtRemark="&nbsp;"
			%>
        <tr valign="middle" bgcolor="#f7f7ff"> 
          <td height="20" align="center"><%=txtStudentNum%></td>
          <td height="20" align="center"><%=txtName%></td>
          <td height="20" align="center"><%=txtPolitics%></td>
          <td height="20" align="center"><%=txtClassName%></td>
          <td height="20" align="center"><%=txtTelnum%></td>
          <td height="20" align="center"><%=txtRemark%></td>
         </tr>
          <% 
			  Repeat1__index=Repeat1__index+1
			  Repeat1__numRows=Repeat1__numRows-1
			  Recordset1.MoveNext()
			Wend
		 %>
      </table><br>
        <% End If %>
        <TABLE width="100%" border=0 cellPadding=5 cellSpacing=0>
          <TR> 
            <TD align="center" vAlign=top> <b>继续查询其他人员信息</b> 
              <table width="300" border="1" cellspacing="0" cellpadding="5" bordercolor="#CCCCFF" style="border-collapse:collapse">
                 <form Name="form3" onSubmit="return check1()" action="InfoQuery1.asp" method="post">
                 <tr> 
                    <td width="80" align="right">按编号查询:</td>
                    <td width="150"> <input name="StudentNum" type="text" id="StudentNum" size="18" maxlength="8"></td>
                    <td> <input type="submit" name="Submit1" value="查询"></td>
                 </tr></form>
                 <form Name="form2" onSubmit="return check2()"  action="InfoQuery1.asp" method="post">
                 <tr> 
                    <td width="80" align="right">按姓名查询:</td>
                    <td width="150"> <input type="text" name="Name" maxlength="18" size="18"></td>
                    <td> <input type="submit" name="Submit2" value="查询"></td>
                 </tr></form>
                 <form Name="form1" action="InfoQuery1.asp" method="post">
                 <tr> 
                    <td width="80" align="right">按科室查询:</td>
                    <td width="150">
					<select name="Grade" onChange="ChangeClass()">
					  <option value="01" selected>医疗</option>
					  <option value="02">药品</option>
					  <option value="03">行政</option>
					  <option value="04">合同</option>
					  <option value="05">自负</option>
					</select>
					<select name="ClassID">
					  <option value="All" selected>全部</option>
					  <%
							While (NOT rsGrade1.EOF)
					  %>
					  <option value="<%=rsGrade1("ClassID")%>"><%=rsGrade1("ClassName")%></option>
                      <%
						  rsGrade1.MoveNext()
						Wend
						If (rsGrade1.CursorType > 0) Then
						  rsGrade1.MoveFirst
						Else
						  rsGrade1.Requery
						End If
					  %>
					  </select>
					  </td>
					  <td><input type="submit" name="Submit3" value="查询"></td>
                   </tr>
                </form>
              </table>
              <br></TD></TR></TABLE></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()
	Set Recordset1=Nothing
%>
<%
	rsGrade1.Close()
	Set rsGrade1 = Nothing
%>

⌨️ 快捷键说明

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