´íÎóÌáʾ£º
Microsoft OLE DB Provider for ODBC Drivers ´íÎó '80040e14'
[Microsoft][ODBC Microsoft Access Driver] ÈÕÆÚµÄÓï·¨´íÎó ÔÚ²éѯ±í´ïʽ 'sqgw Like '%%' and Birthday between #1950-1-1# and ##' ÖС£
/web-2005/find/comsearchlist.asp£¬ÐÐ40
Ô´´úÂ룺<% session timeout=1
if request.Form("age1")="" then
session("cc")=#1950-1-1#
else
if request.Form("age1")<>"" then session("cc")=request.Form("age")
end if
if request.Form("condition1")<>"" and request.Form("bachelor1")="" then
session("aa")=request.Form("sex")
session("ee")=request.Form("nationality")
session("ff")=request.Form("huji")
session("bb")=request("job")
session("dd")=request("edate")
sql="SELECT * FROM humanresource WHERE nationality='" + session("ee") + "' and huji= '" + session("ff") + "' and sqgw Like '%" & session("bb") & "%' and sex= '" + session("aa") + "' and Birthday between #"&session("cc")&"# and #"&session("dd")&"# "
else
if request.Form("condition1")="" and request.Form("bachelor1")="" then
sql="SELECT * FROM humanresource WHERE sqgw Like '%" & session("bb") & "%' and Birthday between #"&session("cc")&"# and #"&session("dd")&"# "
end if
end if
if request.Form("condition1")<>"" and request.Form("bachelor1")<>"" then
session("gg")=request("bachelor")
sql="SELECT * FROM humanresource WHERE nationality='" + session("ee") + "' and huji= '" + session("ff") + "' and sqgw Like '%" & session("bb") & "%' and sex= '" + session("aa") + "' and Birthday between #"&session("cc")&"# and #"&session("dd")&"# and bachelor= '" + session("gg") + "'"
else
if request.Form("condition1")="" and request.Form("bachelor1")<>"" then
sql="SELECT * FROM humanresource WHERE sqgw Like '%" & session("bb") & "%' and Birthday between #"&session("cc")&"# and #"&session("dd")&"# and bachelor= '" + session("gg") + "' "
end if
end if
set rs_search=Server.CreateObject("ADODB.RecordSet")
rs_search.open sql,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>¸´ºÏËÑË÷</title>
<style>
<!--
td { font-size: 9pt;font_name:ËÎÌå;; line-height: 16pt}
a:hover { color: #ff0000; text-decoration: underline; font-size: 9pt }
a { font-size: 9pt; color: #0000FF; text-decoration: none }
p { font-size: 9pt; font-family: "ËÎÌå"; line-height: 11pt}
a:link {
color: #333333;
}
.style1 {color: #666666}
.style3 {color: #333333}
-->
</style>
</head>
<body bgcolor="dddddd">
<div align="center">
<table width="567" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="567" height="21" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="52" height="21" align="center" valign="top" class="style1" bgcolor="#999999"><strong>񅧏</strong></td>
<td width="35" align="center" valign="top" class="style1" bgcolor="#AAAAAA"><strong>ÐÔ±ð</strong></td>
<td width="76" align="center" valign="top" bgcolor="#999999" class="style1"><strong>³öÉúÈÕÆÚ</strong></td>
<td width="70" align="center" valign="top" bgcolor="#AAAAAA" class="style1"><strong>¼®¹á</strong></td>
<td width="70" align="center" valign="top" bgcolor="#999999" class="style1"><strong>»§¿Ú</strong></td>
<td width="46" align="center" valign="top" bgcolor="#AAAAAA" class="style1"><strong>ѧÀú</strong></td>
<td width="60" align="center" valign="top" bgcolor="#999999" class="style1"><strong>»éÒö×´¿ö</strong></td>
<td width="60" align="center" valign="top" bgcolor="#AAAAAA" class="style1"><strong>½¡¿µ×´¿ö</strong></td>
<td width="98" align="center" valign="top" bgcolor="#999999" class="style1" ><strong>²é¿´ÏêϸÐÅÏ¢</strong></td>
</tr>
</table></td>
</tr>
<tr>
<% if rs_search.eof then%>
<script language="javascript">
alert("ÎÞ·ûºÏÌõ¼þµÄÄÚÈÝ£¡")
history.back(1)
</script>
<%response.end()
end if
'·ÖÒ³'
rs_search.pagesize=9
page=CLng(Request("page"))
if page<1 then page=1
rs_search.absolutepage=page
for i=1 to rs_search.pagesize %>
<td height="21" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="52" height="21" align="center" valign="top" bgcolor="#BEBEBE"><%=rs_search("ID")%></td>
<td width="35" align="center" valign="top" bgcolor="#C9C9C9"><div align="center"><%=rs_search("SEX")%></div></td>
<td width="76" align="center" valign="top" bgcolor="#BEBEBE"><%=rs_search("BIRTHDAY")%></td>
<td width="70" align="center" valign="top" bgcolor="#C9C9C9"><div align="center"><%=rs_search("nATIONALITY")%></div></td>
<td width="70" align="center" valign="top" bgcolor="#BEBEBE"><%=rs_search("HUJI")%></td>
<td width="46" align="center" valign="top" bgcolor="#C9C9C9"><%=rs_search("BACHELOR")%></td>
<td width="60" align="center" valign="top" bgcolor="#BEBEBE"><%=rs_search("MARRIAGE")%></td>
<td width="60" align="center" valign="top" bgcolor="#C9C9C9"><%=rs_search("HEALTH")%></td>
<td width="98" align="center" valign="top" bgcolor="#BEBEBE"><a href="detail.asp?ID=<%= rs_search("ID") %>" target="_blank">ÏêϸÐÅÏ¢<a/></td>
</tr>
</table></td>
</tr>
<%rs_search.movenext
total=total+1
if rs_search.eof then exit for
next %>
<tr>
<td height="21" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="349" height="21" valign="top" class="style1">
<% if page<>1 then %> <a href=<%=path%>?page=1 class="l">µÚÒ»Ò³</a>
<a href=<%=path%>?page=<%=(page-1)%> class="l">ÉÏÒ»Ò³</a>
<%end if
if page<>rs_search.pagecount then %>
<a href=<%=path%>?page=<%=(page+1)%> class="l">ÏÂÒ»Ò³</a>
<a href=<%=path%>?page=<%=rs_search.pagecount%> class="l">×îºóÒ»Ò³</a>
<%end if %>
<td width="218" valign="top" class="style1"><div align="right">
<% If Not rs_search.EOF Or Not rs_search.BOF Then 'ÏԼǼµ¼º½ÐÅÏ¢%>
<font color="#00CCFF" class="style3">´Ó <%=(page-1)*3+1%> µ½ <%=(page-1)*3+total%> ¹²
<%=rs_search.recordcount%></font> <span class="style3">Ìõ¼Ç¼</span>
<% End If %>
</div>
</tr>
</table>