<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
Dim SQL,Rs
Dim JobClass,Area,PublishDate,Key,KeyClass
Dim JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time

'//获取参数
Param = Replace_Text(Request("Param"))
If Not IsNumeric(Param) Then Param = 0

SQL = "Select j.JobId,j.Comid,j.JobName,j.Work_Area,j.Work_City,j.Edus,j.Deal,j.Number,j.Require,j.LastUpdate_Time,c.CompanyName,c.Properity,c.Workers From [pH_Job_Base] As j Inner Join [pH_Company_Base] As c On j.Comid=c.Comid Where c.Flag=1 And Len(j.JobName)>0 And j.JobFlag=1 And DateDiff(d,j.End_Date,GetDate())<=0  And c.Industry="&Param&" Order By j.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>
<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 %> - 职位搜索 - 按行业搜索</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>
<SCRIPT language=JavaScript>
<!--
function showoperatealert(id)
{
		if (id==2)
        {
		{
		  	thisForm.target='_blank';
			thisForm.action="../Company/Info/Com_Joblist.asp";
			thisForm.submit();
		}
		}
  if (id==3)
  {
	  <% If IsArray(Session("Person")) Then %>
	    thisForm.target='rslt';
		thisForm.action="../Person/Per_SendApps.asp";
		openwin();
		thisForm.submit();
	 <% Else %>
	    alert("你没有登陆，请个人用户登陆后使用");
		location.href="../Person/Per_Login.asp";
	 <% End if %>
   }
}

function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall' )
       e.checked = form.chkall.checked;
    }
}

function openwin()
  {
    disp=window.open("","rslt","width=500,height=320,resizable=yes,scrollbars=yes");
	disp.focus();
  }
 //-->
</SCRIPT>

</head>
<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../Header/Person_Search.asp" --></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
 <form name=thisForm action="" method=POST>

  <tr>
    <td align="center">
<table width="950" 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&Param="&Param&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&Param="&Param&""">上页</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 %>&Param=<%= Param %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
		    <% Next %>
           </select>
            <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&Param="&Param&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&Param="&Param&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %>

		  
		  </td>
        </tr>
      </table>
        <table width="950" border="0" align="center" cellpadding="2" cellspacing="1">
          <tr align="center" bgcolor="#F97A44"> 
            <td width="5%" height="25"><strong><font color="#FFFFFF">选择</font></strong></td>
            <td width="30%"><strong><font color="#FFFFFF">职位名称</font></strong></td>
            <td width="32%" height="25" bgcolor="#F97A44"><strong><font color="#FFFFFF">公司名称</font></strong></td>
            <td width="10%" height="25"><strong><font color="#FFFFFF">工作地区</font></strong></td>
            <td width="12%"><font color="#FFFFFF"><strong>职位月薪</strong></font></td>
            <td height="25"><strong><font color="#FFFFFF">发布日期</font></strong></td>
          </tr>
          <%
For i = 1 to Psize
 If Rs.Eof Then Exit For
 JobId              = Rs("JobId")
 Comid              = Rs("Comid")
 JobName            = Left(Rs("JobName"),17)
 Work_Area          = Rs("Work_Area")
 Work_City          = Rs("Work_City")
 Edus               = Rs("Edus")
 Deal               = Rs("Deal")
 Number1			= Rs("Number")
 CompanyName		= Left(Rs("CompanyName"),17)
 Properity			= Cls_Properity(Rs("Properity"))
 Workers			= Cls_Workers(Rs("Workers"))
 Require			= Rs("Require")
 LastUpdate_Time    = FormatDateTime(Rs("LastUpdate_Time"),2)

 '//学历要求
 If Edus = 0 Then
  Edus_Str = "不限"
 Else
  Edus_Str = Cls_Edus(Edus)
 End if
 '//待遇
 Deal_Str = "面议"
 If Deal <> 0 Then Deal_Str = Deal&"元"
 '//工作地区
 Work_Addr = Work_Area
 If Work_City <> "" Then Work_Addr = Work_City
 '//招聘人数
 Number_Str = "若干人"
 If Number1 <> 0 Then Number_Str = Number1&"人"
 '//职位要求
 If Require <> "" Then
  Require = Replace(Require,"<br>","")
  Require = Left(Require,50)&"..."
 End if
 %>
          <tr> 
            <td rowspan="3" align="center" valign="top" bgcolor="#FFF7F0"> 
              <input type=checkbox value="<%=Jobid%>" name=jobid>
            </td>
            <td height="25"><a href="../Company/Info/Com_Job.asp?Comid=<%= Comid %>&Param=<%= Jobid %>" target="_blank" class="line1"><%= JobName %></a></td>
            <td height="25"><a href="../Company/Info/Com_View.asp?Param=<%= Comid %>" target="_blank" class="line1"><%= CompanyName %></a></td>
            <td height="25" align="center"><%= Work_Addr %></td>
            <td height="25" align="center"><%= Deal_Str %></td>
            <td height="25" align="center"><%= LastUpdate_Time %></td>
          </tr>
          <tr> 
            <td height="22" colspan="5"><font color="#666666">公司性质</font><font color="#666666">：<%= Properity %> | <font color="#666666">公司规模</font>：<%= Workers %> | <font color="#666666">学历要求</font>：<%= Edus_Str %> | <font color="#666666">招聘人数</font>：<%= Number_Str %></font></td>
          </tr>
          <tr> 
            <td height="25" colspan="5"><font color="#666666">职位要求</font><font color="#666666">：<%= Require %></font></td>
          </tr>
          <tr> 
            <td height="1" colspan="6" bgcolor="#dddddd"></td>
          </tr>
          <% 
 Rs.Movenext 
Next
 %>
        </table>
        <table width="950" border="0" cellspacing="0" cellpadding="2">
          <tr> 
            <td width="40%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
            <td width="60%" align="right"> <% 
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1&Param="&Param&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&Param="&Param&""">上页</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 %>&Param=<%= Param %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
                <% Next %>
              </select> <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&Param="&Param&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&Param="&Param&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %>
            </td>
          </tr>
          <tr>
            <td height="30">
<input onClick=CheckAll(this.form) type=checkbox value=on name=chkall>
              全选</td>
            <td align="right" valign="bottom"><img src="../Images/Person/Search1_t1.gif" width="80" height="20" onClick=javascript:showoperatealert(3)> 
              <img src="../Images/Person/Search1_t2.gif" width="80" height="20" onClick=javascript:showoperatealert(2)> 
            </td>
          </tr>
        </table>
</td>
  </tr>
</form>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td>
      <!--#include file="../Include/Footer.asp" -->
    </td>
  </tr>
</table>

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