?? paymentlistright.jsp
字號:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.longtime.wap.model.Payment" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@ taglib uri="/page-tag" prefix="page"%>
<% String path = request.getContextPath();%>
<html:form action="/managePayment.do?method=listPayment" styleId="listPayment" method="post" onsubmit="return false;">
<table align="center" width="98%" class="TableBack">
<th colspan="3" align="left">
消費記錄列表
</th>
<tr>
<td colspan="3">
<table width="100%" class="TableBack">
<logic:notEmpty name="wap_global_messages" scope="request">
<tr>
<TD colspan="2">
<logic:iterate id="message" name="wap_global_messages" scope="request">
<center>
<font color="red">
<li>
<bean:write name="message" />
</li>
</font>
</center>
</logic:iterate>
</TD>
</tr>
</logic:notEmpty>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<br>
<table id="paymentList" align="center" border="1" width="100%" class="TableBack2">
<tr>
<th height="21">
用戶名
</th>
<th>
單位名稱
</th>
<th>
購買時間
</th>
<th>
消費金額
</th>
<th>
查看
</th>
</tr>
<%
List list = (List) request.getAttribute("payments");
Iterator it = list.iterator();
while (it.hasNext()){
Payment payment = (Payment) it.next();
%>
<tr>
<td height="21">
<%=payment.getUserName()%>
</td>
<td align="center">
<%=payment.getCpName()%>
</td>
<td align="center">
<%=payment.getPayDate().toString().substring(0,19)%>
</td>
<td align="center">
<%=payment.getInformationPrice()%>
</td>
<td align="center">
<a href="<%=path%>/module/cost/managePayment.do?method=viewPayment&id=<%=payment.getPaymentId()%>">查看</a>
</td>
<!--
<td align="center">
</td>-->
</tr>
<%} %>
</table>
<!-- </form>-->
</td>
</tr>
<TR>
<td class="tborder"></td>
<td>
<page:page_tag formName="listPayment" action="module/cost/managePayment.do?method=listPayment"/>
</td>
<td class="tborder"></td>
</TR>
<tr>
<td colspan="3" class="tborder"></td>
</tr>
</table>
</html:form>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -