<% const MaxPerPage=5 dim totalPut dim CurrentPage dim TotalPages dim i,j if not isempty(request("page")) then currentPage=cint(request("page")) else currentPage=1 end if %>
客户反馈信息
<% dim sql dim rs l=0 sql="select * from T_LeaveWords order by id desc" Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then response.write "

还没有反馈信息

" else totalPut=rs.recordcount totalPut=rs.recordcount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then showContent showpage totalput,MaxPerPage,"tsList.asp" else if (currentPage-1)*MaxPerPage <%do while not rs.eof l=l+1%> <% i=i+1 if i>=MaxPerPage then exit do rs.movenext loop %>
序号 标题 姓名 联系电话 电子邮箱 删除
<%response.write l%> <%=rs("bt")%> <%=rs("name")%> <%=rs("tel")%>  <%=rs("email")%>  ">删除
反馈内容:<%=rs("content")%>
<% end sub function showpage(totalnumber,maxperpage,filename) dim n if totalnumber mod maxperpage=0 then n= totalnumber \ maxperpage else n= totalnumber \ maxperpage+1 end if response.write " 共"&totalnumber&"篇留言 每页显示"&maxperpage&"篇 目前显示第"&CurrentPage&"/"&n&"页     " if CurrentPage<2 then response.write "首页  上一页  " else response.write "首页  " response.write "上一页  " end if if n-currentpage<1 then response.write "下一页  尾页" else response.write "下一页  尾页" end if end function %>
     转到: