<!--#include file="Inc/SysProduct.asp" -->
<!--#include file="inc/Skin_css.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from HrDemand order by id desc"
rs.open sql,conn,1,1

dim MaPerPage
MaPerPage=4

dim text,checkpage
text="0123456789"
Rs.PageSize=MaPerPage
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next

If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if

call list

'显示帖子的子程序
Sub list()
Start="公司招聘"
%>
<!-- #include file="Head.asp" -->
<TABLE class="xmtable" border=0 align="center" cellPadding=0 cellSpacing=12 bgcolor="#FFFFFF">
  <tr> 
    <td  height="450" valign="top" Class="tdbg_left">
    <!--left-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">

      <tr>
        <td height="10"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><% call ShowUserLogin() %>
              </td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td height="5"></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人才招聘</td>
        </tr>
        <tr>
          <td height="20"><div align="center"><a href="HrDemand.asp">人 
            才 招 聘</a></div></td>
        </tr>
        <TR>
          <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
        </TR>
        <tr>
          <td height="20"><div align="center"><a href="HrPolicy.asp">人 
            才 策 略</a></div></td>
        </tr>
        <TR>
          <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
        </TR>
      </table>
      </td>
    <TD width=1 background=images/MainLine.gif></TD>  
    <td valign="top" bgcolor="#FFFFFF">
    <!--middle-->
    <table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="670" valign="top"><table width="670" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><% If IsFlash8="Yes" Then %>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="<%=width8%>" height="<%=High8%>">
                  <param name="movie" value="<%=BannerUrl8%>">
                  <param name="quality" value="high">
                  <param name="wmode" value="transparent">
                  <embed src="<%=BannerUrl8%>" width="<%=width8%>" height="<%=High8%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
                </object>
                <% Else %>
                <img src="<%=BannerUrl8%>" width="<%=width8%>" height="<%=High8%>">
                <% end If%>
            </td>
          </tr>
        </table>
          <br>
          <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                              border=0>
            <TBODY>
              <TR>
                <TD class="title_b"></TD>
                <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" 
                                border=0>
                    <TBODY>
                      <TR>
                        <TD width=98 class="title_c">人才招聘</TD>
                        <TD width="555" class="title_right">　</TD>
                      </TR>
                    </TBODY>
                </TABLE></TD>
              </TR>
              <TR>
                <TD vAlign=bottom colSpan=2 height=5><TABLE cellSpacing=0 cellPadding=0 width="100%" 
                                border=0>
                    <TBODY>
                      <TR>
                        <TD bgColor=#e3e3e3 
                                height=1></TD>
                      </TR>
                    </TBODY>
                </TABLE></TD>
              </TR>
            </TBODY>
          </TABLE>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <%
if not rs.eof then
i=0
do while not rs.eof
%>
              <TR>
                <TD 
                  height=1><br>
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" >
                      <tr bgcolor="#DFDFDF">
                        <td width="82" height="22" align="center" bgcolor="#eeeeee" >职位名称：</td>
                        <td colspan="2" bgcolor="#eeeeee" >&nbsp;<%=rs("HrName")%> </td>
                        <td width="181" bgcolor="#eeeeee" >&nbsp;<a href="HrDemandAccept.asp?Quarters=<%=rs("HrName")%>"><font color="#FF0000">应聘此岗位</font></a> </td>
                      </tr>
                      <tr bgcolor="#DFDFDF">
                        <td width="82" height="22" align="center" bgcolor="#eeeeee" >工作地点：</td>
                        <td colspan="3" valign="top" bgcolor="#eeeeee" >&nbsp;<%=rs("HrAddress")%> </td>
                      </tr>
                      <tr bgcolor="#DFDFDF">
                        <td width="82" height="22" align="center" bgcolor="#eeeeee" >工资待遇：</td>
                        <td width="204" bgcolor="#eeeeee">&nbsp;<%=rs("HrSalary")%></td>
                        <td width="78" align="center" bgcolor="#eeeeee" >发布日期：</td>
                        <td bgcolor="#eeeeee" >&nbsp;<%=rs("HrDate")%> </td>
                      </tr>
                      <tr bgcolor="#DFDFDF">
                        <td height="26" align="center" bgcolor="#eeeeee" >需求人数：</td>
                        <td align="center" bgcolor="#eeeeee"><div align="left">&nbsp;<%=rs("HrRequireNum")%> 人</div></td>
                        <td align="center" bgcolor="#eeeeee">有效期限：</td>
                        <td align="center" bgcolor="#eeeeee"><div align="left">&nbsp;<%=rs("HrValidDate")%></div></td>
                      </tr>
                      <tr bgcolor="#DFDFDF">
                        <td width="82" height="26" align="center" bgcolor="#eeeeee" ><font color=#000066>具体要求：</font></td>
                        <td colspan="3" align="center" bgcolor="#eeeeee"><table width="100%"  border="0" cellpadding="5" cellspacing="0" >
                            <tr>
                              <td class="News-05"><%=rs("HrDetail")%></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr bgcolor="#F7F7F7">
                        <td height="10" colspan="4"><img src="Images/Hrbackup.gif" width="96" height="10"></td>
                      </tr>
                  </table></TD>
              </TR>
              <% 
i=i+1 
if i >= MaPerpage then exit do 
rs.movenext 
loop 
end if 
%>
          </table></td>
      </tr>
      <TR>
        <TD 
                  height=25 bgcolor="#D8D8D8"><div align="right">
            <%
Response.write "全部"
Response.write "共" & Cstr(Rs.RecordCount) & "条招聘信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
Response.write "第" & Cstr(CurrentPage) &  "/" & Cstr(rs.pagecount) & "&nbsp;"
If currentpage > 1 Then
response.write "<a href='HrDemand.asp?&page="+cstr(1)+"'>&nbsp;首页&nbsp;</a>"
Response.write "<a href='HrDemand.asp?page="+Cstr(currentpage-1)+"'>&nbsp;上一页&nbsp;</a>"
Else
Response.write "&nbsp;上一页&nbsp;"
End if
If currentpage < Rs.PageCount Then
Response.write "<a href='HrDemand.asp?page="+Cstr(currentPage+1)+"'>&nbsp;下一页&nbsp;</a>"
Response.write "<a href='HrDemand.asp?page="+Cstr(Rs.PageCount)+"'>&nbsp;尾页&nbsp;</a>"
Else
Response.write ""
Response.write "&nbsp;下一页&nbsp;"
End if
Response.write "转到第"
response.write"<select name='sel_page' onChange='javascript:location=this.options[this.selectedIndex].value;'>"
    for i = 1 to Rs.PageCount
       if i = currentpage then 
          response.write"<option value='HrDemand.asp?page="&i&"&id="&id&"' selected>"&i&"</option>"
       else
          response.write"<option value='HrDemand.asp?page="&i&"&id="&id&"'>"&i&"</option>"
       end if
    next
response.write"</select>页"
rs.close
%>
        </div></TD>
      </TR>
    </table>
    </td>
    <TD width=1 background=images/MainLine.gif></TD>    
    <TD width="79" > </TD>
  </tr>
</table>
<%
End sub
%>
<%
rs.close
set rs=nothing
%>
<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>
