日期:2014-05-16 浏览次数:20458 次
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:remove var="extraArgs"/>
<c:choose>
<c:when test="${page != info.thisPage}">
<c:choose>
<c:when test="${!isSearch}">
<c:if test="${page > 1}">
<c:set var="extraArgs" value="/${page}"/>
</c:if>
<c:if test="${info.id > 0}">
<c:set var="extraArgs" value="${extraArgs}/${info.id}"/>
</c:if>
<a href="<jforum:url address='${info.baseUrl}${extraArgs}'/>">${page}</a>
</c:when>
<c:otherwise>
<c:set var="extraArgs">params.query=${searchParams.query}¶ms.matchType=${searchParams.matchType}¶ms.forum.id=${searchParams.forum.id}¶ms.sort=${searchParams.sort}¶ms.sortType=${searchParams.sortType}¶ms.start=${page}</c:set>
<a href="<jforum:url address='${info.baseUrl}'/>?${extraArgs}">${page}</a>
</c:otherwise>
</c:choose>
</c:when>
<c:otherwise>
<span class="current">${page}</span>
</c:otherwise>
</c:choose>