Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 882a6f0

Browse files
committed
fix: display 100 items
1 parent 9a41a36 commit 882a6f0

File tree

1 file changed

+50
-52
lines changed

1 file changed

+50
-52
lines changed

src/main/com/topcoder/web/tc/view/pacts/client/PaymentHistory.jsp

Lines changed: 50 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
id="PaymentHistoryForm">
299299

300300
<c:if test="${!isReskin}">
301-
<c:if test="${croppedDataBefore or croppedDataAfter}" >
301+
<!-- <c:if test="${croppedDataBefore or croppedDataAfter}" >
302302
<div class="pagingBox">
303303
<c:choose>
304304
<c:when test="${croppedDataBefore}">
@@ -318,7 +318,7 @@
318318
</c:otherwise>
319319
</c:choose>
320320
</div>
321-
</c:if>
321+
</c:if> -->
322322
<div align="right">
323323
[<a href="javascript:;" class="checkAll">Check All</a> | <a href="javascript:;" class="uncheckAll">Uncheck
324324
All</a>]
@@ -623,58 +623,56 @@
623623
<input type="hidden" name="<%= PaymentHistory.FULL_LIST %>" value="<c:out value="${fullList}"/>" />
624624

625625
<div class="pagingBox table-pagination ${croppedDataBefore ? 'croppedDataBefore' : ''} ${croppedDataAfter ? 'croppedDataAfter' : ''} ${numTotal > 10 ? 'more-than-10-items' : ''}">
626-
<c:if test="${croppedDataBefore or croppedDataAfter}">
627-
<c:choose>
628-
<c:when test="${croppedDataBefore}">
629-
<a href="Javascript:previous()" class="bcLink getable prev-btn">&lt;&lt; prev</a>
630-
</c:when>
631-
<c:otherwise>
632-
<c:if test="${isReskin}">
633-
<span class="prev-btn disabled"></span>
634-
</c:if>
635-
<c:if test="${!isReskin}">
636-
&lt;&lt; prev
637-
</c:if>
638-
</c:otherwise>
639-
</c:choose>
640-
641-
<c:if test="${isReskin}">
642-
<div class="pageIndexes-container">
643-
<c:set value="${numTotal / numPerPage + 0.99}" var="maxDisplayPages"/>
644-
<c:set value="${numTotal / numPerPage + 0.99}" var="totalPages"/>
645-
<c:forEach begin="1" end="${totalPages}" step="1" varStatus="i">
646-
<c:set
647-
value="${requestScope[defaults][startRank] / numPerPage + 0.99}"
648-
var="activePageIndex"
649-
/>
650-
<a href="javascript:onPageChange(${i.index})" class="page-btn ${
651-
activePageIndex - (activePageIndex % 1) == i.index
652-
? 'active'
653-
: ''
654-
} ${
655-
totalPages > 10 && (i.index + 4 < activePageIndex) ? 'hidden' : ''
656-
} ${
657-
totalPages > 10 && (i.index - 4 > activePageIndex) ? 'hidden' : ''
658-
}">${i.index}</a>
659-
</c:forEach>
660-
</div>
661-
</c:if>
626+
<c:choose>
627+
<c:when test="${croppedDataBefore}">
628+
<a href="Javascript:previous()" class="bcLink getable prev-btn">&lt;&lt; prev</a>
629+
</c:when>
630+
<c:otherwise>
631+
<c:if test="${isReskin}">
632+
<span class="prev-btn disabled"></span>
633+
</c:if>
634+
<c:if test="${!isReskin}">
635+
&lt;&lt; prev
636+
</c:if>
637+
</c:otherwise>
638+
</c:choose>
662639

663-
<c:choose>
664-
<c:when test="${croppedDataAfter}">
665-
<a href="Javascript:next()" class="bcLink getable next-btn">next &gt;&gt;</a>
666-
</c:when>
667-
<c:otherwise>
668-
<c:if test="${isReskin}">
669-
<span class="next-btn disabled"></span>
670-
</c:if>
671-
<c:if test="${!isReskin}">
672-
next &gt;&gt;
673-
</c:if>
674-
</c:otherwise>
675-
</c:choose>
676-
<br/>
640+
<c:if test="${isReskin}">
641+
<div class="pageIndexes-container">
642+
<c:set value="${numTotal / numPerPage + 0.99}" var="maxDisplayPages"/>
643+
<c:set value="${numTotal / numPerPage + 0.99}" var="totalPages"/>
644+
<c:forEach begin="1" end="${totalPages}" step="1" varStatus="i">
645+
<c:set
646+
value="${requestScope[defaults][startRank] / numPerPage + 0.99}"
647+
var="activePageIndex"
648+
/>
649+
<a href="javascript:onPageChange(${i.index})" class="page-btn ${
650+
activePageIndex - (activePageIndex % 1) == i.index
651+
? 'active'
652+
: ''
653+
} ${
654+
totalPages > 10 && (i.index + 4 < activePageIndex) ? 'hidden' : ''
655+
} ${
656+
totalPages > 10 && (i.index - 4 > activePageIndex) ? 'hidden' : ''
657+
}">${i.index}</a>
658+
</c:forEach>
659+
</div>
677660
</c:if>
661+
662+
<c:choose>
663+
<c:when test="${croppedDataAfter}">
664+
<a href="Javascript:next()" class="bcLink getable next-btn">next &gt;&gt;</a>
665+
</c:when>
666+
<c:otherwise>
667+
<c:if test="${isReskin}">
668+
<span class="next-btn disabled"></span>
669+
</c:if>
670+
<c:if test="${!isReskin}">
671+
next &gt;&gt;
672+
</c:if>
673+
</c:otherwise>
674+
</c:choose>
675+
<br/>
678676
View &#160;
679677

680678
<c:if test="${isReskin}">

0 commit comments

Comments
 (0)