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

📄 empmain_danan.asp

📁 欢迎大家分享本系统为bs架构的asp+access版本。<br>包含:员工信息
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>资料检索</title>
<link rel="stylesheet" href="CSS/SellWellWeb.css" type="text/css">
<script language="javascript" src="Js_Lib/Calendar.js"></script>
<script>
function selectall(obj){
   if(obj.checked){
      for(i=0;i<document.form1.elements.length;i++){
	      if(document.form1.elements[i].type=="checkbox"){
		      document.form1.elements[i].checked = true
		  }
	  }
	}
	else{
	   for(i=0;i<document.form1.elements.length;i++){
	      if(document.form1.elements[i].type=="checkbox"){
		      document.form1.elements[i].checked = false
		  }
	  } 
	} 
}

  function fnIntNumOnly(max){
	key=window.event.keyCode;
	if((key>47&&key<58) && window.event.shiftKey)
		{
		  window.event.returnValue=false;
		  return;
		}
	if (window.event.keyCode>=33 && window.event.keyCode<=46) return;
	switch(window.event.keyCode)
	{
	case 8:
		return;
	case 13:
		return
	case 9:
		return;
	}
	if( (String.fromCharCode(key) < "0" || String.fromCharCode(key) > "9"  ) && (String.fromCharCode(key) < "a" || String.fromCharCode(key) > "i")  && String.fromCharCode(key)!="`")
		event.returnValue=false;		
	if(key >= 96 &&  key <=105 )
		ipChar=(key-96) + ""
	else
		ipChar=String.fromCharCode(key)
	if(max){
		if((window.event.srcElement.value+ipChar)*1 > max)
			event.returnValue=false;
	}
}
function doadd(){
document.form1.target = "frmTop"
	document.form1.action ="EmpMain_danan_add.asp"
	strUrl = window.parent.parent.frames("frmright").frames("frmTop").window.location.href
	strorgURL = strUrl
	  document.form1.orgURL.value = strorgURL
    	document.form1.submit()

}
function doinfo(id){
document.form1.target = "frmTop"
	document.form1.action ="EmpMain_danan_info1.asp?dananid="+id+""
	strUrl = window.parent.parent.frames("frmright").frames("frmTop").window.location.href
	strorgURL = strUrl
	  document.form1.orgURL.value = strorgURL
    	document.form1.submit()

}
function dodelete(id){



	  if(confirm("您确定要删除?")){
  	window.location = "EmpMain_danan_Delete.asp?EmpID="+id+""
  }



}
function dosearch(){
  ischecked = 0
       for(i=0;i<document.form1.elements.length;i++){
	      if(document.form1.elements[i].type=="checkbox"){
		      if(document.form1.elements[i].checked ==true){
			      ischecked = 1
			  }
		  }
	  }
	  if(ischecked ==0){
	    alert("至少选择一个查询条件才能查询!")
		return
	  }
searchFields = ""
searchValue =""
//EmpGender,MarrType,Empnativeplace,Empbirthday,EmpHireDep,
    if(document.all.EmpGender.checked){
	  searchFields = searchFields +  ","  + document.all.EmpGender.value
	   searchValue = searchValue + "," + document.all.EmpGendervalue.options[document.all.EmpGendervalue.selectedIndex].value
	}
	if(document.all.MarrType.checked){
	  searchFields = searchFields +  ","  + document.all.MarrType.value
	  searchValue = searchValue + "," + document.all.MarrTypevalue.options[document.all.MarrTypevalue.selectedIndex].value
	}
	if(document.all.Empnativeplace.checked){
	  searchFields = searchFields +  ","  + document.all.Empnativeplace.value
	  searchValue = searchValue + "," + document.all.Empnativeplacevalue.value
	}
	if(document.all.EmpEvenAddress.checked){
	  searchFields = searchFields +  ","  + document.all.EmpEvenAddress.value
	 searchValue = searchValue + "," + document.all.EmpEvenAddressvalue.options[document.all.EmpEvenAddressvalue.selectedIndex].value
	}
	if(document.all.Empbirthday.checked){
	  searchFields = searchFields +  ","  + document.all.Empbirthday.value
	  searchValue = searchValue + "," + document.all.birthdaym.options[document.all.birthdaym.selectedIndex].value + "-" +document.all.birthdayD.options[document.all.birthdayD.selectedIndex].value
	}
	if(document.all.EmpHireDep.checked){
	  searchFields = searchFields +  ","  + document.all.EmpHireDep.value
	  searchValue = searchValue + "," + document.all.EmpHireDepvalue.options[document.all.EmpHireDepvalue.selectedIndex].value
	}
	//EmphireDate,HPType,RaisesDegree,EmpDimissionDate,EmpFinallevel
	if(document.all.EmphireDate.checked){
	  searchFields = searchFields +  ","  + document.all.EmphireDate.value
	  searchValue = searchValue + "," + document.all.hireDateyear.options[document.all.hireDateyear.selectedIndex].value + "-"  + document.all.hireDatemonth.options[document.all.hireDatemonth.selectedIndex].value
	}
	if(document.all.EmpDimissionDate.checked){
	  searchFields = searchFields +  ","  + document.all.EmpDimissionDate.value
	  searchValue = searchValue + "," + document.all.EmpDimissionDatevalue.options[document.all.EmpDimissionDatevalue.selectedIndex].value
	}
	if(document.all.HPType.checked){
	  searchFields = searchFields +  ","  + document.all.HPType.value
	  searchValue = searchValue + "," + document.all.HpTypevalue.options[document.all.HpTypevalue.selectedIndex].value
	}
	if(document.all.Degree.checked){
	  searchFields = searchFields +  ","  + document.all.Degree.value
	  searchValue = searchValue + "," + document.all.Degreevalue.value
	}
	if(document.all.EmpTitle.checked){
	  searchFields = searchFields +  ","  + document.all.EmpTitle.value
	  searchValue = searchValue + "," + document.all.EmpTitlevalue.options[document.all.EmpTitlevalue.selectedIndex].value
	}
	if(document.all.EmpFinallevel.checked){
	  searchFields = searchFields +  ","  + document.all.EmpFinallevel.value
	  searchValue = searchValue + "," + document.all.EmpFinallevelvalue.options[document.all.EmpFinallevelvalue.selectedIndex].value
	}
	if(document.all.IsTemp.checked){
	  searchFields = searchFields +  ","  + document.all.IsTemp.value
	  searchValue = searchValue + "," + document.all.IsTempvalue.options[document.all.IsTempvalue.selectedIndex].value
	}
    for(i=0;i<document.all.searchlogic.length;i++){
	   if(document.all.searchlogic[i].checked){
	      searchlogic = document.all.searchlogic[i].value
	   }
	}
	document.form1.searchfields.value = searchFields
	document.form1.searchvalues.value = searchValue
	document.form1.target = "frmTop"
	document.form1.action ="EmpMain_BaseSearch_Process.asp"
	strUrl = window.parent.parent.frames("frmright").frames("frmTop").window.location.href
	if(strUrl.indexOf("?")!=-1){
	strorgURL = strUrl.substr(0,strUrl.indexOf("?"))
        }
        else{
	strorgURL = strUrl
        }
       // alert(strorgURL)
        document.form1.orgURL.value = strorgURL
    	document.form1.submit()

	// window.parent.parent.frames("frmright").frames("frmTop").window.location = "EmpMain_BaseSearch_Process.asp?serchFields="+searchFields+"&searchValue=" +searchValue +"&searchlogic="+searchlogic
}
function HLItem(obj){
	obj.oldClassName=obj.className;
	obj.className="ListValuehighlight";
}

function Re(obj){
 obj.className=obj.oldClassName
}
</script>

</head>

<body bgcolor="#EAF4FF" class="body">
<form name="form1" method="post" action="">
<fieldset style="padding: 2" class="fiedset"> <legend><font size="2">请选择档案</font></legend> 
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" class="table">
    <!--DWLayoutTable-->
    <tr> 
      <td height="18" align="right" nowrap class="listTitle"><div align="center"><span lang="zh-cn"> 
          &nbsp; </span></div></td>
      <td align="right" nowrap class="listTitle"><div align="center">姓名</div></td>
      <td  class="listTitle"><div align="center"> 归档处</div></td>
      <td class="listTitle"><div align="center">保管人</div></td>
    </tr>
    <%
Set rs= Server.CreateObject ("ADODB.RecordSet")
rs.open "select * from danan ",MM_EmpMain_STRING,1,3
if not rs.eof  then
soonhost=0
DO WHILE NOT soonhost = rs.RecordCount %>
    <tr onMouseOver="HLItem(this)" onMouseOut="Re(this)" style="cursor:hand" EmpID="<%=trim(rs.Fields.Item("dananID").Value)%>" > 
      <td width="3%" height="21" align="right" nowrap class="Caption" onClick="dodelete(<%=trim(rs.Fields.Item("ID").Value)%>)"><div align="center"><span lang="zh-cn"> 
          <div align="right"><font size="2"> 
         删除
          </font></div>
          </span></div></td>
      <td width="30%" align="right" nowrap class="Caption" onclick="doinfo(<%=rs("id")%>)"><span lang="zh-cn"><font size="2"><%=rs("name")%></font></span></td>
      <td width="30%" valign="top" nowrap class="Caption"><%=rs("where")%></td>
      <td  width="27%" class="Caption"><%=rs("user")%></td>
    
    </tr>
    <%soonhost=soonhost+1
	rs.movenext
	loop
	else%>
    <tr> 
      <td height="21" colspan="4" class="ListValueWhite">没有记录!</td>
      
    </tr>
    
    <%
	end if
	rs.close%>
  </table>
</fieldset>
  <p align="right"><span lang="zh-cn"></span></p>
<input type="hidden" name="searchfields" value="">
<input type="hidden" name="searchvalues" value="">
<input type="hidden" name="orgURL" value="">
</form>
</body>

</html>

⌨️ 快捷键说明

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