<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%
Dim Action
Dim page,si
Dim totalPut
MaxPerpage=20
workadd=Replace(trim(request("workadd")),"'","")
position=Replace(trim(request("position")),"'","")
strFileName="CommondHire.asp?workadd="&workadd&"&position="&position&""
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>
<link href="../css/<%=MainWebCss%>" 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>
<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>
<body>
<%call head()%>
<div class="container">
	<div class="navdh">您现在的位置：<a href="<%=Siteurl%>"><%=Sitename%></a> &gt;&gt; 推荐热招职位</div>
</div>
<div class="container">

	<div class="maintaba">
    <div class="main_tit">快速查询职位</div>
    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><%
if workadd<>"" then
	if len(workadd)>4 then
		widl=clng(left(workadd,4))
		widr=clng(right(workadd,4))
		wid=widl
	else
		widl=clng(workadd)
		wid=widl
	end if
else
	wid=0
end if
%>
<div style="width:100%; height:30px; line-height:30px; font-size:14px;"><b><a href="../More/CommondHire.asp?position=<%=position%>">选择地区</a>
<%if wid=0 then
Response.Write " > 全国"
wtemp="全国"
end if
if widl<>"" then
Response.Write " > <a href='CommondHire.asp?position="&position&"&workadd="&widl&"'>"&ProvinceName(widl)&"</a>"
wtemp=wtemp&ProvinceName(widl)
end if
if widr<>"" then
Response.Write " > "&ProvinceName(widr)
wtemp=wtemp&ProvinceName(widr)
end if
%>
</b></div>
<div class=provincelist><%Response.Write GetProvinceList("CommondHire.asp?position="&position&"",100,"[order] asc","",wid)%></div>

<%if position<>"" then
	if len(position)>4 then
		pidl=clng(left(position,4))
		pidr=clng(right(position,4))
		pid=pidl
	else
		pidl=clng(position)
		pid=pidl
	end if
else
	pid=0
end if
%>
<div style="width:100%; height:30px; line-height:30px; font-size:14px;"><b><a href="../More/CommondHire.asp?workadd=<%=workadd%>">选择职位</a>
<%if pid=0 then Response.Write " > 请选择"
if pidl<>"" then
Response.Write " > <a href='CommondHire.asp?workadd="&workadd&"&position="&pidl&"'>"&PosionName(pidl)&"</a>"
ptemp=PosionName(pidl)
end if
if pidr<>"" then
Response.Write " > "&PosionName(pidr)
ptemp=ptemp&PosionName(pidr)
end if
%>
</b></div>
<div class=poistionlist><%Response.Write GetPoistionList("CommondHire.asp?workadd="&workadd&"",100,"[order] asc","",pid)%></div></td>
  </tr>
</table>
  </div>
</div>
<div class="container">
<div class="maintaba">
<div class="main_tit">推荐热招职位 | <a href="NewHire.asp">最新企业招聘</a> | <a href="VipCom.asp">品牌企业招聘</a> </div>
<div class="searchmaincon">
<%Set rs= Server.CreateObject(FR_HR_RS)
sql="select top 1000 hire_id,hire_announcedate,hire_place,company_id,hire_comname,hire_workadd,hire_introduce from job_c_hire where hire_status=1 and hire_command=1 and datediff("&FR_HR_d&",hire_commandenddate,"&FR_HR_Now&")<=0"
sql=sql&" and datediff("&FR_HR_d&",hire_enddate,"&FR_HR_Now&")<=0"
if position<>"" then
sql=sql&" and hire_position like '%"&position&"%'"
end if
if workadd<>"" then
sql=sql&" and hire_workadd like '%"&workadd&"%'"
end if
sql=sql&" order by hire_announcedate desc"
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="CommondHire.asp" method="post">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
    <tr>
      <td width="7%" style="background:url(../skin/System/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/System/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);" /> 
        </td>
    </tr>
  </table>
<%
si=0
do while not rs.eof
%>
<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>
<%
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%">&nbsp;</td>
    <td width="93%" align="right"><%If totalput>0 Then
	Call Showpage(strFileName,totalput,MaxPerPage,false,true,"条")
End If%></td>
  </tr>
  <tr>
    <td style="background:url(../skin/System/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/System/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);" /> 
        </td>
  </tr>
</table>
</form>
<%End Sub%>
</div>
</div>
</div>
<div class="container">
	<div class="copyright"><center><%call bottom()%></center></div>	
</div>
</body>
</html>
<%CloseConn%>