<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; String dir=sn.getDir(); %> 后台操作区 <% String message = (String)request.getAttribute("message"); if(message == null){ message = ""; } if (!message.trim().equals("")){ out.println(""); } request.removeAttribute("message"); %> <% String username=(String)session.getAttribute("user"); if(username==null){ response.sendRedirect(basePath+"/error.jsp"); } else{ List list = sn.getSiteInfo(); String sitename = list.get(0).toString(); String method=request.getParameter("method"); String stime="2";String etime="2"; if(method!=null){ if(method.equals("datequery")){ stime=request.getParameter("stime");etime=request.getParameter("etime"); } if(method.equals("showgb")){ stime="1";etime="1"; } if(method.equals("hidegb")){ stime="0";etime="0"; } } %> <%=dir %>/images/MainBg.gif topMargin=0 scroll=no marginheight="0" marginwidth="0">
<% lb.setEVERYPAGENUM(10); int cou = lb.getMessageCountM(stime,etime);//得到信息总数 String page1=request.getParameter("page"); if(page1==null){ page1="1"; } session.setAttribute("busMessageCount", cou + ""); session.setAttribute("busPage", page1); List pagelist1 = lb.getMessageM(Integer.parseInt(page1),stime,etime); //带进一个页数,并返回该页所要显示的信息 session.setAttribute("qqq", pagelist1); int pageCount = lb.getPageCount(); //得到页数 session.setAttribute("busPageCount", pageCount + ""); List pagelist3=(ArrayList)session.getAttribute("qqq"); %> <% for(int i=0;i <%}%>
序号 昵称 邮箱 QQ 网址 博客网址 发帖时间 ip地址 选择
<%=i+1 %> <%=pagelist2.get(1).toString() %> <%=pagelist2.get(3).toString() %> <%=pagelist2.get(4).toString() %> <%=pagelist2.get(5).toString() %> <%=pagelist2.get(6).toString() %> <%=pagelist2.get(9).toString() %> <%=pagelist2.get(10).toString() %>
 全选
" /> " />         共<%=session.getAttribute("busMessageCount").toString()%>条记录,共计<%=session.getAttribute("busPageCount").toString()%>页,当前第<%=session.getAttribute("busPage").toString()%>页           
<%} %>