?? cart.jsp
字號:
<%@page pageEncoding="gbk" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
response.setCharacterEncoding("gbk");
response.setContentType("application/vnd.ms-excel;charset=gbk");
response.setCharacterEncoding("gbk");
response.setHeader("Content-Disposition","attachment; filename=\"cart.xls\"");
%>
<html>
<head>
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
</head>
<body>
<center>
<form action="view_liuhaiqing/cart.jsp" method="post" name="f">
<%
session.getAttribute("money");
%>
<table class="simple textCss">
<tr>
<th width="30%">
項目
</th>
<th width="10%">
金額
</th>
<th width="10%">
收款人
</th>
<th width="10%">
付款人
</th>
<th width="30%">
日期
</th>
<th width="10%">
是否收訖
</th>
</tr>
<c:set var="all" value="0"></c:set>
<c:forEach items="${money}" var="Stat">
<c:set var="all" value="${all+ Stat.pay }"></c:set>
<tr>
<td align="center">
${ Stat.items }
</td>
<td align="center">
${ Stat.pay }
</td>
<td align="center">
${ Stat.payee }
</td>
<td align="center">
${ Stat.name }
</td>
<td align="center">
${ Stat.pdate }
</td>
<td align="center">
<c:choose>
<c:when test="${ Stat.isFinished ==0}">
<c:out value="是"></c:out>
</c:when>
<c:otherwise>
<c:out value="否"></c:out>
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</table>
<hr>
統計:金額${all }元.
</form>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -