日期:2014-05-16 浏览次数:20399 次
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<script> //进入指定页面 function goPage(){ var box=document.getElementById('pageSelect'); var pn=''; for(var i=0; i<box.options.length; i++) { if(box.options[i].selected) { pn=box.options[i].value; } } window.location='airCompanySettingAction!showAirCompanyList.action?pageSize=${pageSize}&pageNum='+pn; } </script>
<div class="page con"> <c:choose> <c:when test="${cpage == 1}"> <span class="disabled"> 第一页 </span> <span class="disabled"> 上一页 </span> </c:when> <c:otherwise> <a href="airCompanySettingAction!showAirCompanyList.action?pageNum=1&pageSize=${pageSize}">第一页</a> <a href="airCompanySettingAction!showAirCompanyList.action?pageNum=${pageNum-1}&pageSize=${pageSize}">上一页</a> </c:otherwise> </c:choose> <span>${cpage}</span> <c:choose> <c:when test="${cpage==pageCount}"> <span class="disabled">下一页 </span> <span class="disabled">最后页 </span> </c:when> <c:otherwise> <a href="airCompanySettingAction!showAirCompanyList.action?pageNum=${pageNum+1}&pageSize=${pageSize}">下一页</a> <a href="airCompanySettingAction!showAirCompanyList.action?pageNum=${pageCount}&pageSize=${pageSize}">最后页</a> </c:otherwise> </c:choose> <select name="pageSelect" id="pageSelect"> <c:forEach items="${pageList}" var="p" varStatus="s"> <option value="${p}">${p}/${pageCount}</option> </c:forEach> </select> <input type="button" value="GO" onclick="goPage();" /> </div>