📄 com_search_all.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<%
Dim SQL,Rs
Dim JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time
'//获取参数
Comid = Session("Company")(2)
UserName = Session("Company")(0)
Save1 = Replace_Text(Request("Save")) '是否保存
Searcher_Name = Replace_Text(Request("Name")) '搜索器名称
Skill = Replace_Text(Request("Skill")) '技能关键字
WorkWillClass = Replace_Text(Request("slt_selectedjobs")) '意向职位类别
AreaWill = Replace_Text(Request("slt_selectedplaces")) '意向工作地区
PublishDate = Replace_Text(Request("PublishDate"))
Edus = Replace_Text(Request("Edus"))
Works = Replace_Text(Request("Works"))
Sex = Replace_Text(Request("Sex"))
MinAge = Replace_Text(Request("Min_Age"))
MaxAge = Replace_Text(Request("Max_Age"))
Door_Area = Replace_Text(Request("door"))
Door_City = Replace_Text(Request("door1"))
Locus_Area = Replace_Text(Request("x_suozaidi"))
Locus_City = Replace_Text(Request("x_suozaidi1"))
AreaWill = Replace(AreaWill,"-","")
'//判断是否保存到搜索器
If Save1 = "1" Then
If Searcher_Name = "" Then
Response.Write "<script>alert('请输入搜索器名称...');window.close();</script>"
Response.End()
End if
'//检测该用户的搜索器是否达到3个
SQL = "Select Count(Ncid) From [pH_Company_Searcher] Where Comid='"&Comid&"'"
Set Rs = Conn.Execute(SQL)
If Rs(0) >= 3 Then
Response.Write "<script>alert('对不起!您已经创建了3个搜索器...');window.close();</script>"
Response.End()
End if
Rs.Close
'//将数据插入到数据库
SQL = "Insert Into [pH_Company_Searcher] (Comid,UserName,Searcher_Name,Skill_Key,PublishDate,AreaWill,Door_Area,Door_City,Locus_Area,Locus_City,Edus,Sex,MinAge,MaxAge,Works,WorkWillClass) Values ('"&Comid&"','"&Username&"','"&Searcher_Name&"','"&Skill&"',"&PublishDate&",'"&AreaWill&"','"&Door_Area&"','"&Door_City&"','"&Locus_Area&"','"&Locus_City&"',"&Edus&","&Sex&","&MinAge&","&MaxAge&","&Works&",'"&WorkWillClass&"')"
Conn.Execute(SQL)
End if
'//组织查询参数
SQL = "Select I.Perid,I.RealName,I.Sex,I.Edus,I.Age,I.LastSchool,I.Speciality,I.ResumeMode,I.WorkWill1,B.LastUpdate_Time,I.Appraise,I.PersonPhone From pH_Person_Base As B,pH_Person_Info As I Where B.Perid=I.Perid And Len(I.RealName)>0 And I.ResumeKeep<>1"
'//技能关键字
If Skill <> "" Then
SQL = SQL&" And I.Skill_Key Like '%"&Skill&"%'"
End if
'//意向职位类别
If WorkWillClass <> "0-0" Then
SQL = SQL&" And (I.WorkWillClass1 Like '%"&WorkWillClass&"%' or I.WorkWillClass2 Like '%"&WorkWillClass&"%' or I.WorkWillClass3 Like '%"&WorkWillClass&"%')"
End if
'//意向工作地区
If AreaWill <> "不限不限" Then
SQL = SQL&" And (I.AreaWill1 Like '%"&AreaWill&"%' or I.AreaWill2 Like '%"&AreaWill&"%' or I.AreaWill3 Like '%"&AreaWill&"%')"
End if
'//户口省份
If Door_Area <> "不限" Then
SQL = SQL&" And I.Door_Area='"&Door_Area&"'"
End if
'//户口城市
If Door_City <> "不限" Then
SQL = SQL&" And I.Door_City='"&Door_City&"'"
End if
'//更新日期
If PublishDate <> 0 Then
SQL = SQL&" And DateDiff(d,B.LastUpdate_Time,Getdate())<"&PublishDate
End if
'//学历
If Edus <> 0 Then
SQL = SQL&" And I.Edus>="&Cstr(Edus)
End if
'//工作经验
If Works <> 0 Then
SQL = SQL&" And I.Works>="&Cstr(Works)
End if
'//性别
If Sex <> 2 Then
SQL = SQL&" And I.Sex="&Cstr(Sex)
End if
'//年龄
If MinAge <> 0 And MaxAge <> 0 Then
SQL = SQL&" And I.Age<="&Cstr(MinAge)&" And I.Age>="&Cstr(MaxAge)
Elseif MinAge <> 0 And MaxAge = 0 Then
SQL = SQL&" And I.Age<="&Cstr(MinAge)
Elseif MinAge = 0 And MaxAge <> 0 Then
SQL = SQL&" And I.Age>="&Cstr(MaxAge)
End if
'//现所在省份
If Locus_Area <> "不限" Then
SQL = SQL&" And I.Locus_Area='"&Locus_Area&"'"
End if
'//现所在城市
If Locus_City <> "不限" Then
SQL = SQL&" And I.Locus_City='"&Locus_City&"'"
End if
'//设置排序的方式
SQL = SQL&" Order By B.LastUpdate_Time Desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open SQL,Conn,1,1
Rs.Pagesize = 20
Psize = Rs.PageSize
PCount = Rs.PageCount
RCount = Rs.RecordCount
PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
PageNo = 1
Elseif PageNo > PCount Then
PageNo = PCount
End if
If Not Rs.Eof Then Rs.AbsolutePage = PageNo
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Css.css" type=text/css rel=stylesheet>
<title>求职岗位搜索 -- <%= Cls_WebName %></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<SCRIPT language=JavaScript src="../js/funlib.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/ua.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/ftiens4.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/persontreeviewnodes.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/areacityselector.js"></SCRIPT>
<SCRIPT language=JavaScript src="../js/joball.js"></SCRIPT>
<script language="JavaScript">
function openwin()
{
disp=window.open("","rslt","width=500,height=320,resizable=yes");
disp.focus();
}
</script>
<body>
<!--#include file="../Include/Header_New.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="../Person/Per_Search_Base.asp" method="post" target="_blank" name="theForm" >
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="25" align="center" bgcolor="f5f5f5"><strong>简历搜索</strong>
<select style="width:100px;" id=select2
name=slt_category>
</select> <select style="width:100px;" id=select3
name=slt_subcategory>
</select> <select style="width:100px;" id=slt_workplacearea
name=slt_workplacearea>
</select> <select style="width:100px;" id=select
name=slt_workplacecity>
</select> <select style="width:60px;" name=publishdate>
<option value=1>近一天</option>
<option value=2>近二天</option>
<option value=3>近三天</option>
<option value=7>近一周</option>
<option value=14>近两周</option>
<option value=30>近一月</option>
<option value=60>近两月</option>
<option value=90>近三月</option>
</select> <input name=key style="width:100px;" id=txt_keyword2 size="16" maxlength=50 >
<SCRIPT language=JavaScript>
var objJobCPSelector, objJobCCSelector, objAreaSelector, objCitySelector
objAreaSelector = new PlaceAssociateList(document.theForm.slt_workplacearea, null, document.theForm.slt_workplacecity, ALOptions);
objAreaSelector.addedOptions = new Array("不限-|工作地区不限");
objAreaSelector.init();
objCitySelector = new PlaceAssociateList(document.theForm.slt_workplacecity, document.theForm.slt_workplacearea, null, CLOptions);
objCitySelector.incPValue = true;
objCitySelector.incPValueFormat = "%PText%-不限"
objCitySelector.addedOptions = new Array("不限-不限|不限");
objCitySelector.init();
objJobCPSelector = new JobCategoryAssociateList(document.theForm.slt_category, null, document.theForm.slt_subcategory, PCLOptions);
objJobCPSelector.addedOptions = new Array("0-|职位类别不限");
objJobCPSelector.init();
objJobCCSelector = new JobCategoryAssociateList(document.theForm.slt_subcategory, document.theForm.slt_category, null, CCLOptions);
objJobCCSelector.incPValue = true;
objJobCCSelector.incPValueFormat = "%PText%-不限"
objJobCCSelector.addedOptions = new Array("0-0|不限");
objJobCCSelector.init();
</SCRIPT> <input type="submit" name="Submit3" value=" 搜 索 ">
<input name="keyclass" type="hidden" id="keyclass" value="1"></td>
</tr>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<Form action="" method="post" name="theForm">
<%
For i = 1 to Psize
If Rs.Eof Then Exit For
Perid = Rs(0)
RealName = Rs(1)
Age = Rs(4)
LastSchool = Rs(5)
Speciality = Rs(6)
ResumeMode = Rs(7)
WorkWill1 = Rs(8)
LastUpdate_Time = Rs(9)
Appraise = Left(Rs(10),100)&"..."
PersonPhone = Rs(11)
If Len(ResumeMode) < 1 Then ResumeMode = 1
%>
<tr>
<td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../Images/Person.gif" width="20" height="20" align="absmiddle">
<span class="font-14"><a href="../Person/Resume/Resume_<%= ResumeMode %>.asp?Param-<%= Perid %>.html" target="_blank"><b><font color="#ff3300"><%= RealName %></font></b></a> <b><font color="#ff3300">电话:<%= PersonPhone %></font></b></span></td>
<td width="30%" align="right">更新日期:<%= LastUpdate_Time %></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" bgcolor="#cccccc"></td>
</tr>
<tr>
<td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="font-14"><font color="0000cc"><b><%= WorkWill1 %></b></font></td>
<td width="30%" align="right">
<a href="javascript:" onclick="window.open('Com_SendApplication.asp?perid=<%= Perid %>','rslt','width=500,height=320,resizable=yes');"><u>邀请面试</u></a>
<a href="javascript:" onclick="window.open('Com_Option.asp?param=persondb&perid=<%= Perid %>','rslt','width=500,height=320,resizable=yes');"><u>加入英才库</u></a>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="25"><font color="0000cc">[性别]</font><%= Cls_Sex(Rs("Sex")) %> <font color="0000cc">[年龄]</font><%= Age %> <font color="0000cc">[学历]</font><%= Cls_Edus(Rs("Edus")) %> <font color="0000cc">[毕业学校]</font><%= LastSchool %> <font color="0000cc">[所学专业]</font><%= Speciality %></td>
</tr>
<tr>
<td height="25"><%= Appraise %></td>
</tr>
<tr>
<td height="1" bgcolor="#f5f5f5"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<%
Rs.Movenext
Next
%>
</Form>
</table>
<table width="99%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td height="25" align="right">共<Font color="#FF0000"><%= RCount %></Font>条
分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页
<%
If PageNo > 1 Then
Response.write "<a href=""?PageNo=1&Skill="&Skill&"&slt_selectedjobs="&WorkWillClass&"&slt_selectedplaces="&AreaWill&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&door="&Door_Area&"&door1="&Door_City&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">首页</a> "
Response.write "<a href=""?PageNo="&PageNo-1&"&Skill="&Skill&"&slt_selectedjobs="&WorkWillClass&"&slt_selectedplaces="&AreaWill&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&door="&Door_Area&"&door1="&Door_City&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">上页</a> "
Else
Response.write "首页 "
Response.write "上页 "
End if
%>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)" style="width:40px;">
<% For i = 1 to PCount %>
<option value="?PageNo=<%= i %>&Skill=<%= Skill %>&slt_selectedjobs=<%= WorkWillClass %>&slt_selectedplaces=<%= AreaWill %>&PublishDate=<%= PublishDate %>&Edus=<%= Edus %>&Works=<%= Works %>&Sex=<%= Sex %>&Min_Age=<%= MinAge %>&Max_Age=<%= MaxAge %>&door=<%= Door_Area %>&door1=<%= Door_City %>&x_suozaidi=<%= Locus_Area %>&x_suozaidi1=<%= Locus_City %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
<% Next %>
</select>
<%
If PageNo < PCount Then
Response.write "<a href=""?PageNo="&PageNo+1&"&Skill="&Skill&"&slt_selectedjobs="&WorkWillClass&"&slt_selectedplaces="&AreaWill&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&door="&Door_Area&"&door1="&Door_City&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">下页</a> "
Response.write "<a href=""?PageNo="&PCount&"&Skill="&Skill&"&slt_selectedjobs="&WorkWillClass&"&slt_selectedplaces="&AreaWill&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&door="&Door_Area&"&door1="&Door_City&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">尾页</a>"
Else
Response.write "下页 "
Response.write "尾页"
End if
%>
</td>
</tr>
</table>
<SCRIPT language=javascript>
window.onload = function(){HigheLine("<%= Key %>");}
</SCRIPT>
<!--#include file="../Include/Footer_New.asp" -->
</body>
</html>
<%
Call CloseDB
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -