<!--#include file="Conn.asp"-->
<!--#include file ="Check_Manager.asp"-->
<%
If Request.Form("cndok")="Go" Then Response.Redirect "Job_Need.asp?page="&Trim(Request.Form("pp"))
set rs=server.createobject("adodb.recordset")
sqltext="Select * From [Job] order by ID desc"
rs.open sqltext,conn,1,1
dim MaxPerPage
MaxPerPage=10

Dim text,checkpage
text="0123456789"
Rs.PageSize=MaxPerPage
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
%>
<script language="JavaScript" type="text/JavaScript">
function DelHonor()
{
   if(confirm("确定要删除此吗？"))
     return true;
   else
     return false;	 
}
</script>
<html>
<head>
<titel></titel>
<LINK href="admin/admin.css" type=text/css rel=stylesheet>
</head>
<body>
<table width="100%" height="33%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"> <br> <strong><br>
      </strong> <br> <br> 
      <table width="550" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="25"> <div align="center"><strong>招 聘 管 理<br>
              <br>
              </strong></div></td>
        </tr>
        <tr> 
          <td><div align="center"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="3" class=tableBorder>
                <tr> 
                  <td width="7%" height="25" background="admin/admin_bg_1.gif"> 
                    <div align="center">ID</div></td>
                  <td width="28%" background="admin/admin_bg_1.gif"> <div align="center">招聘对象</div></td>
                  <td width="24%" background="admin/admin_bg_1.gif"> <div align="center">招聘人数</div></td>
                  <td width="17%" background="admin/admin_bg_1.gif"> <div align="center">发布时间</div></td>
                  <td width="24%" background="admin/admin_bg_1.gif"> <div align="center">操作</div></td>
                </tr>
                <%
if not rs.eof then
i=0
do while not rs.eof
%>
                <tr> 
                  <td height="22"> <div align="center"><%=rs("id")%></div></td>
                  <td>&nbsp;&nbsp;<%=rs("JObject")%></td>
                  <td> <div align="center"><%=rs("JRenshu")%></div></td>
                  <td> <div align="center"><%=rs("JTime")%></div></td>
                  <td> <div align="center"><a href="Job_Need_Edit.asp?action=update&id=<%=rs("ID")%>">修改</a> 
                      | <a href="Job_Need_Edit.asp?action=del&id=<%=rs("ID")%>" onClick="return DelHonor();">删除</a> 
                      | <a href="Job_Need_Edit.asp?action=add">添加</a></div></td>
                </tr>
                <% 
i=i+1 
If i >= MaxPerpage Then Exit do 
rs.Movenext 
loop 
end if 
%>
              </table>
              <table width="100%" border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td> 
                    <form name="form1" method="post" action="">
<%
Response.write "全部"
Response.write "共 </font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'> 条招聘信息</font></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
Response.write "第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) &  "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font></strong>&nbsp;"
If currentpage > 1 Then
response.write "<a href='Job_Need.asp?page="+cstr(1)+"'>首页 </a>"
Response.write "<a href='Job_Need.asp?page="+Cstr(currentpage-1)+"'> 上一页 </a>"
Else
Response.write " 上一页 "
End if
If currentpage < Rs.PageCount Then
Response.write "<a href='Job_Need.asp?page="+Cstr(currentPage+1)+"'> 下一页 </a>"
Response.write "<a href='Job_Need.asp?page="+Cstr(Rs.PageCount)+"'> 尾页</a>&nbsp;&nbsp;"
Else
Response.write "下一页&nbsp;&nbsp;"
End if
response.write "</td><td align='right'>"
response.write "转到：<input type='text' name='pp' size=4 maxlength=4 class=smallInput value="&Currentpage&">&nbsp;"
response.write "<input type='submit'  value='Go'  name='cndok'>&nbsp;&nbsp;"
%>
                    </form> </td>
                </tr>
              </table>
<%
rs.close
call CloseConn()
%>
            </div></td>
        </tr>
      </table>
      <br> <br> </td>
  </tr>
</table>
</body>
</html>