bmmag.asp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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>BdeCMS管理员登陆</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"><tr>
  20. <td align="center" class="tb_bg" colspan="5">预订管理</td>
  21. </tr>
  22. <tr>
  23. <td width="20%" height="26" align="center" class="NcB_bg">姓名</td>
  24. <td width="20%" align="center" class="NcB_bg">电话</td>
  25. <td width="20%" align="center" class="NcB_bg">手机</td>
  26. <td width="20%" align="center" class="NcB_bg">时间</td>
  27. <td width="20%" align="center" class="NcB_bg">操作</td>
  28. </tr><%
  29. dim theact
  30. theact=request("theact")
  31. dim CurrentPage '当前页
  32. dim TotalPages '总页数
  33. MaxPerPage=20
  34. Set rs1= Server.CreateObject ("ADODB.RecordSet")
  35. sql="select * from wsbm order by bm_id desc"
  36. rs1.open sql,conn,1,3
  37. if rs1.eof then
  38. response.Write("")
  39. else
  40. rs1.pagesize=MaxPerPage
  41. If trim(Request("Page"))<>"" then
  42. CurrentPage= CLng(request("Page"))
  43. If CurrentPage> rs1.PageCount then
  44. CurrentPage = rs1.PageCount
  45. End If
  46. Else
  47. CurrentPage= 1
  48. End If
  49. totalPut=rs1.recordcount 'totalput=总记录数
  50. if CurrentPage<>1 then
  51. if (currentPage-1)*MaxPerPage < totalPut then
  52. rs1.move(currentPage-1)*MaxPerPage
  53. end if
  54. end if
  55. do while not rs1.eof and c<20
  56. %>
  57. <form id="form1" name="form1" method="post" action="ZPaddsave.asp">
  58. <tr>
  59. <td height="26" align="left" class="NcB_bg"> <%=left(rs1("bm_name"),12)%></td>
  60. <td height="26" align="center" class="NcB_bg"><%=rs1("bm_tel")%></td>
  61. <td height="26" align="center" class="NcB_bg"><%=rs1("bm_sj")%></td>
  62. <td height="26" align="center" class="NcB_bg"><a href="bmmag.asp"><%=formatdatetime(rs1("bm_time"),2)%></a></td>
  63. <td height="26" align="center" class="NcB_bg"><a href="bmsee.asp?thex=<%=rs1("bm_id")%>">查看</a> <a href="bmdel.asp?thex=<%=rs1("bm_id")%>&theid=<%=request("thex")%>">删除</a></td>
  64. </tr></form>
  65. <%
  66. c=c+1
  67. rs1.movenext
  68. loop
  69. rs1.close
  70. set rs1=nothing
  71. %>
  72. </table>
  73. <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  74. <form id="form1" name="form1" method="post" action="">
  75. <tr>
  76. <td height="50" align="center"><%
  77. '------------------------------------------------------页面跳转
  78. dim n,k
  79. if (totalPut mod MaxPerPage)=0 then 'n表示总页数
  80. n= totalPut \ MaxPerPage
  81. else
  82. n= totalPut \ MaxPerPage + 1
  83. end if
  84. k=currentPage
  85. k=currentPage
  86. if k<>1 then
  87. response.write "["+"<a href=?page=1>第一页</a></b>] "
  88. response.write "["+"<a href=?page="+cstr(k-1)+">上一页</a>] "
  89. else
  90. Response.Write "[第一页] [上一页]"
  91. end if
  92. if k<>n then
  93. response.write "["+"<a href=?page="+cstr(k+1)+">下一页</a>] "
  94. response.write "["+"<a href=?page="+cstr(n)+">最后一页</a>] "
  95. else
  96. Response.Write "[下一页] [最后一页]"
  97. end if
  98. '------------------------------------------------------页面跳转msmsms有点小毛病!就是转页没有连带搜索和类别
  99. response.Write("<font color='red'> | </font>共"&n&"页 / "&totalPut&"条信息 / ")
  100. response.Write("当前第"&k&"页")
  101. response.Write(" <select name='page'>")
  102. for myi=1 to n
  103. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  104. next
  105. response.Write("</select>")
  106. response.Write("<input type=submit name=Submit3 value=Go→ />")
  107. end if%></td>
  108. </tr>
  109. </form>
  110. </table>
  111. </body>
  112. </html>