<%@ tag pageEncoding="GBK"%>
<%@ attribute name="page" required="true" type="com.blueland.bpm.common.page.Page" description="Page.java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
	// set default values
	
	java.lang.Integer[] defaultPageSizes = new java.lang.Integer[]{10,50,100};
	if(jspContext.getAttribute("pageSizeSelectList") == null) {
		jspContext.setAttribute("pageSizeSelectList",defaultPageSizes); 
	}
	
	if(jspContext.getAttribute("isShowPageSizeList") == null) {
		jspContext.setAttribute("isShowPageSizeList",true); 
	}
	
	 
	%>
<div class="pagination-box">
				<ul class="pagination">
						<% if(page.isFirstPage()){%>
				<li class="disabled"><a href="javascript:void(0);">首页</a></li>
				
				<% }else{%>
				<li>
				<a href="javascript:simpleTable.togglePage(1);"><i class="icon-double-angle-left"></i>首页</a>
				</li>
				<% }%>
						<% if(page.isHasPreviousPage()){%>
				<li>				
				<a href="javascript:simpleTable.togglePage(${page.previousPageNumber});"><span class="icon_page_prev hand">上一页</span></a>
				</li>
				<% }else{%>
				<li  class="disabled"><a href="javascript:void(0);">上一页</a></li>
				<% }%>
					<%-- 	
						<% 
							java.util.List linkPageNumbers=page.getLinkPageNumbers();
							for(int i=0;i<linkPageNumbers.size();i++){
								if((Integer)linkPageNumbers.get(i)==page.getThisPageNumber()){%>
									<li class="active"><a><%=linkPageNumbers.get(i)%></a></li>
								<%}else{%>
								<li>
								<a  href="javascript:simpleTable.togglePage(<%=linkPageNumbers.get(i)%>);">[<%=linkPageNumbers.get(i)%>]</a>	
								</li>
								<%}
							
							}
						%> --%>
						 <% if(page.isHasNextPage()){%>
				<li>
				<a href="javascript:simpleTable.togglePage(${page.nextPageNumber});"><span class="icon_page_next hand">下一页</span></a>
				</li>
				<% }else{%>
				<li  class="disabled"><a href="javascript:void(0);">下一页</a></li>
				<% }%>
				
				
				
				 <% if(page.isLastPage()){%>
				 	<li class="disabled"><a href="javascript:void(0);">尾页</a></li>
					<% }else{%>
				<li>
				<a href="javascript:simpleTable.togglePage(${page.lastPageNumber});"><i class="icon-double-angle-right"></i>尾页</a>
				</li>
				<% }%>
				
			
				<li class="disabled">
				<a>&nbsp;当前是第<font color="blue"><%=page.getThisPageNumber()%></font>页
				 <% if(page.getTotalCount()<100000000){%>
				，总共<font color="blue"><%=page.getTotalCount()%></font>条记录</a>
				 <% }%>
			    </li>
				</ul>
				
			</div>