📄 pages.tag
字号:
<%-- 分页显示 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="pages-nav">
<div class="page-left">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="page-allpages">
<span style="color:#4ab3e6;">${requestScope.pagination.current }</span>
<span style="color:#666;"> / ${requestScope.pagination.totalPage } 页</span>
</td>
<td style="width:10px;"> </td>
<td class="page-allpages">
<c:choose>
<c:when test="${empty requestScope.pagination.content }">
1
</c:when>
<c:otherwise>
<c:forEach items="${requestScope.pagination.content }" var="eachpage">
<c:choose>
<c:when test="${empty eachpage.url}">
${eachpage.page }
</c:when>
<c:otherwise>
<a href="${eachpage.url }">${eachpage.page }</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:otherwise>
</c:choose>
<!--
<c:if test="${not empty requestScope.pagination.next}">
<a href="/cforum.htm?ForumID=23&&page=10">»</a>
</c:if>
-->
</td>
<td class="page-allpages3">
第<input name="gopage1" type="text" id="gopage1" size="4" maxlength="9" style="border:1px solid #BDDAF7;"/>页
<a href='javascript:CFroumGoto("${pageContext.request.contextPath }/search.htm?" ,document.getElementById("gopage1").value);'>跳转</a>
</td>
</tr>
</table>
</div>
<div class="page-right2">共搜索到${empty requestScope.pagination.total?0:requestScope.pagination.total }个符合条件的帖子</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -