www.gusucode.com > 528人才招聘网整站源代码-蓝色经典 精简版 2.0源码程序 > psearchj.asp
<!--#include file="info.asp"--> <!--#include file="conn.asp"--> <% sql="select id,enid,jtzw,hka,city,addtime,sexs,edus from job where enid in (select id from en_user where lock=false and name<>'')" if request("gzdd")<>"0" and request("gzdd")<>"" then sql=sql+" and hka='"&request("gzdd")&"'" if request("job")<>"0" and request("job")<>"" then sql=sql+" and job='"&request("job")&"'" if Trim(request("what"))<>"" then sql=sql+"and jtzw like '%"&Trim(request("what"))&"%'" if request("date")<>"不限" and request("date")<>"" then sql=sql+" and datediff('d',addtime,Now())<"&request("date") sql=sql+" order by id desc" rs.open sql,conn,1,1 %> <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="css.css" type="text/css"> <title>职位普通搜索 - <%=webname%></title> </head> <body> <!--#include file="top.asp"--> <div align="center"> <table border="0" width="760" cellspacing="0" cellpadding="0" id="table1" height="106"> <tr> <td style="border-left: 1px solid #0086DF; border-right: 1px solid #0086DF" width="760" valign="top"> <div align="center"> <table border="0" width="98%" cellspacing="0" cellpadding="0" id="table2" height="164"> <tr> <td style="border: 1px solid #C0C0C0" valign="top"> <div align="center"> <table border="0" width="100%" cellspacing="0" cellpadding="0" id="table3" height="147"> <tr> <td height="40" width="740" background="images/bg11.gif"> <table border="0" width="740" cellspacing="0" cellpadding="0" id="table4" height="31"> <tr> <td width="127"> </td> <td width="587"> <p align="center">地区:<b><% if request("gzdd")="0" then response.write "所有地区" else response.write request("gzdd") end if %></b> 职位类别:<b><% if request("job")="0" then response.write "所有类别" else response.write request("job") end if %></b> 关键字:<b><% if request("what")="" then response.write "所有" else response.write request("what") end if %> </b>找到记录:<b><%=rs.recordcount%></b></td> </tr> </table> </td> </tr> <tr> <td valign="top" align="center"> <% if rs.recordcount=0 then rs.close response.write "暂时没有相关职位!" else rs.pagesize=20 if request("action")="n" then session("page")=session("page")+1 else if request("action")="p" then session("page")=session("page")-1 else if request("action")="f" then session("page")=1 else if request("action")="l" then session("page")=rs.pagecount else if isnumeric(request("page1"))=true then session("page")=clng(request("page1")) else session("page")=1 end if end if end if end if end if if session("page")>rs.pagecount then session("page")=rs.pagecount if session("page")<1 then session("page")=1 rs.absolutepage=session("page") %> <table border="0" width="100%" cellspacing="0" cellpadding="0" id="table5" height="92"> <tr> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="166" align="center"> <b>招 聘 职 位</b></td> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="189" align="center"> <b>招 聘 公 司</b></td> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="96" align="center"> <b>城 市</b></td> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="60" align="center"> <b>性别要求</b></td> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="60" align="center"> <b>学历要求</b></td> <td height="30" bgcolor="#A5DDED" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="100" align="center"> <b>日 期</b></td> </tr> <% set rs2=server.createobject("adodb.recordset") for ii=1 to 20 sql2="select id,name from en_user where id="&rs("enid") rs2.open sql2,conn,1,1 %> <tr> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="166" height="30" align="center" background="images/bg9.gif"><a target =_blank href="job.asp?id=<%=rs("id")%>"> <%=rs("jtzw")%></a></td> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="189" height="30" align="center" background="images/bg9.gif"><a target =_blank href="company.asp?id=<%=rs2("id")%>"> <%=rs2("name")%></a></td> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="96" height="30" align="center" background="images/bg9.gif"> <p align="center"><%=rs("hka")%>·<%=rs("city")%></td> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="60" height="30" align="center" background="images/bg9.gif"> [<%=rs("sexs")%>]</td> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="60" height="30" align="center" background="images/bg9.gif"> [<%=rs("edus")%>]</td> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="100" height="30" align="center" background="images/bg9.gif"> <% a=instr(rs("addtime"),chr(32))-1 response.write Mid(rs("addtime"),1,a) %> </td> </tr> <% rs.movenext if rs.eof then exit for rs2.close next %> <tr> <td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="734" height="42" align="center" colspan="6"><table border="0" width="504" cellspacing="0" cellpadding="0" height="31"> <tr> <td width="120"> <p align="center">当前页码:<font color="#FF0000"><%=session("page")%></font>/<%=rs.pagecount%></td> <td width="225"> <p align="center">< <a href="psearchj.asp?action=f&gzdd=<%=request("gzdd")%>&job=<%=request("job")%>&date=<%=request("date")%>&what=<%=request("what")%>">首页</a> <a href="psearchj.asp?action=p&gzdd=<%=request("gzdd")%>&job=<%=request("job")%>&date=<%=request("date")%>&what=<%=request("what")%>">上一页</a> <a href="psearchj.asp?action=n&gzdd=<%=request("gzdd")%>&job=<%=request("job")%>&date=<%=request("date")%>&what=<%=request("what")%>">下一页</a> <a href="psearchj.asp?action=l&gzdd=<%=request("gzdd")%>&job=<%=request("job")%>&date=<%=request("date")%>&what=<%=request("what")%>">尾页</a> ></td> <form method="POST" action="psearchj.asp?gzdd=<%=request("gzdd")%>&job=<%=request("job")%>&date=<%=request("date")%>&what=<%=request("what")%>"> <td width="159"> <p>跳转到 <input type="text" name="page1" size="4" style="border: 1px solid #000000"> 页 <input type="submit" value="提交" name="B1"></p> </td> </form> </tr> </table> </td> </tr> </table> <% rs.close end if %> </td> </tr> </table> </div> </td> </tr> </table> </div> </td> </tr> </table> </div> <% set rs2=nothing set rs=nothing set conn=nothing %> <!--#include file="base.asp"--> </body> </html>