12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <%@ 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>
- <script type="text/javascript">
- function openLive(){
- window.open('http://dygbjy.12371.cn/zbpd/', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');
- }
- </script>
- </head>
- <body>
- <%@ include file="/webpage/modules/web/top.jsp"%>
- <div class="new w">
- <div class="position">当前位置:<a href="${ctx}/">网站首页</a> > ${typeName}</div>
- </div>
- <div class="new w">
- <div class="byfc clearfix">
- <ul>
- <c:forEach items="${newsList}" var="obj" >
- <li>
- <c:choose>
- <c:when test="${obj.typeId == '2'}">
- <div onclick="openLive()"><img src="${obj.cover}" width="250" height="160"><p> ${fn:substring(obj.title,0,30)}</p><i></i></div>
- </c:when>
- <c:otherwise>
- <a href="${ctxF}/videonews/detail?typeId=${obj.typeId}&id=${obj.id}"><img src="${obj.cover}" width="250" height="160"><p> ${fn:substring(obj.title,0,30)}</p><i></i></a>
- </c:otherwise>
- </c:choose>
- </li>
- </c:forEach>
- <c:if test="${newsList==null || newsList.size()==0}">
- <li>
- <a href="#">暂无数据</a>
- </li>
- </c:if>
- </ul>
- </div>
- <div>
- <c:if test="${newsList!=null && newsList.size()>0}">
- <div id="pagination" style="text-align: center"></div>
- </c:if>
- </div>
- </div>
- <div class="footer">
- <%@ include file="/webpage/modules/web/footer.jsp"%>
- </div>
- <script src="${pageContext.request.contextPath}/static/plugin/layui/dist/layui.js"></script>
- <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}/videonews?typeId=${typeIds}';
- href += '&pageNo=' + obj.curr;
- href += '&pageSize=' + obj.limit;
- location.href = href;
- }
- }
- ,theme: '#c7301e'
- });
- });
- </script>
- </body>
- </html>
|