<%-- IBM Confidential OCO Source Material --%> <%-- 5630-A36 (C) COPYRIGHT International Business Machines Corp. 1997, 2003 --%> <%-- The source code for this program is not published or otherwise divested --%> <%-- of its trade secrets, irrespective of what has been deposited with the --%> <%-- U.S. Copyright Office. --%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <%-- --%> <% String numberPerPage = (String)session.getAttribute("paging.visibleRows"); %> <% int totalCount; try { totalCount = Integer.parseInt (totalRows); if (totalCount < 0) { totalCount = 0; } } catch (NumberFormatException nfe) { totalCount = 0; } int filteredCount; try { filteredCount = Integer.parseInt (filteredRows); if (filteredCount < 0) { filteredCount = 0; } } catch (NumberFormatException nfe) { filteredCount = 0; } int numPerPageCount; try { numPerPageCount = Integer.parseInt (numberPerPage); if (numPerPageCount < 0) { numPerPageCount = 20; } } catch (NumberFormatException nfe) { numPerPageCount = 20; } int currentPageCount; try { currentPageCount = Integer.parseInt (currentPage); if (currentPageCount < 0) { currentPageCount = 0; } } catch (NumberFormatException nfe) { currentPageCount = 0; } int totalPages = 0; if (numPerPageCount > 0) totalPages = (int)(Math.ceil ((float)filteredCount/(float)numPerPageCount)); %>
<% if (filteredCount > numPerPageCount && numPerPageCount > 0) { %> <% } %>
<% String prevDisabled = "paging-prev-disabled"; String pD = "style='display:hide'"; String nextDisabled = "paging-next-disabled"; String nD = "style='display:hide'"; if (currentPageCount > 1) { prevDisabled = "paging-prev"; pD = "style='display:inline'"; } if (currentPageCount < totalPages) { nextDisabled = "paging-next"; nD = "style='display:inline'"; } %> : <%=currentPageCount%> of <%=totalPages%> <%=totalRows%>     <% if(!searchPattern.equals("*")){ %> : <%=filteredRows%>     <% } %>