<%@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="NewResume.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="../company/company_showhire.asp?action=hire";
		document.simplesearch.target="_blank";
		document.simplesearch.submit();		
	}
	if(num==2)
	{
		document.simplesearch.action="../company/company_interviewsend.asp?action=search";
		document.simplesearch.target="_blank";
		document.simplesearch.submit();		
	}
	if(num==3)
	{
		document.simplesearch.action="../company/company_myexpertadd.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="NewResume.asp?position=<%=position%>">选择地区</a>
<%if wid=0 then
Response.Write " > 全国"
wtemp="全国"
end if
if widl<>"" then
Response.Write " > <a href='NewResume.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("NewResume.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="NewResume.asp?workadd=<%=workadd%>">选择职位</a>
<%if pid=0 then Response.Write " > 请选择"
if pidl<>"" then
Response.Write " > <a href='NewResume.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("NewResume.asp?workadd="&workadd&"",100,"[order] asc","",pid)%></div></td>
  </tr>
</table>
  </div>
</div>
<div class="container">
	<div class="maintaba">
		<div class="main_tit"><span></span>最新人才 | <a href="CommondResume.asp">推荐精英人才</a> | <a href="PhotoResume.asp">最新照片人才</a> </div>
	<%Set srcrs= Server.CreateObject(FR_HR_RS)
	srcsql="select top 1000 resume_id,resume_announcedate,resume_name,resume_position,resume_cityid,resume_provinceid,resume_capitalid,resume_edu,resume_sex,resume_pay,Member_command from job_p_resume,job_member where resume_pmember=member_login and member_flag=1 and resume_flag=1 and resume_cnstatus=1 and resume_openness=0"
	if position<>"" then
	srcsql=srcsql&" and (resume_position like '%"&position&"%' or resume_position='0000')"
	end if
	if workadd<>"" then
	srcsql=srcsql&" and (resume_workadd like '%"&workadd&"%' or resume_workadd='0000')"
	end if
	srcsql=srcsql&" order by resume_announcedate desc"
	srcrs.open srcsql,conn,1,1
	if srcrs.eof and srcrs.bof then
	Response.Write"<br><li>对不起，没有相关的数据！</li>"
	else
		totalPut=srcrs.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
				srcrs.move  (page-1)*MaxPerpage
				dim bookmark
				bookmark=srcrs.bookmark
				Call MainInfo()
			else
				page=1
				Call MainInfo()
			end if
		end if
	end if
	srcrs.close
	set srcrs=nothing
	%>
	<%Sub MainInfo()%>
	<form name="simplesearch" action="NewResume.asp" method="post">
	  <table width="98%" border="0" align="center" cellpadding="4" cellspacing="0" style="margin-top:10px;">
		<tr>
		  <td width="7%" align="right" 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>
	  <table width="98%" 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="3%">&nbsp;</td>
		  <td width="9%">姓名</td>
		  <td width="40%">意向职位</td>
		  <td width="16%">现地区</td>
		  <td width="9%">学历</td>
		  <td width="5%">性别</td>
		  <td width="10%">期望月薪</td>
		  <td width="8%">更新时间</td>
		</tr>
	  </table>
	<%
	si=0
	do while not srcrs.eof
	%>
	  <table width="98%" 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 <%if srcrs("Member_command")="1" then Response.Write "bgcolor=""#FDF1CA"""%>>
		  <td width="3%"><input name="checks" type="checkbox" value="<%=srcrs("resume_id")%>" /></td>
		  <td width="9%"><a href="<%=FormatLink(srcrs("resume_announcedate"),1,1,srcrs("resume_id"),0)%>" target="_blank"><%=srcrs("resume_name")%></a> <%if srcrs("Member_command")="1" then%><img src="../Skin/System/commend.gif" width="16" height="15" align="absmiddle" /><%end if%></td>
		  <td width="40%"><a href="<%=FormatLink(srcrs("resume_announcedate"),1,1,srcrs("resume_id"),0)%>" target="_blank"><%=Hireposition(srcrs("resume_position"),1)%></a></td>
		  <td width="16%">
		  <%if srcrs("resume_cityid")<>"" then Response.Write "<font title='"&Hireworkadds(srcrs("resume_provinceid")&"*"&srcrs("resume_capitalid")&"*"&srcrs("resume_cityid"))&"'>"&left(Hireworkadds(srcrs("resume_provinceid")&"*"&srcrs("resume_capitalid")&"*"&srcrs("resume_cityid")),10)&"</font>"
			%></td>
		  <td width="9%"><%if srcrs("resume_edu")<>"" then Response.Write Hireedu(srcrs("resume_edu"))%></td>
		  <td width="5%"><%if srcrs("resume_sex")<>"" then Response.Write Hiresex(srcrs("resume_sex"))%></td>
		  <td width="10%"><%if srcrs("resume_pay")<>"" then Response.Write Hirepay(srcrs("resume_pay"))%></td>
		  <td width="8%"><%if srcrs("resume_announcedate")<>"" then Response.Write FormatDate(srcrs("resume_announcedate"),8)%></td>
		</tr>
	  </table>
	<%si=si+1
	if si>=MaxPerPage then exit do
	srcrs.movenext
	loop
	%>
	<table width="98%" 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%>