📄 goodslist.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%><%@ include file="/commons/taglibs.jsp" %><!-- 保证一定存在图书列表 --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="finance.css"> <title>${CompanyName}--${ProjectName }</title> <%@ include file="/commons/meta.jsp" %> </head> <SCRIPT LANGUAGE="JavaScript"> <!-- function SumNum(){ a=eval(form1.all.price.value); b=eval(form1.all.amounts.value); if (isNaN(a)) {a=0} if (isNaN(b)) {b=0} sumValue = a*b; form1.all.totals.value=sumValue; form1.all.amount.value = b; form1.all.total.value = sumValue; } //--> </SCRIPT> <body> <br><br><br> <div id="content"> <form action ="orderController.jsp?p=create" method="post" name="form1"> <input type="hidden" name ="userId" value="${order.userId}"/> <input type="hidden" name ="onDate" value="${order.onDate}"/> <table class=small cellSpacing="1" cellPadding="2" width="90%" align="center" bgColor="#000000" border="0"> <tr> <td class="TableSeparator" colspan="2" >日期</td> </tr> <tr> <td class="TableLabel" align="center" width="30%">下单日期</td> <td class="TableData" >${order.onDate}</td> </tr> </table> <table class=small cellSpacing="1" cellPadding="2" width="90%" align="center" bgColor="#000000" border="0"> <tr> <td class="TableSeparator" colspan="8" >联系人信息</td> </tr> <tr> <td class="TableLabel" align="center" colspan="2" width="100">联系人</td><td class="TableData" colspan="2" ><input type="text" size="35" name="contact" value="${order.contact}" class="BigInput"/></td> <td class="TableLabel" align="center" colspan="2" >联系电话</td><td class=TableData colspan="2" ><input type="text" size="35" name="telephone" value="${order.telephone}" class="BigInput"></td> </tr> <tr> <td class="TableLabel" align="center" colspan="2" width="100">邮寄地址</td><td class=TableData colspan="4" ><input type="text" name="contact" size="50" value="${order.contact}" class="BigInput"/></td> <td class="TableLabel" align="center" colspan="1">邮编</td><td class=TableData colspan="1"><input type="text" name="contact" value="${order.contact}" class="BigInput"/></td> </tr> </table> <table class=small cellSpacing="1" cellPadding="2" width="90%" align="center" bgColor="#000000" border="0"> <tr> <td class="TableSeparator" colspan=6 >选购图书信息</td> </tr> <tr> <td class="TableLabel" width="20%" align="center" ><strong>图书名称</strong></td> <td class="TableLabel" width="20%" align="center" ><strong>作者</strong></td> <td class="TableLabel" width="20%" align="center" ><strong>出版社</strong></td> <td class="TableLabel" width="10%" align="center" ><strong>单价</strong></td> <td class="TableLabel" width="15%" align="center" ><strong>数量</strong></td> <td class="TableLabel" width="15%" align="center" ><strong>总价</strong></td> </tr> <c:forEach var="item" items="${order.orderBooks}"> <tr> <td class=TableData>${item.book.name}</td> <td class=TableData>${item.book.author}</td> <td class=TableData>${item.book.publisher}</td> <td class=TableData><input type="text" name="price" value="${item.book.price}" readonly="readonly" class="BigInput" onkeyup="SumNum()"/></td> <td class=TableData><input type="text" name="amounts" class="BigInput" onkeyup="SumNum()"/></td> <td class=TableData><input type="text" name="totals" class="BigInput" onkeyup="SumNum()"/></td> </tr> </c:forEach> <tr> <td class="TableLabel" colspan=3 ></td> <td class=TableData colspan=3>总数量:<input type="text" name="amount" size="10" class="BigInput"/> 总价格:<input type="text" name="total" size="10" class="BigInput"/></td> </tr> </table> <table class=small cellSpacing="1" cellPadding="2" align="center" border="0"> <tr> <td class=TableData><input type="submit" value="提交订单" class="BigButton"/> <input type="button" value="返回购物车" onClick="location.href='${ctx}/shopCarController.jsp?p=0&userId=${order.userId}'"class="BigButton"/> </td> </tr> </table> </form> </div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -