<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="gbase.db.*"%>

<%  String searchurl = (String)request.getAttribute("OLD_URL");
    if(searchurl.indexOf(".jsp?")>=0)
    searchurl=searchurl+"&action=LIST_PAGE";
    else
    searchurl=searchurl+"?action=LIST_PAGE";
    PageManager thePageManager=(PageManager)request.getAttribute("LIST_PageManager");
    int pageSize=thePageManager.getPageSize();
   
%>
<form name="pageform" method="post" action="<%=searchurl%>">

      <table width="95%" border="0" cellspacing="1" cellpadding="3" align="center">
        <tr align="center"> 
          <td>共<%=thePageManager.getRowCount()%>条,列出第<%=((thePageManager.getCurPage()-1)*(thePageManager.getPageSize())+1)%>条到第<%=((thePageManager.getCurPage()-1)*(thePageManager.getPageSize())+thePageManager.getPageSize())>thePageManager.getRowCount()?thePageManager.getRowCount():((thePageManager.getCurPage()-1)*(thePageManager.getPageSize())+thePageManager.getPageSize())%>条</td>
          <td><a href="<%=searchurl%>&curPage=<%=thePageManager.getCurPage()%>&pageSize=<%=thePageManager.getPageSize()%>&pageAction=FIRST">首页</a> <a href="<%=searchurl%>&curPage=<%=thePageManager.getCurPage()%>&pageSize=<%=thePageManager.getPageSize()%>&pageAction=PRE">上页</a> <a href="<%=searchurl%>&curPage=<%=thePageManager.getCurPage()%>&pageSize=<%=thePageManager.getPageSize()%>&pageAction=NEXT">下页</a> <a href="<%=searchurl%>&curPage=<%=thePageManager.getCurPage()%>&pageSize=<%=thePageManager.getPageSize()%>&pageAction=END">末页</a></td>
          <td>第<%=thePageManager.getCurPage()%>/<%=thePageManager.getPageCount()%>页 转到 
            <select name="curPage"  class="denglu" onchange="javascript:pageform.submit();">
              <%for(int i=1;i<=thePageManager.getPageCount();i++){
              if(i==thePageManager.getCurPage())
              {%>
              <option value=<%=i%> selected><%=i%></option>
              <%} else {%>
              <option value=<%=i%>><%=i%></option>
              <%}}%>
            </select>
            页
            <input type="hidden" name="pageAction" value="GOTO" class="button1">
            <input type="hidden" name="pageSize" value="<%=thePageManager.getPageSize()%>" class="button1">  
            <!--<input type="submit" name="Submit" value="go" class="button1">-->
          </td>
        </tr>
      </table>
</form>

