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

📄 empmain_basesearch.asp

📁 ASP经典模块开发大全带源码客户信息管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->
<%
dim rs,str_ql
Set rs= Server.CreateObject ("ADODB.RecordSet")
rs.open "select * from user  order by id desc ",MM_EmpMain_STRING,1,3
if not rs.eof then
while not rs.eof
str_ql=str_ql&rs("username")&","
rs.movenext
wend
end if
%>
<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 dosearch1(){
if(!confirm("别急,此模块正在制作中")){
	  return
	}

}
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 =""

    if(document.all.EmpGender.checked){//name search
	searchFields = searchFields +  ","  + document.all.EmpGender.value
	  searchValue = searchValue + "," + document.all.EmpGendervalue.options[document.all.EmpGendervalue.selectedIndex].value
	}
	if(document.all.MarrType.checked){//diqu search
	 searchFields = searchFields +  ","  + document.all.MarrType.value
	 searchValue = searchValue + "," + document.all.MarrTypevalue.options[document.all.MarrTypevalue.selectedIndex].value
	}
	if(document.all.EmpHireDep.checked){//diqu search
	 searchFields = searchFields +  ","  + document.all.EmpHireDep.value
	 searchValue = searchValue + "," + document.all.EmpHireDepvalue.options[document.all.EmpHireDepvalue.selectedIndex].value
	}
	if(document.all.Empbirthday.checked){
	 searchFields = searchFields +  ","  + document.all.Empbirthday.value
	searchValue = searchValue + "," + document.all.startdate.value 
	}
	
		if(document.all.Empcompany.checked){
	 searchFields = searchFields +  ","  + document.all.Empcompany.value
	  searchValue = searchValue + "," + document.all.companyname.value 
	}
	if(document.all.Empmobile.checked){
	 searchFields = searchFields +  ","  + document.all.Empmobile.value
	  searchValue = searchValue + "," + document.all.Empmobileid.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


    	document.form1.submit()

	
}
</script>

<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</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">
    <tr bgcolor="#9933FF"> 
      <td height="22" align="right" nowrap><div align="center"><span lang="zh-cn"> 
      &nbsp; </span></div></td>
      <td align="right" nowrap><div align="center" class="style1">查询字段</div></td>
      <td colspan="2"><div align="center" class="style1">查询值</div></td>
    </tr>
	
    <tr> 
      <td width="3%" align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="EmpGender" type="checkbox" id="EmpGender" value="录入人">
          </span></div></td>
      <td width="28%" align="right" nowrap class="Caption"><span lang="zh-cn"><font size="2">姓名:</font></span></td>
      <td colspan="2" class="ValueArea"><select name="EmpGendervalue" size="1" class="Text" id="EmpGendervalue" style="width:100%">
	  <%if fncheckupart(1)=true or fncheckupart(2)=true or fncheckupart(3)=true  then%>
       <%call select_str( str_ql,1,"")%>
	  <%else%>
	   <option value="<%=session("name")%>"><%=session("name")%></option>
	   
          <%end if%>
        </select> </td>
    </tr>
    <tr> 
      <td align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="MarrType" type="checkbox" id="MarrType" value="城市">
          </span></div></td>
      <td align="right" nowrap class="Caption">地区:</td>
      <td colspan="2" class="ValueArea"><select name="MarrTypevalue" size="1" class="select" id="select" style="width:100%">
         <%if fncheckupart(1)=true or fncheckupart(2)=true or fncheckupart(3)=true  then
		 response.write(createSel("地区",""))
		      else
			  response.write(usersel(""))
			  end if%>
    
        </select></td>
    </tr>
  
    <tr> 
      <td align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="Empbirthday" type="checkbox" id="Empbirthday" value="redate">
          </span></div></td>
      <td align="right" nowrap class="Caption">时间:</td>
      <td class="ValueArea"><input name="startdate" type="text"  id="startdate"  class="text" onclick="getDate(this,'2')" readonly style="cursor:hand"></td>
    
    </tr>
	    <tr> 
      <td width="3%" align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="Empcompany" type="checkbox" id="Empcompany" value="公司名称">
          </span></div></td>
      <td width="28%" align="right" nowrap class="Caption"><span lang="zh-cn"><font size="2"> 
        客户名称:</font></span></td>
      <td colspan="2" class="ValueArea"> <input type="text" name="companyname" id="companyname" class="text"> </td>
    </tr>
	 <tr> 
      <td width="3%" align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="Empmobile" type="checkbox" id="Empmobile" value="手机">
          </span></div></td>
      <td width="28%" align="right" nowrap class="Caption"><span lang="zh-cn"><font size="2"> 
        手机:</font></span></td>
      <td colspan="2" class="ValueArea"> <input type="text" name="Empmobileid" id="Empmobileid" class="text"> </td>
    </tr>
    <tr> 
      <td width="3%" align="right" nowrap class="Caption"><div align="center"><span lang="zh-cn"> 
          <input name="EmpHireDep" type="checkbox" id="EmpHireDep" value="客户等级">
          </span></div></td>
      <td width="28%" align="right" nowrap class="Caption"><span lang="zh-cn"><font size="2">意向情况:</font></span></td>
      <td colspan="2" class="ValueArea"> <select name="EmpHireDepvalue" size="1" class="select" id="select2">
     <option value="" />
	  <option value="已购买">已购买</option>
	  <option value="意向客户">意向客户</option>
 <option value="无价值">无价值</option>
        </select> </td>
    </tr>
  </table>
</fieldset>
  <table width="98%" border="0" align="center">
    <tr> 
      <td width="9%" nowrap><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="82%" nowrap><!--DWLayoutEmptyCell-->&nbsp; </td>
      <td width="9%" nowrap onClick="dosearch()" style="cursor:hand"> <div align="right"><span lang="zh-cn"><font size="2"><img src="images/Search.gif" width="17" height="17" align="absmiddle">查询</font></span></div></td>
    </tr>
  </table>
  <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 + -