12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <%@ 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="position">当前位置:<a href="${ctx}/">网站首页</a> > 专题专栏</div>
- </div>
- <div class="new w">
- <div class="ztzl">
-
- <ul>
- <c:forEach items="${columnsList}" var="obj" >
- <li>
- <c:if test="${obj.isOuterChain == 1}">
- <a href="${obj.url}" target="blank"><img src="${obj.cover}" width="380" height="125"><p>${obj.title}</p></a>
- </c:if>
- <c:if test="${obj.isOuterChain ==null || obj.isOuterChain == ''|| obj.isOuterChain ==2}">
- <a href="${ctxF}/columnNews/list?columnId.id=${obj.id}"><img src="${obj.cover}" width="380" height="125"><p>${obj.title}</p></a>
- </c:if>
- </li>
- </c:forEach>
- <c:if test="${columnsList==null || columnsList.size()==0}">
- <li>
- <a href="#">暂无数据</a>
- </li>
- </c:if>
- </ul>
- </div>
- <div>
- <c:if test="${columnsList!=null && columnsList.size()>0}">
- <div id="pagination" style="text-align: center"></div>
- </c:if>
- </div>
- </div>
- <%@ include file="/webpage/modules/web/footer.jsp"%>
- <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';
- href += '?pageNo=' + obj.curr;
- href += '&pageSize=' + obj.limit;
- //console.log(href)
- location.href = href;
- }
- }
- ,theme: '#c7301e'
- });
- });
- </script>
- </body>
- </html>
|