ZPmag.asp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>管理员登陆</title>
  6. <link rel="stylesheet" type="text/css" href="../bdcommx/css.css">
  7. </head>
  8. <!--#include file="../bdcommx/connxyz.asp"-->
  9. <%call log_chk()
  10. call passChk()%>
  11. <body>
  12. <table width="100%" height="42" border="0" cellpadding="0" cellspacing="0">
  13. <tr>
  14. <td width="4%" height="42" align="center" background="../images/top_bg2.jpg"><img src="../images/dian.gif" width="10" height="10" /></td>
  15. <td width="96%" background="../images/top_bg2.jpg" class="hui12">后台管理:&gt;&gt; 招聘管理</td>
  16. </tr>
  17. </table>
  18. <br />
  19. <table width="94%" border="0" align="center" cellpadding="0" cellspacing="1" class="tab_bdr">
  20. <tr>
  21. <td align="center" class="tb_bg" colspan="5">招 聘 管 理</td>
  22. </tr>
  23. <tr>
  24. <td height="26" align="center" class="NcB_bg">职位名称</td>
  25. <td width="120" align="center" class="NcB_bg">发布时间</td>
  26. <td width="120" align="center" class="NcB_bg">查看简历</td>
  27. <td width="120" align="center" class="NcB_bg">操作</td>
  28. <td width="60" align="center" class="NcB_bg">状态</td>
  29. </tr><%
  30. dim theact
  31. theact=request("theact")
  32. dim CurrentPage '当前页
  33. dim TotalPages '总页数
  34. MaxPerPage=20
  35. Set rs1= Server.CreateObject ("ADODB.RecordSet")
  36. sql="select * from adzp order by zp_odr asc"
  37. rs1.open sql,conn,1,3
  38. if rs1.eof then
  39. response.Write("")
  40. else
  41. rs1.pagesize=MaxPerPage
  42. If trim(Request("Page"))<>"" then
  43. CurrentPage= CLng(request("Page"))
  44. If CurrentPage> rs1.PageCount then
  45. CurrentPage = rs1.PageCount
  46. End If
  47. Else
  48. CurrentPage= 1
  49. End If
  50. totalPut=rs1.recordcount 'totalput=总记录数
  51. if CurrentPage<>1 then
  52. if (currentPage-1)*MaxPerPage < totalPut then
  53. rs1.move(currentPage-1)*MaxPerPage
  54. end if
  55. end if
  56. do while not rs1.eof and c<20
  57. Set rs2= Server.CreateObject ("ADODB.RecordSet")
  58. sql="select * from adyp where zp_id="&rs1("zp_id")&""
  59. rs2.open sql,conn,1,3
  60. if rs2.eof then
  61. thenum=0
  62. else
  63. thenum=rs2.recordcount
  64. end if
  65. rs2.close
  66. set rs2=nothing
  67. %>
  68. <form id="form1" name="form1" method="post" action="ZPaddsave.asp">
  69. <tr>
  70. <td height="26" align="left" class="NcB_bg"> <%=left(rs1("zp_zw"),12)%>[<font color="#FF0000"><%=rs1("zp_odr")%></font>]</td>
  71. <td height="26" align="center" class="NcB_bg"> <%=formatdatetime(rs1("zp_time"),2)%></td>
  72. <td height="26" align="center" class="NcB_bg Fnt_red"><a href="YPmag.asp?thex=<%=rs1("zp_id")%>">查看</a>[共 <%=thenum%> 份]</td>
  73. <td height="26" align="center" class="NcB_bg"><a href="ZPsee.asp?thex=<%=rs1("zp_id")%>">修改</a> <a href="ZPdel.asp?thex=<%=rs1("zp_id")%>">删除</a> <%if rs1("zp_sta")=0 then%><a href="ZPstop.asp?thex=<%=rs1("zp_id")%>&act=thes">开启</a><%end if%><%if rs1("zp_sta")=1 then%><a href="ZPstop.asp?thex=<%=rs1("zp_id")%>&act=thek">暂停</a><%end if%></td>
  74. <td height="26" align="center" class="NcB_bg Fnt_red"><%if rs1("zp_sta")=0 then%>已暂停<%end if%><%if rs1("zp_sta")=1 then%>已开启<%end if%></td>
  75. </tr></form>
  76. <%
  77. c=c+1
  78. rs1.movenext
  79. loop
  80. rs1.close
  81. set rs1=nothing
  82. %>
  83. </table>
  84. <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  85. <form id="form1" name="form1" method="post" action="">
  86. <tr>
  87. <td height="50" align="center"><%
  88. '------------------------------------------------------页面跳转
  89. dim n,k
  90. if (totalPut mod MaxPerPage)=0 then 'n表示总页数
  91. n= totalPut \ MaxPerPage
  92. else
  93. n= totalPut \ MaxPerPage + 1
  94. end if
  95. k=currentPage
  96. k=currentPage
  97. if k<>1 then
  98. response.write "["+"<a href=?page=1>第一页</a></b>] "
  99. response.write "["+"<a href=?page="+cstr(k-1)+">上一页</a>] "
  100. else
  101. Response.Write "[第一页] [上一页]"
  102. end if
  103. if k<>n then
  104. response.write "["+"<a href=?page="+cstr(k+1)+">下一页</a>] "
  105. response.write "["+"<a href=?page="+cstr(n)+">最后一页</a>] "
  106. else
  107. Response.Write "[下一页] [最后一页]"
  108. end if
  109. '------------------------------------------------------页面跳转msmsms有点小毛病!就是转页没有连带搜索和类别
  110. response.Write("<font color='red'> | </font>共"&n&"页 / "&totalPut&"条信息 / ")
  111. response.Write("当前第"&k&"页")
  112. response.Write(" <select name='page'>")
  113. for myi=1 to n
  114. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  115. next
  116. response.Write("</select>")
  117. response.Write("<input type=submit name=Submit3 value=Go→ />")
  118. end if%>
  119. </td>
  120. </tr>
  121. </form>
  122. </table>
  123. </body>
  124. </html>