<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<c:if test="${pageVo.currentPage<=1}">
	<a href="javascript:;">上一页</a>
</c:if>
<c:if test="${pageVo.currentPage>1}">
    <c:if test="${param.status!=''&&param.status!=null}">
	<a href="?status=${param.status}&currentPage=${pageVo.currentPage-1}">上一页</a>
	</c:if>
	<c:if test="${param.status==''||param.status==null}">
	<a href="?currentPage=${pageVo.currentPage-1}">上一页</a>
	</c:if>
</c:if>

<c:forEach items="${showPages }" var="showPages">
	<c:choose>
		<c:when test="${showPages==pageVo.currentPage }">
			<span class="current_page">${pageVo.currentPage }</span>
		</c:when>
		<c:otherwise>
		   <c:if test="${param.status!=''&&param.status!=null}">
			<a href="?status=${param.status}&currentPage=${showPages }">${showPages }</a>
			</c:if>
			<c:if test="${param.status==''||param.status==null}">
	        <a href="?currentPage=${showPages}">${showPages }</a>
	      </c:if>
		</c:otherwise>
	</c:choose>
</c:forEach>

<c:if test="${pageVo.currentPage>=pageVo.totalPage}">
	<a href="javascript:;">下一页</a>
</c:if>
<c:if test="${pageVo.currentPage<pageVo.totalPage}">
	<c:choose>
	  <c:when test="${param.status!=''&&param.status!=null}">
	<a href="?status=${param.status}&currentPage=${pageVo.currentPage+1}">下一页</a>
	</c:when>
	<c:otherwise>
	<a href="?currentPage=${pageVo.currentPage+1}">下一页</a>
	</c:otherwise>
	</c:choose>
</c:if>

<span>共${pageVo.rows }条，共${pageVo.totalPage }页</span>
