<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
'地区分站参数
Dim c_City,c_Name
If Session("c_City") = "" Then 
 Response.Redirect "../Index.asp"
 Response.End()
End if
c_City = Session("c_City")
c_Name = Session("c_Name")

Dim SQL,Rs
Dim Ncid,Locid,CompanyName,JobName,InviteDate,Place

Locus = Replace_Text(Request("Locus"))
Publishdate = Replace_Text(Request("Publishdate"))
Key = Replace_Text(Request("Key"))

SQL = "Select j.Ncid,j.Locid,j.CompanyName,j.JobName,j.Users,j.AddDate,j.Locus_Area  From [pH_Locale_Jobs] As j Inner Join [pH_Locale_Base] As b On j.Locid=b.Ncid Where Len(j.JobName)>0 And j.JobName like '%"&Key&"%' And b.Cityid="&c_City&""

If Locus <> "0" Then SQL = SQL & " And j.Locus_Area='"&Locus&"'"
If Publishdate <> "0" Then SQL = SQL & " And DateDiff(d,j.AddDate,Getdate())<="&Publishdate

SQL = SQL & " Order By j.Ncid 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>
<script language="JavaScript" src="../js/Company_Basicinfo.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName&" | "&c_Name&"站" %> -- 猎头职位</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>
<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../c_Header/Person_Headhunt.asp" --></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td align="center"><table width="950" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td valign="top"> 
           <table width="100%" border="0" cellspacing="0" cellpadding="4">
              <tr> 
                <td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
                <td width="50%" align="right"> <% 
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">上页</a>&nbsp;"    
		  Else
		   Response.write "首页&nbsp;"
		   Response.write "上页&nbsp;" 
		  End if
		   %> <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" style="width:40px;">
                    <% For i = 1 to PCount %>
                    <option value="?PageNo=<%= i %>&Locus=<%= Locus %>&Publishdate=<%= Publishdate %>&Key=<%= Key %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
                    <% Next %>
                  </select> <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %> </td>
              </tr>
            </table>
			
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
              <tr align="center"> 
                <td width="30%" height="25" bgcolor="#F97A44"><font color="#FFFFFF"><strong>职位名称</strong></font></td>
                <td width="35%" height="25" bgcolor="#F97A44"><font color="#FFFFFF"><strong>企业名称</strong></font></td>
                <td bgcolor="#F97A44"><font color="#FFFFFF"><strong>工作地区</strong></font></td>
                <td width="12%" height="25" bgcolor="#F97A44"><font color="#FFFFFF"><strong>招聘人数</strong></font></td>
                <td width="12%" height="25" bgcolor="#F97A44"><font color="#FFFFFF"><strong>发布日期</strong></font></td>
              </tr>
              <% 

For i = 1 to Psize
 If Rs.Eof Then Exit For
 Ncid				= Rs("Ncid")
 Locid				= Rs("Locid")			
 CompanyName		= Rs("CompanyName")
 JobName			= Rs("JobName")
 AddDate			= FormatDateTime(Rs("AddDate"),2)
 Locus_Area			= Rs("Locus_Area")
 Users				= Rs("Users")
 
 If Users = 0 Then Users = "若干"
 %>
              <tr <% If i mod 2 = 0 Then %>bgcolor="#f3f3f3"<% End if %>> 
                <td height="25"><a href="Info/LocaleJob.asp?Comid=<%= Locid %>&Param=<%= Ncid %>" target="_blank"><%= JobName %></a></td>
                <td height="25"><a href="Info/LocaleCompany.asp?Param=<%= Locid %>" target="_blank"><%= CompanyName %></a></td>
                <td height="25" align="center"><%= Locus_Area %></td>
                <td height="25" align="center"><%= Users %>人</td>
                <td height="25" align="center"><%= AddDate %></td>
              </tr>
              <%
 Rs.Movenext 
Next
 %>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="4">
              <tr> 
                <td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
                <td width="50%" align="right"> <% 
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">上页</a>&nbsp;"    
		  Else
		   Response.write "首页&nbsp;"
		   Response.write "上页&nbsp;" 
		  End if
		   %> <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" style="width:40px;">
                    <% For i = 1 to PCount %>
                    <option value="?PageNo=<%= i %>&Locus=<%= Locus %>&Publishdate=<%= Publishdate %>&Key=<%= Key %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
                    <% Next %>
                  </select> <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&Locus="&Locus&"&Publishdate="&Publishdate&"&Key="&Key&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %> </td>
              </tr>
            </table></td>
        </tr>
      </table> 
      
</td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td>
      <!--#include file="../c_Include/Footer.asp" -->
    </td>
  </tr>
</table>

</body>
</html>
<% 
Rs.Close
Set Rs = Nothing
Call CloseDB
 %>
