<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%if request.cookies("bjx")("shjianame")="" then
response.Redirect "admin_login.asp"
response.End
end if
%>
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from [shjia] where username='"&request.cookies("bjx")("shjianame")&"' ",conn,1,1
id=rs("shjiaid")
%>
<%
set rsu=server.CreateObject("adodb.recordset")
rsu.open "select * from [shjia] where username='"&request.cookies("bjx")("shjianame")&"' ",conn,1,1
lx=rsu("lx")
%>
  <%
  if lx=0 then
  response.write "<font color=red>&nbsp对不起，您是目前是免费用户，不能使用此项功能！请马上升级成为<a href=../gbook.asp>C型用户</a></font>"
  end if
    if lx=1 or lx=2 then
  %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link href="../mt_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #FF0000}
-->
</style>
</head>

<body>
<%
if request.cookies("bjx")("shjianame")="" then
response.Redirect "jobgl.asp"
response.End
end if
dim selectjobid
'//删除产品
selectjobid=request("selectjobid")
if selectjobid<>"" then
conn.execute "delete from job1 where jobid in ("&selectjobid&")"
'response.Redirect "ypgl.asp"
response.Write "<script language=javascript>alert('你选择的用户已删除');window.location.href='ypgl.asp';</script>"
'response.End
end if
%>
<script>
function test()
{
  if(!confirm('确认删除吗？')) return false;
}
</script>
<form name="form1" method="post" action="">
<table class="tableBorder" width="872" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6DBF7">
<tr> 
<td align="center" background="../admin/images/bg_3.gif" height="25" colspan="9" width="858">
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td width="50%" align="center"><b><a href="jobgl.asp"><font color="#FFFFFF">招聘管理</font></a></b></td>
      <td width="50%" align="center"><b><font color="#FFFFFF">应聘管理</font></b></td>
    </tr>
  </table>
</td>
</tr>
<tr bgcolor="#D6DBF7" align="center"> 
<td width="96">序号 </td>
<td width="96">应聘职位 </td>
<td width="96">姓名</td>
<td width="96">年龄</td>
<td width="96">性别</td>
<td width="97">地址</td>
<td width="97">电话</td>
<td width="97">应聘时间</td>
<td width="97">操作</td>
</tr>
<%
If Len(Trim(Request("page")))=0 Then  '返回目标页码的判断
page=1 
Else 
page=CInt(Trim(Request("page"))) 
End If
set rs=server.CreateObject("adodb.recordset")
			rs.open "select * from job1 where shjiaid="&id&" order by jobid desc",conn,1,1
	rs.PageSize=20
if not rs.eof then
  rs.AbsolutePage=page
    for k=1 to rs.PageSize 
			%>
<tr bgcolor="#D6DBF7"> 
<td align="center" width="96"><%=rs("jobid")%></td>
<td STYLE='PADDING-LEFT: 10px' align="center" width="96"><%=rs("zhiwei")%>
</td>
<td align="center" width="96"><a href=ypxx.asp?id=<%=rs("jobid")%>> <%=rs("name")%>
</a> </td>
<td align="center" width="96"><%=rs("age")%></td>
<td align="center" width="96"><%=rs("sex")%></td>
<td align="center" width="97"><%=left(rs("dizhi"),6)%></td>
<td align="center" width="97"><%=rs("tel")%></td>
<td align="center" width="97"><%=rs("time")%>                                                                        
</td>
<td align="center" width="97"><input name="selectjobid" type="checkbox" id="selectjobid" value="<%=rs("jobid")%>">                                    
</td>
</tr>
<% 
rs.movenext
    if rs.EOF Then Exit For
    next
  end if
%>
<tr> 
<td bgcolor="#D6DBF7" colspan="9" align="right" width="858"> 
<input type="submit" name="Submit" value="删 除" onClick="return test();">
</td>
</tr>	
</table>
</form>

<table border="0" width="100%">
  <tr>
    <td width="100%" align="center"><table width="520" border="0" align="center" cellpadding="5" >  
  <tr>
    <td align="right"><%
  if page <>1 then
     Response.Write "<a href=ypgl.asp?page=1>首页</a> "
  end if
  tmppage = page - 1 
  if tmppage <= 0 then 
     tmppage = 1 
  else
     Response.Write"<a href=ypgl.asp?page="&tmppage&">上一页</a>"
  end if
  tmppage = page + 1 
  if tmppage >rs.PageCount then 
     tmppage = page
  else
     Response.Write " <a href=ypgl.asp?page="&tmppage&">下一页</a> "
  end if 
  if Cstr(page) <> Cstr(rs.PageCount) and Cstr(rs.PageCount) <> 0 then
    Response.Write "<a href=ypgl.asp?page="&rs.PageCount&">尾页</a>"
  end if
  if Cstr(rs.PageCount) <> 0 then
  Response.Write "每页显示<font color=red>20</font>条应聘信息  第<font color='blue'>" & page & "/"&rs.PageCount&"</font>页"
  end if
  Response.Write "  共有<font color='blue'>"&rs.RecordCount&"</font>条应聘信息"
 rs.close
%> 
</td></tr></table></td>
  </tr>
</table>

</body>
<%end if%>




