📄 hire_powersearchresult.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%
numbers=Trim(Request("numbers"))
If numbers<>"" And IsNumeric(numbers) Then
numbers=CLng(numbers)
Else
numberss=Trim(Request("numberss"))
If numberss<>"" And IsNumeric(numberss) Then
numbers=CLng(numberss)
Else
numbers=20
end if
End If
taxis=Trim(Request("taxis"))
If taxis<>"" And IsNumeric(taxis) Then
taxis=CLng(taxis)
Else
taxiss=Trim(Request("taxiss"))
If taxiss<>"" And IsNumeric(taxiss) Then
taxis=CLng(taxiss)
Else
taxis=1
end if
End If
detail=Trim(Request("detail"))
If detail<>"" And IsNumeric(detail) Then
detail=CLng(detail)
Else
details=Trim(Request("details"))
If details<>"" And IsNumeric(details) Then
detail=CLng(details)
Else
detail=2
end if
End If
trade=Replace(trim(request("trade")),"'","")
trades=Replace(trim(request("trades")),"'","")
position=Replace(trim(request("position")),"'","")
positions=Replace(trim(request("positions")),"'","")
workadd=Replace(trim(request("workadd")),"'","")
workadds=Replace(trim(request("workadds")),"'","")
datetime=Replace(trim(request("datetime")),"'","")
datetimes=Replace(trim(request("datetimes")),"'","")
keyword=Replace(trim(request("keyword")),"'","")
if keyword="输入公司/职位关键字" then
keyword=""
end if
keywordtype=trim(request("keywordtype"))
if keywordtype<>"" And IsNumeric(keywordtype) then
keywordtype=Clng(keywordtype)
else
keywordtype=1
end if
Dim Action
Dim FoundErr,ErrMsg
Dim page,si
Dim totalPut
MaxPerpage=numbers
strFileName="hire_searchresult.asp?numberss="&numbers&"&taxiss="&taxis&"&details="&detail&"&trade="&trade&"&trades="&trades&"&position="&position&"&positions="&positions&"&workadd="&workadd&"&workadds="&workadds&"&datetime="&datetime&"&datetimes="&datetimes&"&keyword="&keyword&"&keywordtype="&keywordtype&""
page=Trim(Request("page"))
If page<>"" And IsNumeric(page) Then
If page<1 Or Len(page)>10 Then
page=1
Else
page=CLng(page)
End If
Else
page=1
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<meta content="all" name="robots" />
<meta name="author" content="web@yjys.net,嘉挚科技" />
<meta name="Copyright" content="www.yjys.net,版权所有,请勿转载" />
<title>职位搜索结果-职位搜索中心-<%=SiteTitle%></title>
<SCRIPT language=javascript>
function unSearchLayer(){
document.all.bodyly.style.display='none';
document.getElementById("SearchDiv").style.display='none';
}
function JumpSearchLayer(fname,vname,tname,Searchtype){
document.all.bodyly.style.display="block";
document.all.bodyly.style.width=document.body.clientWidth;
document.all.bodyly.style.height=document.body.clientHeight;
document.getElementById("SearchDiv").style.display='block';
document.all.SearchDiv.style.top=document.documentElement.scrollTop+150;
document.all.SearchDiv.style.left=document.body.clientWidth/2-270;
var xmlhttp;
try
{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch (e){try{xmlhttp=new XMLHttpRequest();}
catch (e){}
}
}
xmlhttp.open("get","..//inc/search.asp?fname="+escape(fname)+"&vname="+escape(vname)+"&tname="+escape(tname)+"&Searchtype="+escape(Searchtype)+ "&t=" + new Date().getTime());
xmlhttp.onreadystatechange=function()
{if(4==xmlhttp.readyState){
if(200==xmlhttp.status){msg=xmlhttp.responseText;}
else{msg="网络链接失败!";}
}else{msg="<img src='..//skin/skin1/loing.gif'>数据读取中,请稍后…";
}
var ch=document.getElementById("SearchLayer");
ch.innerHTML=msg;
}
xmlhttp.send(null);
return false;
}
//-->
</script><script language="javascript">
function confirmX(num)
{
var ids = document.getElementsByName("checks");
var check=false;
var a=0;
if (ids != null)
{
for (i=0; i<ids.length; i++)
{
var obj = ids(i);
if (obj.checked==true)
{
check=true;
a+=1
}
}
if(check==false){alert("请选择操作对象!");return false;}
}
if(num==1)
{
document.simplesearch.action="../person/person_resumesend.asp?action=hire";
document.simplesearch.target="_blank";
document.simplesearch.submit();
}
if(num==2)
{
document.simplesearch.action="../person/person_resumesend.asp?action=hire";
document.simplesearch.target="_blank";
document.simplesearch.submit();
}
if(num==3)
{
document.simplesearch.action="../person/person_favoriteadd.asp";
document.simplesearch.target="_blank";
document.simplesearch.submit();
}
return false;
}
function checkAll(box1) {
var ids = document.getElementsByName("checks");
if (ids != null) {
for (i=0; i<ids.length; i++) {
var obj = ids(i);
obj.checked = box1.checked;
}
}
}
</script>
<link href="../css/<%=MainWebCss%>.css" rel="stylesheet" type="text/css">
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
<body>
<center>
<%call head()%>
<div class="mainmenu"><ul>
<li><a href="<%=SiteUrl&InstallDir%>search/hire_speedsearch.asp">快速搜索</a></li>
<li><a href="<%=SiteUrl&InstallDir%>search/hire_workaddsearch.asp">区域招聘</a></li>
<li><a href="<%=SiteUrl&InstallDir%>search/hire_tradesearch.asp">行业招聘</a></li>
</ul></div>
<div class="place"><div class="catalogName l"></div><div class="navMenu l">您现在的位置:<a href="<%=Siteurl%>"><%=Sitename%></a> >> 职位搜索结果</div>
</div>
<div class="maintaba">
<div class="mainonetit"><span></span>您的搜索条件</div>
<div class="searchmaincon">
<div class="adsearch"><!--搜索结果区域广告--></div>
<%Set rs= Server.CreateObject(FR_HR_RS)
sql="select * from job_c_hire where hire_status=1"
if FR_HR_DataBaseType=1 then
sql=sql&" and datediff(d,hire_enddate,"&FR_HR_Now&")<=0"
Else
sql=sql&" and datediff('d',hire_enddate,"&FR_HR_Now&")<=0"
End If
if trade<>"" then
sql=sql&" and hire_trade like '%"&trade&"%'"
end if
if position<>"" then
sql=sql&" and hire_position like '%"&position&"%'"
end if
if workadd<>"" then
sql=sql&" and hire_workadd like '%"&workadd&"%'"
end if
if datetime<>"" and IsNumeric(datetime) then
if FR_HR_DataBaseType=1 then
sql=sql&" and datediff(d,hire_announcedate,"&FR_HR_Now&"-"&datetime&")<=0"
else
sql=sql&" and datediff('d',hire_announcedate,"&FR_HR_Now&"-"&datetime&")<=0"
end if
end if
if keyword<>"" then
if keywordtype=1 then
sql=sql&" and hire_comname like '%"&keyword&"%'"
else
sql=sql&" and hire_place like '%"&keyword&"%'"
end if
end if
select case taxis
case 1
sql=sql&" order by hire_announcedate desc"
case 2
sql=sql&" order by hire_announcedate asc"
case 3
sql=sql&" order by hire_visitcount desc"
end select
rs.open sql,conn,1,1
if rs.eof and rs.bof then
Response.Write"<br><li>对不起,尚未找到符合您查询的结果!</li>"
else
totalPut=rs.recordcount
if (page-1)*MaxPerpage>totalput then
if (totalPut mod MaxPerpage)=0 then
page= totalPut \ MaxPerpage
else
page= totalPut \ MaxPerpage + 1
end if
end if
if page=1 then
Call MainInfo()
else
if (page-1)*MaxPerpage<totalPut then
rs.move (page-1)*MaxPerpage
dim bookmark
bookmark=rs.bookmark
Call MainInfo()
else
page=1
Call MainInfo()
end if
end if
end if
rs.close
set rs=nothing
%>
<%Sub MainInfo()%>
<form name="simplesearch" action="<%=InstallDir%>search/hire_searchresult.asp" method="post">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="7%" style="background:url(../skin/skin1/tit_bg.gif) bottom repeat-x"><input type="checkbox" name="checkbox" value="checkbox" onClick="javascript: checkAll(this)" />
全选 </td>
<td width="93%" align="right" style="background:url(../skin/skin1/tit_bg.gif) bottom repeat-x"><!--<input name="Input" type="button" value="显示选中的职位" class="inputs" onClick="confirmX(1);" /> -->
<input name="Input2" type="button" value="申请选中的职位" class="inputs" onClick="confirmX(2);" />
<input name="Input3" type="button" value="放入收藏夹" class="inputs" onClick="confirmX(3);" />
每页显示<select name="numbers" size="1" style="z-index:0" onchange="javascript:window.location='<%=JoinChar(strFileName)%>numbers='+this.options[this.selectedIndex].value;"><option value="10" <%if numbers=10 then Response.Write("selected")%>>10条</option><option value="20" <%if numbers=20 then Response.Write("selected")%>>20条</option><option value="50" <%if numbers=50 then Response.Write("selected")%>>50条</option></select> <select name="taxis" size="1" onchange="javascript:window.location='<%=JoinChar(strFileName)%>taxis='+this.options[this.selectedIndex].value;"><option value="1" <%if taxis=2 then Response.Write("selected")%> >按发布时间降序</option><option value="2" <%if taxis=2 then Response.Write("selected")%>>按发布时间升序</option><option value="3" <%if taxis=3 then Response.Write("selected")%>>按关注度排序</option></select> 查看<select name="detail" size="1" onchange="javascript:window.location='<%=JoinChar(strFileName)%>detail='+this.options[this.selectedIndex].value;"><option value="1" <%if detail=1 then Response.Write("selected")%> >列表</option><option value="2" <%if detail=2 then Response.Write("selected")%>>明细</option></select></td>
</tr>
</table>
<%if detail=1 then%>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" style=" background-color:#D9F3FF;border-bottom:1px #D9E9FF solid;white-space:normal;word-break:break-all;overflow:auto;">
<tr>
<td width="25%">职位名称</td>
<td width="35%">公司名称</td>
<td width="30%">工作地点</td>
<td width="10%">发布时间</td>
</tr>
</table>
<%end if
si=0
do while not rs.eof
if detail=1 then
%>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" onmouseover="this.style.background='#F7F8FE'" onmouseout="this.style.background=''" style="border-bottom:1px #D9E9FF solid;white-space:normal;word-break:break-all;overflow:auto;">
<tr>
<td width="25%"><input name="checks" type="checkbox" value="<%=rs("hire_id")%>" /> <a href="<%=FormatLink(rs("hire_announcedate"),2,3,rs("hire_id"),0)%>" target="_blank"><%=left(rs("hire_place"),10)%></a></td>
<td width="35%"><A href="<%=FormatLink(0,2,1,rs("company_id"),0)%>" target="_blank"><%=left(rs("hire_comname"),20)%></A></td>
<td width="30%"><%=left(Hireworkadds(rs("hire_workadd")),18)%></td>
<td width="10%"><%=FormatDate(rs("hire_announcedate"),8)%></td>
</tr>
</table>
<%else%>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" onmouseover="this.style.background='#F7F8FE'" onmouseout="this.style.background=''" style="border-bottom:1px #D9E9FF solid;white-space:normal;word-break:break-all;overflow:auto;">
<tr>
<td><span style="width:100%; font-weight:bold; font-size:14px">
<input name="checks" type="checkbox" value="<%=rs("hire_id")%>" /> <a href="<%=FormatLink(rs("hire_announcedate"),2,3,rs("hire_id"),0)%>" target="_blank"><font color="#0066CC"><u><%=replace(rs("hire_place"),keyword,"<font color=red>"&keyword&"</font>")%></u></font></a></span></td>
</tr>
<tr>
<td><li style="width:70%; font-weight:bold; color:#333333; margin:0;"><A href="<%=FormatLink(0,2,1,rs("company_id"),0)%>" target="_blank"><FONT color="#333333"><%=replace(rs("hire_comname"),keyword,"<font color=red>"&keyword&"</font>")%></FONT></A><font color="#666666" style="font-weight:normal"> (工作地点:<%=Hireworkadds(rs("hire_workadd"))%>)</font></li>
<li style="width:18%; margin:0;">发布时间:<%=FormatDate(rs("hire_announcedate"),8)%></li>
<li style="width:12%; margin:0;"><input name="" type="button" value="申请职位" class="inputs" onclick="window.open('../person/person_resumesend.asp?action=hire&checks=<%=rs("hire_id")%>')"/></li></td>
</tr>
<tr>
<td>职位描述:<%=left(CheckStrHTML(rs("hire_introduce")),110)%></td>
</tr>
</table>
<%end if
si=si+1
if si>=MaxPerPage then exit do
rs.movenext
loop
%>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="7%"> </td>
<td width="93%"><%If totalput>0 Then
Call Showpage(strFileName,totalput,MaxPerPage,false,true,"条")
End If%></td>
</tr>
<tr>
<td style="background:url(../skin/skin1/tit_bg.gif) bottom repeat-x"><input type="checkbox" name="checkbox" value="checkbox" onClick="javascript: checkAll(this)" />
全选 </td>
<td align="right" style="background:url(../skin/skin1/tit_bg.gif) bottom repeat-x"><!--<input name="Input" type="button" value="显示选中的职位" class="inputs" onClick="confirmX(1);" />-->
<input name="Input2" type="button" value="申请选中的职位" class="inputs" onClick="confirmX(2);" />
<input name="Input3" type="button" value="放入收藏夹" class="inputs" onClick="confirmX(3);" />
每页显示<select name="numbers" size="1" style="z-index:0" onchange="javascript:window.location='<%=JoinChar(strFileName)%>numbers='+this.options[this.selectedIndex].value;"><option value="10" <%if numbers=10 then Response.Write("selected")%>>10条</option><option value="20" <%if numbers=20 then Response.Write("selected")%>>20条</option><option value="50" <%if numbers=50 then Response.Write("selected")%>>50条</option></select> <select name="taxis" size="1" onchange="javascript:window.location='<%=JoinChar(strFileName)%>taxis='+this.options[this.selectedIndex].value;"><option value="1" <%if taxis=2 then Response.Write("selected")%> >按发布时间降序</option><option value="2" <%if taxis=2 then Response.Write("selected")%>>按发布时间升序</option><option value="3" <%if taxis=3 then Response.Write("selected")%>>按关注度排序</option></select> 查看<select name="detail" size="1" onchange="javascript:window.location='<%=JoinChar(strFileName)%>detail='+this.options[this.selectedIndex].value;"><option value="1" <%if detail=1 then Response.Write("selected")%> >列表</option><option value="2" <%if detail=2 then Response.Write("selected")%>>明细</option></select></td>
</tr>
</table>
</form>
<%End Sub%>
</div>
</div>
<%call bottom()%>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -