| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <%@taglib uri="/struts-tags" prefix="s"%>
- <%@ page pageEncoding="utf-8"%>
- <%@ page language="java" import="java.util.*"%>
- <%@ page import=" com.ccgj.database.manager.*" %>
- <%@ page import=" com.ccgj.database.factory.*" %>
- <%@ page import=" com.ccgj.database.beans.*" %>
- <%
- 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()));
- List<LMB> list = lmManager.getVaildLmbByFlmid(flm.getId().toString(),1);
- //取得当前页数
- 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 pageSize = 12;
- //分页首条记录游标
- int firstSize = currentPage*pageSize;
- //总页数
- int totalPage = wzCount%pageSize==0?wzCount/pageSize:wzCount/pageSize+1;
- %>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>长春经济技术开发区内网</title>
- <link rel="stylesheet" href="<s:property value="#application['basePath']"/>/main/images/base.css" />
- </head>
- <body>
- <!--头部 开始-->
- <%@include file="top.jsp"%>
- <!--头部 结束-->
- <!--中间内容开始-->
- <div class="content">
- <%@include file="weather.jsp"%>
- <div class="innercont">
- <div class="current" style="margin-bottom:5px"> <img style="float:left" src="<s:property value="#application['basePath']"/>/main/images/home1.png" width="23px" height="23px"><p style="text-indent:10px">当前位置 :<a href="<s:property value="#application['basePath']"/>/">首页 </a>>><a href="<s:property value="#application['basePath']"/>/main/<%=lmb.getId() %>_0/list.html"><%="".equals(flm.getLmmc())?"":flm.getLmmc()+">>" %></a> <a href="list.html"> <%=lmb.getLmmc() %></a></p></div>
- <div class="imglistdiv">
- <p><%=lmb.getLmmc()%></p>
- <%
- List<WZB> wzList=wzManager.getWzbForPage(lmb.getId(),1,firstSize,pageSize);
- for(WZB wzb : wzList){
- if(wzb.getFjdz()!=null&&wzb.getFjdz().endsWith(".flv")||wzb.getFjdz().endsWith(".webm")){
- %>
- <dl>
- <dt><a target="_blank" href="<s:property value="#application['basePath']"/>/main/<%=wzb.getId()%>_0/news.html"> <center><iframe src="../../video/video-small.jsp?id=<%=wzb.getId()%>" border="0" width="300px" height="200px" frameborder="no" scrolling="no"></iframe></center></a></dt>
- <dd><a target="_blank" href="<s:property value="#application['basePath']"/>/main/<%=wzb.getId()%>_0/news.html"><%=wzb.getWzbt(15)%></a></dd>
- </dl>
- <%}%>
- <%} %>
- <div class="clear"></div>
- <!--分页开始-->
- <script type="text/javascript">
- function page(cpage) {
- pageform.action = "<s:property value="#application['basePath']"/>/main/<%=id%>_" + cpage + "/list_video.html";
- pageform.submit();
- }
- </script>
- <center>
- <form name="pageform" method="post"
- action="<s:property value="#application['basePath']"/>/main/<%=id%>_0/list_video.html">
- <table cellspacing="0" align="center" style="margin-top:30px">
- <tbody>
- <tr height="30" class="gray" >
- <td>
-
- 总共:<span class="red"> <%=wzCount %> </span>条记录
-
- 当前:<span class="red"><%=currentPage+1%></span><span class="web">/</span><span class="red"><%=totalPage %></span> 页<span class="web">
-
- <%=pageSize %>条/页
- 本页显示第</span><span class="red"> <%=(pageSize*(currentPage))+1 %> </span><span class="web">条到第</span><span class="red"> <%= (pageSize*(currentPage))+pageSize%> </span><span class="web">条</span>
-
- <span class="web"><a href="<s:property value="#application['basePath']"/>/main/<%=id %>_0/list_video.html" class="red" >首页</a></span>
- <span class="web"><a href="<s:property value="#application['basePath']"/>/main/<%=id %>_<%=currentPage-1<0?0:currentPage-1 %>/list_video.html" class="red">上页</a></span>
- <span class="web"><a href="<s:property value="#application['basePath']"/>/main/<%=id %>_<%=currentPage>=totalPage-1?currentPage:currentPage+1%>/list_video.html" class="red">下页</a></span>
- <span class="web"><a href="<s:property value="#application['basePath']"/>/main/<%=id %>_<%=totalPage-1 %>/list_video.html" class="red">尾页</a></span>
- <span class="web">转到第
- <select name="current" onchange="page(this.value)">
- <%for (int i = 0; i < totalPage; i++) {%>
- <option value="<%=i %>" <%=currentPage == i ? "selected" : "" %>><%=i+1 %></option>
- <%} %>
- </select>页</span>
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </center>
- <!--分页结束-->
- </div>
- </div>
- </div>
- </body>
- </html>
|