?? empmain_basesearch.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 T_User order by F_Id desc ",MM_EmpMain_STRING,1,3
if not rs.eof then
while not rs.eof
str_ql=str_ql&rs("F_UserName")&","
rs.movenext
wend
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<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>
</head>
<body bgcolor="#EAF4FF" class="body">
<fieldset style="padding: 2" class="fiedset"><legend>請輸入查詢條件</legend>
<form name="form1" method="post" action="">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" class="table">
<tr>
<td align="right" nowrap class="listTitle">查詢字段</td>
<td colspan="2" class="listTitle">查詢值</td>
</tr>
<tr>
<td width="6%" align="right" nowrap class="Caption">
<input name="EmpGender" type="checkbox" id="EmpGender" value="F_EClerk">
</td>
<td width="11%" align="right" nowrap class="CaptionS">業務員名:</td>
<td width="83%" 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">
<input name="MarrType" type="checkbox" id="MarrType" value="F_City">
</td>
<td align="right" nowrap class="CaptionS">銷售地區:</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">
<input name="Empbirthday" type="checkbox" id="Empbirthday" value="F_Redate">
</td>
<td align="right" nowrap class="CaptionS">記錄時間:</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="6%" align="right" nowrap class="Caption">
<input name="Empcompany" type="checkbox" id="Empcompany" value="F_CompanyName">
</td>
<td width="11%" align="right" nowrap class="CaptionS">
公司名稱:</td>
<td colspan="2" class="ValueArea"> <input type="text" name="companyname" id="companyname" class="text"> </td>
</tr>
<tr>
<td width="6%" align="right" nowrap class="Caption">
<input name="Empmobile" type="checkbox" id="Empmobile" value="F_Tel">
</td>
<td width="11%" align="right" nowrap class="CaptionS">
聯系電話:</td>
<td colspan="2" class="ValueArea"> <input type="text" name="Empmobileid" id="Empmobileid" class="text"> </td>
</tr>
<tr>
<td width="6%" align="right" nowrap class="Caption">
<input name="EmpHireDep" type="checkbox" id="EmpHireDep" value="F_Levels">
</td>
<td width="11%" align="right" nowrap class="CaptionS">客戶情況:</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>
<table width="98%" border="0" align="center">
<tr>
<td width="82%" nowrap><!--DWLayoutEmptyCell--> </td>
<td width="9%" nowrap onClick="dosearch()" style="cursor:hand" class="CaptionS"> <img src="images/Search.gif" width="17" height="17" align="absmiddle">查詢</td>
</tr>
</table>
<input type="hidden" name="searchfields" value="">
<input type="hidden" name="searchvalues" value="">
<input type="hidden" name="orgURL" value="">
</form>
</fieldset>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -