java:
PaginationSupport pagination = this.getBill2Service().getBillPayList(detachedCriteria, form.getStartIndex());
List list = pagination.getItems();
request.setAttribute("billList", list);
request.setAttribute("pagination", pagination);
html:
<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#4DB0E7">
<logic:iterate id="bill" name="billList" type="com.worthtech.billportal.bean.WtPepBillpay" indexId="index">
<%
int i =((java.lang.Integer)pageContext.findAttribute("index")).intValue();
if((i%2)==0){
%>
<tr class="SelcetOff">
<%}else{%>
<tr class="SelcetOn">
<%}%>
<td><div align="center"><bean:write name="bill" property="termid"/></div></td>
<td><div align="center"><bean:write name="bill" property="bankName"/></div></td>
<td><div align="center"><bean:write name="bill" property="bankCard"/></div></td>
<td><div align="center"><bean:write name="bill" property="openingBank"/></div></td>
<td><div align="center"><bean:write name="bill" property="payCard"/></div></td>
<td><a href=<%="bill2.portal?action=remit"+"-"+id.getPepdate()+"-"+id.getPeptime()+"-"+id.getTrace()%> target="mainFrame">查看</a></td>
</tr>
</logic:iterate>
</table>
PaginationSupport pagination = this.getBill2Service().getBillPayList(detachedCriteria, form.getStartIndex());
List list = pagination.getItems();
request.setAttribute("billList", list);
request.setAttribute("pagination", pagination);
html:
<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#4DB0E7">
<logic:iterate id="bill" name="billList" type="com.worthtech.billportal.bean.WtPepBillpay" indexId="index">
<%
int i =((java.lang.Integer)pageContext.findAttribute("index")).intValue();
if((i%2)==0){
%>
<tr class="SelcetOff">
<%}else{%>
<tr class="SelcetOn">
<%}%>
<td><div align="center"><bean:write name="bill" property="termid"/></div></td>
<td><div align="center"><bean:write name="bill" property="bankName"/></div></td>
<td><div align="center"><bean:write name="bill" property="bankCard"/></div></td>
<td><div align="center"><bean:write name="bill" property="openingBank"/></div></td>
<td><div align="center"><bean:write name="bill" property="payCard"/></div></td>
<td><a href=<%="bill2.portal?action=remit"+"-"+id.getPepdate()+"-"+id.getPeptime()+"-"+id.getTrace()%> target="mainFrame">查看</a></td>
</tr>
</logic:iterate>
</table>