|
@@ -197,12 +197,31 @@ To change this template use File | Settings | File Templates.
|
|
|
</script>
|
|
|
<!--翻页-->
|
|
|
<div class='page'>
|
|
|
- <span class='gofirst'>首页</span>
|
|
|
- <span class='goprev' title='上一页'><i class='ico-1'></i></span>
|
|
|
- <span class='current' style='cursor: default;border:none;'><b> 1 </b></span>
|
|
|
- <a class='num' href='javascript:void(0);' page='2'> 2 </a>
|
|
|
- <a href='javascript:void(0);' title='下一页' page='2' class='gonext'><i class='ico-1'></i></a>
|
|
|
- <a class='golast' title='末页' href='javascript:void(0);' page='2'>末页</a><span class='count'>共2页</span>
|
|
|
+ <c:if test="${pageInfo.total>10}">
|
|
|
+ <div class="page clearfix">
|
|
|
+ <ul>
|
|
|
+ <li><a href="news.html?page=${pageInfo.prePage}&rows=${pageInfo.pageSize }">上一页</a>
|
|
|
+ </li>
|
|
|
+ <c:forEach items="${pageInfo.navigatepageNums}" var="nav">
|
|
|
+ <c:if test="${nav == pageInfo.pageNum}">
|
|
|
+ <li><a href="news.html?page=${nav}&rows=${pageInfo.pageSize }"
|
|
|
+ class="pagecur">${nav}</a></li>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${nav != pageInfo.pageNum}">
|
|
|
+ <li><a href="news.html?page=${nav}&rows=${pageInfo.pageSize }">${nav}</a></li>
|
|
|
+ </c:if>
|
|
|
+ </c:forEach>
|
|
|
+ <li><a href="news.html?page=${pageInfo.nextPage}&rows=${pageInfo.pageSize }">下一页</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ <%--<span class='gofirst'>首页</span>--%>
|
|
|
+ <%--<span class='goprev' title='上一页'><i class='ico-1'></i></span>--%>
|
|
|
+ <%--<span class='current' style='cursor: default;border:none;'><b> 1 </b></span>--%>
|
|
|
+ <%--<a class='num' href='javascript:void(0);' page='2'> 2 </a>--%>
|
|
|
+ <%--<a href='javascript:void(0);' title='下一页' page='2' class='gonext'><i class='ico-1'></i></a>--%>
|
|
|
+ <%--<a class='golast' title='末页' href='javascript:void(0);' page='2'>末页</a><span class='count'>共2页</span>--%>
|
|
|
</div>
|
|
|
|
|
|
<!--翻页end-->
|