<%@ 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(path+"/error.jsp"); } else{ %> <%=dir %>/images/MainBg.gif topMargin=0 scroll=yes marginheight="0" marginwidth="0">
<%String sql="select * from news order by id desc"; newsb.setEVERYPAGENUM(12); int cou = newsb.getMessageCountAAA("select count(*) from news");//得到信息总数 String page1=request.getParameter("page"); if(page1==null){ page1="1"; } session.setAttribute("busMessageCount", cou + ""); session.setAttribute("busPage", page1); List pagelist1 = newsb.getMessageAAA(Integer.parseInt(page1),sql); session.setAttribute("qqq", pagelist1); int pageCount = newsb.getPageCount(); //得到页数 session.setAttribute("busPageCount", pageCount + ""); List pagelist3=(ArrayList)session.getAttribute("qqq"); %> <% if(!pagelist3.isEmpty()){ for(int i=0;i <% }} %>
ID 标题 分类 发布时间 点击率 修改 删除
<%=i+1 %> <%=pagelist2.get(1).toString() %> <%=pagelist2.get(2).toString() %> <%=pagelist2.get(4).toString() %> <%=pagelist2.get(6).toString() %> news/edit.jsp?method=upNews&id=<%=pagelist2.get(0).toString()%>" >修改 删除
 全选    
" /> " />         共<%=session.getAttribute("busMessageCount").toString()%>条记录,共计<%=session.getAttribute("busPageCount").toString()%>页,当前第<%=session.getAttribute("busPage").toString()%>页           
<%} %>