<% if (issueList.length == 0) { if ("queryresult.jsp".equals(parent)) { %>
<%=MessageCode.get("jsp.no_query_result")%> <% } else if ("home.jsp".equals(parent)) { %>
<%=MessageCode.get("jsp.no_active_issue")%> <% } return; } %> <% if (startIndex > issueList.length || startIndex < 0) startIndex = 0; int endIndex = startIndex + showNumbers; if (endIndex > issueList.length) endIndex = issueList.length; %> <% String projectId = person.getProject(); Project conf = Project.getInstance(projectId); String sortField = (String)session.getAttribute("sort_field"); String exportType = null; DateTime dateTime = (DateTime)session.getAttribute("datetime"); %>
<% if ("queryresult.jsp".equals(parent)) { exportType = "2"; %> <%=label.get("query_result", projectId)%> <% } else if ("home.jsp".equals(parent)) { exportType = "1"; %> <%=label.get("my_favorites", projectId)%> <%} %> (<%=dateTime.localTime()%>) <%=label.get("sort_order_label")%>    
<% for (int c=0; c <% } %> <% for (int i=startIndex; i <% for (int c=0; c <% } %> <% } %>
<%=label.get("issue_id", projectId)%><%=label.get(showColumns[c], projectId)%>
<%=id%><%=field_value%>
<%=label.get("total")%> <%=issueList.length%> | <%=startIndex+1%>-<%=endIndex%> <%=label.get("displayed")%> <% int showPages = 10; %> <% if (startIndex>0) { int prev = startIndex-showNumbers; if (prev < 0) prev = 0; %> <%=label.get("previous")%>  <% } %> <% int currentPage = startIndex/showNumbers; if ( (startIndex-showNumbers*currentPage) > 1) currentPage++; currentPage++; int totalPages = currentPage + (issueList.length - startIndex - 1)/showNumbers; int startPage = currentPage - showPages/2; if ( startPage> (totalPages - showPages + 1) ) { startPage = totalPages - showPages + 1; } if (startPage < 1) { startPage = 1; } int endPage = startPage + showPages - 1; if (endPage > totalPages) { endPage = totalPages; } if (totalPages > 1) { for (int i=startPage; i<=endPage; i++) { int pageIndex = startIndex + showNumbers*(i - currentPage); if (pageIndex < 0) { pageIndex = 0; } else if (pageIndex > issueList.length) { pageIndex = issueList.length; } %> <% if (i != currentPage) { %> <%=i%>  <% } else {%> <%=i%>  <% } %> <%} }%> <% if (endIndex showNumbers) next = showNumbers; %>    <%=label.get("next")%>  <% } %>