<!--#include file="../Include/Head.asp"-->

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="Resume.asp">人才库</a></li>
    </ul>
    </div>
    
    
    <div class="formbody">
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th width="5%">ID</th>
        <th width="15%">应聘职位</th>
        <th width="10%">姓名</th>
        <th width="10%">性别</th>
        <th width="10%">年龄</th>
        <th width="10%">籍贯</th>
        <th width="15%">毕业院校</th>
        <th width="10%">联系电话</th>
        <th width="15%">操作</th>
        </tr>
        </thead>
        <tbody>
        <%
		Pid=Clng(Request_QueryString("Pid"))
		If Pid=0 Then whereStr="" Else whereStr="Where Pid="&Pid&""
        Page=Max(Cnum(sqlshow(Request("page"))),1)
		Set Rs=server.createobject("adodb.recordSet")
		Sql="select * from Jin_Resume "&whereStr&" order by Recycle asc,sysID desc"
		Rs.open Sql,conn,1,1
        ListPageSize=12
        '显示页数
        AllCount=Rs.RecordCount
        Pages=Fix(AllCount/ListPageSize)
        If Pages*ListPageSize<AllCount Then Pages=Pages+1	
        PastCount=(Page-1)*ListPageSize
        If AllCount>PastCount Then Rs.Move PastCount
        ShowCount=Min(AllCount-PastCount,ListPageSize)
        For i=1 To ShowCount
		%>
        <tr height="40">
        <td><%=rs("SysID")%></td>
        <td><%=getJobsValue(rs("Pid"),"Position")%></td>
        <td><%=Rs("rName")%></td>
        <td><%=Rs("rSex")%></td>
        <td><%=Rs("rAge")%></td>
        <td><%=Rs("rHomeTown")%></td>
        <td><%=Rs("rGraduated")%></td>
        <td><%=Rs("rTel")%></td>
        <td>
		<a href="?action=Recycle&id=<%=Rs("sysID")%>" class="tablelink">回收</a>
		<a href="javascript:void(0)" class="tablelink CountyDel" id2="<%=Rs("sysID")%>">删除</a>
		<a href="View.asp?ID=<%=Rs("sysID")%>" class="tablelink">查看简历</a>
		</td>
        </tr> 
        <%
		Rs.movenext
		next
		Rs.close
		Set Rs=nothing
		%>
        </tbody>
    </table>
	
    <div class="pagin">
    	<div class="message">
		共<i class="blue"> <%=AllCount%> </i> 条招聘信息 &nbsp;&nbsp; 每页 <i class="blue">12</i> 条 &nbsp;&nbsp;
		<a href="<%=session("ListPage")%>" class="tablelink"><i class="red">返回招聘列表</i></a>
		</div>
        <ul class="paginList">
        <%Response.write ShowPages(Pages,Page,"Resume.asp")%>
        </ul>
    </div>
    
    </div> 
    </div> 

<%Call BackFoot()%>