📄 goodscart.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'buy.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<script type="text/javascript" src="/xsoft/js/Calendar4.js">
</script>
<body>
<strong><font color="#00a0be">Xsofa物流系统</font></strong>
<hr>
<div style="background-color: rgb(0, 160, 190);" ><font face="黑体"><font color="#ffffff">>>客户:您的位置-->购物车</font></font></div>
<div align="right"> <font size="5" color="#ff0000"><br></font></div>
<div align="center">
<html:form action="/order" method="post">
<table width="500" border="1">
<tbody><tr>
<td colspan="5" align="center" bgcolor="00a0be"><font color="#ffffff">购 物 车 上 的 物 品</font></td>
</tr>
<tr>
<td align="center">商品类型</td>
<td align="center">商品名称</td>
<td align="center">单位</td>
<td align="center">数量(件)</td>
<td align="center">删除</td>
</tr>
<logic:iterate id="sp" type="bean.Stockpile" name="goodsCart" scope="session" indexId="index">
<tr>
<td><bean:write name="sp" property="goodssort.goodssortname" /></td>
<td><bean:write name="sp" property="goodsname"/></td>
<td><bean:write name="sp" property="units.unitname"/></td>
<td><bean:write name="sp" property="isbuynum"/></td>
<td><bean:define id="gid" name="sp" property="goodsid"/>
<html:hidden property="good_id" value="${gid}"/>
<input type="checkbox" name="delete${gid}" /></td>
</tr>
</logic:iterate>
</tbody>
</table>
<br>
<html:submit property="method" ><bean:message key="Delete"/>
</html:submit>
<table width="500" border="1">
<bean:define id="userinfo" name="user" scope="session"></bean:define>
<tbody>
<tr>
<td colspan="2" bgcolor="00a0be" align="center"><font color="#ffffff">送 货 相 关 信 息</font></td>
</tr>
<tr>
<td>收货人姓名</td>
<td><bean:write name="userinfo" property="username"/></td>
</tr>
<tr>
<td>收货人电话</td>
<td><bean:write name="userinfo" property="usertel"/></td>
</tr>
<tr>
<td>收货人地址</td>
<td><bean:write name="userinfo" property="useraddress"/></td>
</tr>
<tr>
<td>收货时间</td>
<td>
<input type="text" name="time" onclick="MyCalendar.SetDate(this)" />
</td>
</tr>
</tbody>
</table>
<html:submit property="method" ><bean:message key="Addorder"/></html:submit>
<html:link page="/form/addOrder.jsp">继续购物</html:link>
</html:form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -