<%call log_chk() call passChk()%>
后台管理:>> 预订管理

<% dim theact theact=request("theact") dim CurrentPage '当前页 dim TotalPages '总页数 MaxPerPage=20 Set rs1= Server.CreateObject ("ADODB.RecordSet") sql="select * from wsbm order by bm_id desc" rs1.open sql,conn,1,3 if rs1.eof then response.Write("") else rs1.pagesize=MaxPerPage If trim(Request("Page"))<>"" then CurrentPage= CLng(request("Page")) If CurrentPage> rs1.PageCount then CurrentPage = rs1.PageCount End If Else CurrentPage= 1 End If totalPut=rs1.recordcount 'totalput=总记录数 if CurrentPage<>1 then if (currentPage-1)*MaxPerPage < totalPut then rs1.move(currentPage-1)*MaxPerPage end if end if do while not rs1.eof and c<20 %> <% c=c+1 rs1.movenext loop rs1.close set rs1=nothing %>
预订管理
姓名 电话 手机 时间 操作
 <%=left(rs1("bm_name"),12)%> <%=rs1("bm_tel")%> <%=rs1("bm_sj")%> <%=formatdatetime(rs1("bm_time"),2)%> ">查看 &theid=<%=request("thex")%>">删除
<% '------------------------------------------------------页面跳转 dim n,k if (totalPut mod MaxPerPage)=0 then 'n表示总页数 n= totalPut \ MaxPerPage else n= totalPut \ MaxPerPage + 1 end if k=currentPage k=currentPage if k<>1 then response.write "["+"第一页] " response.write "["+"上一页] " else Response.Write "[第一页] [上一页]" end if if k<>n then response.write "["+"下一页] " response.write "["+"最后一页] " else Response.Write "[下一页] [最后一页]" end if '------------------------------------------------------页面跳转msmsms有点小毛病!就是转页没有连带搜索和类别 response.Write(" | 共"&n&"页 / "&totalPut&"条信息 / ") response.Write("当前第"&k&"页") response.Write(" ") response.Write("") end if%>