<!--#include file="../Include/Head.asp"-->
<%session("ListPage")=session("nowpage")%>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="Index.asp">招聘列表</a></li>
    </ul>
    </div>
    
    
    <div class="formbody">
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th width="5%">ID</th>
        <th width="30%">职位名称</th>
        <th width="15%">招聘/应聘人数</th>
        <th width="15%">学历</th>
        <th width="15%">薪资</th>
        <th width="10%">截止日期</th>
        <th width="10%">操作</th>
        </tr>
        </thead>
        <tbody>
        <%
        Page=Max(Cnum(sqlshow(Request("page"))),1)
		Set Rs=server.createobject("adodb.recordSet")
		Sql="select * from Jin_Jobs order by SortID 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><input class="SortID" name="SortID" value="<%=rs("SortID")%>" id2="<%=rs("SysID")%>" style="width:80%; text-align:center;" /></td>
        <td><%=Rs("Position")%></td>
        <td><%=Rs("Hiring")%> / <%If getTbCount("Jin_Resume","where Pid="&Rs("sysID")&" And Not Recycle")>0 Then%><a href="Resume.asp?Pid=<%=Rs("sysID")%>" class="tablelink" title="查看应聘简历"><%=getTbCount("Jin_Resume","where Pid="&Rs("sysID")&" And Not Recycle")%>人</a><%Else%>暂无<%End If%></td>
        <td><%=Rs("Educational")%></td>
        <td><%=Rs("Salary")%></td>
        <td><%=Rs("EndDate")%></td>
        <td>
		<a href="Add.asp?action=edit&id=<%=Rs("sysID")%>" class="tablelink">编辑</a>
		<a href="javascript:void(0)" class="tablelink hidden JobDel" id2="<%=Rs("sysID")%>">删除</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="Add.asp" class="tablelink"><i class="red">发布招聘</i></a>
		</div>
        <ul class="paginList">
        <%Response.write ShowPages(Pages,Page,"Index.asp")%>
        </ul>
    </div>
    
    </div> 
    </div> 
    
    
<script>
$(document).ready(function(e){
autoSave("SortID");
autoDel("JobDel");
});
</script>


<%Call BackFoot()%>