123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglibf.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>${fns:getConfig("productName")}</title>
- <link rel="stylesheet" href="${ctxStaticWeb}/css/base.css" />
- <link rel="stylesheet" href="${ctxStaticWeb}/css/second.css" />
- <link href="${ctx}/static/plugin/layui/dist/css/layui.css" rel="stylesheet"/>
- <script src="${ctx}/static/web/js/jquery-2.1.4.js"></script>
- </head>
- <body>
- <%@ include file="/webpage/modules/web/top.jsp"%>
-
- <div class="new w">
- <div class="second_l fl">
- <div class="list">
- <div class="position">当前位置:<a href="${ctx}/">网站首页</a> > <a href="${ctxF}/columnNews">专题专栏</a> > 专栏列表</div>
- <ul>
- <c:forEach items="${newsList}" var="obj" >
- <li><a href="${ctxF}/columnNews/detail?id=${obj.id}"><strong>·</strong>${fn:substring(obj.title,0,40)}<span><fmt:formatDate value="${obj.createDate}" pattern="yyyy-MM-dd"/></span></a></li>
- </c:forEach>
- </ul>
- </div>
- <c:if test="${newsList==null || newsList.size()==0}">
- <li>
- <a href="#">暂无专题数据</a>
- </li>
- </c:if>
- <div style="margin:30px 0px;">
- <c:if test="${newsList!=null && newsList.size()>0}">
- <div id="pagination" style="text-align: center"></div>
- </c:if>
- </div>
- </div>
- <div class="second_r fr ">
- <div class="dszs">
- <h2><a href="#"></a></h2>
- <c:forEach items="${phVideoNewsList}" var="obj" begin="0" end="3">
- <div class="dszs_list">
- <ul>
- <li class="dszs_list_img"><img src="${obj.cover}" width="100" height="80"></li>
- <li class="dszs_list_tit">
- <h4><a href="${ctxF}/videonews/detail?typeId=${obj.typeId}&id=${obj.id}">${obj.title}</a></h4>
- <p>${obj.contents}</p>
- </li>
-
- </ul>
- </div>
- </c:forEach>
- </div>
- <div class="dszs2">
- <h2><a href="#">更多</a></h2>
-
- <ul class="list_rq clearfix">
- <c:forEach items="${zxVideoNewsList}" var="obj">
- <li>
- <a href="${ctxF}/videonews/detail?typeId=${obj.typeId}&id=${obj.id}" class="red_txt"><i>·</i>${obj.title}</a>
- </li>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- <div class="footer clearfix">
- <%@ include file="/webpage/modules/web/footer.jsp"%>
- </div>
- <script src="${pageContext.request.contextPath}/static/plugin/layui/dist/layui.js"></script>
- <!-- 注意:如果你直接复制所有代码到本地,上述js路径需要改成你本地的 -->
- <script>
- layui.use(['laypage', 'layer'], function(){
- var laypage = layui.laypage
- ,layer = layui.layer;
- laypage.render({
- elem: 'pagination'
- ,count: ${page.count}//从服务器得到数据总数
- ,limit: ${page.pageSize}//每页展示多少条数据
- ,curr: ${page.pageNo}
- ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
- ,jump: function (obj, first) {
- //obj包含了当前分页的所有参数,比如:
- //console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。
- //console.log(obj.limit); //得到每页显示的条数
- //首次不执行
- if (!first) {
- //do something
- var title = $('#searchText').val()
- var href = '${ctxF}/columnNews/list';
- href += '?pageNo=' + obj.curr;
- href += '&pageSize=' + obj.limit;
- //console.log(href)
- location.href = href;
- }
- }
- ,theme: '#c7301e'
- });
- });
- </script>
- </body>
- </html>
|