%@ page pageEncoding="utf-8" %>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@ page language="java" import="java.util.*" %>
<%@ page import=" com.ccgj.database.manager.*" %>
<%@ page import=" com.ccgj.database.factory.*" %>
<%@ page import=" com.ccgj.database.beans.*" %>
<%@ page import=" java.util.Calendar" %>
<%@ page import=" java.text.SimpleDateFormat" %>
<%
long id = Long.parseLong(request.getParameter("param").split("_")[0]);
LMBManager lmManager = DatabaseFactory.getLMBIF().getLMBService().getLmbManager();
WZBManager wzManager = DatabaseFactory.getWZBIF().getWZBService().getWzbManager();
LMB lmb = lmManager.getLMBByLmid(id);
LMB flm = lmManager.getLMBByLmid(Long.parseLong(lmb.getFlmid()));
//取得当前页数
String currentPageStr = request.getParameter("param").split("_")[1] == null ? "0" : request.getParameter("param").split("_")[1];
int currentPage = Integer.valueOf(currentPageStr);
//文章总数
//int wzCount = wzManager.getAllWzb(id,"1").size();
int wzCount = wzManager.getAllWzbCount(lmb.getId(), "1");
//本页显示条数
int pageSize = 30;
//分页首条记录游标
int firstSize = currentPage * pageSize;
//总页数
int totalPage = wzCount % pageSize == 0 ? wzCount / pageSize : wzCount / pageSize+1;
%>
<%@include file="weather.jsp" %>

/main/images/home1.png"
width="23px" height="23px">
当前位置 :">首页 >>/main/<%=lmb.getId() %>_0/list.html"><%="".equals(flm.getLmmc()) ? "" : flm.getLmmc()+">>" %>
<%=lmb.getLmmc() %>
<%
List wzList = wzManager.getAllWzb(lmb.getId()+"", 1, firstSize, pageSize);
for (WZB wzb : wzList) {
%>
- /main/<%=wzb.getId()%>_0/news.html"><%=wzb.getWzbt(45) %>
<%=wzb.getTjsj("yyyy-MM-dd")%>
<%} %>
/main/<%=id%>_0/list.html">
总共: <%=wzCount %> 条记录
当前:<%=currentPage+1%>/<%=totalPage %> 页
<%=pageSize %>条/页
本页显示第 <%=(pageSize * (currentPage))+1 %> 条到第 <%= (pageSize * (currentPage))+pageSize%> 条
/main/<%=id %>_0/list.html"
class="red">首页
/main/<%=id %>_<%=currentPage-1<0?0:currentPage-1 %>/list.html"
class="red">上页
/main/<%=id %>_<%=currentPage>=totalPage-1?currentPage:currentPage+1%>/list.html"
class="red">下页
/main/<%=id %>_<%=totalPage-1 %>/list.html"
class="red">尾页
转到第
页
|