📄 vieworderform.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld" %>
<%@ taglib prefix="fn" uri="/WEB-INF/tlds/fn.tld" %>
<%@ page isELIgnored="false"%>
<jsp:useBean id="bookOP" scope="page" class="bean.db.bookOPBean"/>
<jsp:useBean id="orderFormOP" scope="page" class="bean.db.orderFormOPBean"/>
<c:set var="userId" value="${sessionScope.user_id}"/>
<c:set var="orderForms" value="<%=orderFormOP.getUserOrderForms(((Long)session.getAttribute("user_id")).longValue())%>"/>
<jsp:include page="../banner.jsp"/>
<table border="0" cellpadding="0" cellspacing="0" width="777">
<tr valign="top">
<td width="170" valign="top">
<jsp:include page="../user/userlogin.jsp"/>
</td>
<td>
<c:forEach items="${orderForms}" var="orderForm">
<table border="1" cellpadding="0" cellspacing="0" width="607">
<tr><td colspan="6" align="center"><font size="2" color="#000080">
订单号:${orderForm.order_form_id}
订单状态:${orderForm.status}(0--新订单 1--客户已确认
2--正在配货 3--已发货 4--缺货)
</font></td></tr>
<tr><td align="center"><font size="2" color="#000080">序号</font></td>
<td align="center"><font size="2" color="#000080">书名</font></td>
<td align="center"><font size="2" color="#000080">出版社</font></td>
<td align="center"><font size="2" color="#000080">数量</font></td>
<td align="center"><font size="2" color="#000080">单价</font></td>
<td align="center"><font size="2" color="#000080">总价</font></td></tr>
<c:set var="book_no" value="${0}"/>
<c:set var="allbookcount" value="${0}"/>
<c:set var="allbookprice" value="${0}"/>
<c:forEach items="${orderForm.myGoods}" var="carbook">
<c:set var="book_id" value="${fn:substringBefore(carbook,'=')}"/>
<c:set var="book_count" value="${fn:substringAfter(carbook,'=')}"/>
<jsp:setProperty name="bookOP" property="bookid" value="${book_id}"/>
<c:set var="book" value="<%=bookOP.selectBookById(bookOP.getBookid())%>"/>
<tr><c:set var="book_no" value="${book_no+1}"/>
<td><font size="2" color="#000080">${book_no}</font></td>
<td><font size="2" color="#000080">
<a href="<%=request.getContextPath()%>/viewBook.jsp?bookId=${book.bookid}">${book.bookname}</a></font></td>
<td><font size="2" color="#000080">${book.publisher}</font></td>
<c:set var="allbookcount" value="${allbookcount+book_count}"/>
<td><font size="2" color="#000080">${book_count}</font></td>
<c:set var="book_price" value="${book.price*book.price_rebate/10}"/>
<c:set var="book_price_front" value="${fn:substringBefore(book_price,'.')}"/>
<c:set var="book_price_After" value="${fn:substringAfter(book_price,'.')}"/>
<c:set var="book_price_After" value="${fn:substring(book_price_After,0,2)}"/>
<td><font size="2" color="#000080">${book_price_front}.${book_price_After}</font></td>
<c:set var="allbookprice" value="${allbookprice+book.price*book.price_rebate*book_count/10}"/>
<c:set var="bookcount_price" value="${book.price*book.price_rebate*book_count/10}"/>
<c:set var="bookcount_price_front" value="${fn:substringBefore(bookcount_price,'.')}"/>
<c:set var="bookcount_price_After" value="${fn:substringAfter(bookcount_price,'.')}"/>
<c:set var="bookcount_price_After" value="${fn:substring(bookcount_price_After,0,2)}"/>
<td><font size="2" color="#000080">${bookcount_price_front}.${bookcount_price_After}</font></td>
</tr>
</c:forEach>
<tr><td><font size="2" color="#000080">总计</font></td>
<td><font size="2" color="#000080"> </font></td>
<td><font size="2" color="#000080"> </font></td>
<td><font size="2" color="#000080">${allbookcount}</font></td>
<td><font size="2" color="#000080"> </font></td>
<c:set var="allbookprice_front" value="${fn:substringBefore(allbookprice,'.')}"/>
<c:set var="allbookprice_After" value="${fn:substringAfter(allbookprice,'.')}"/>
<c:set var="allbookprice_After" value="${fn:substring(allbookprice_After,0,2)}"/>
<td><font size="2" color="#000080">${allbookprice_front}.${allbookprice_After}</font></td></tr>
<tr><td colspan="6" align="center"><font size="2" color="#000080">
<c:if test="${orderForm.status==0||orderForm.status==4}">
<a href="<%=request.getContextPath()%>/deleteOrderForm.do?order_form_id=${orderForm.order_form_id}">取消订单</a>
</c:if>
<c:if test="${orderForm.status==0}">
<a href="<%=request.getContextPath()%>/certOrderForm.do?order_form_id=${orderForm.order_form_id}">确认订单</a></font>
</c:if></td></tr>
</table><br>
</c:forEach>
</td>
</tr>
</table>
<jsp:include page="../bottom.jsp"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -