📄 add_goods_form.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎光临网上商城</title>
<link rel=stylesheet type=text/css href="./lib/ware.css">
<jsp:useBean scope="page" id="Ware" class="com.wssd.Ware" />
<jsp:useBean scope="page" id="Sort" class="com.wssd.Sort" />
</head> <% request.setCharacterEncoding("UTF-8"); %>
<%
//获取商品索引号
String sWareID = request.getParameter("WareID");
long lWareID = Long.parseLong(sWareID);
//获取商品信息
Ware.setWareID(lWareID);
Ware.init();
//获取商品的类别信息
Sort.setSortID(Ware.getSortID());
Sort.init();
String strPage = request.getParameter("showPage");
%>
<body bgcolor="#F4FFFE">
<div align="center">
<table width="80%" cellpadding="0" cellspacing="1">
<tr bgcolor="#0066FF">
<td width="100%" colspan="2" height="30" align="center"><font color="#FFFFFF">您要购买的商品信息如下</font></td>
</tr>
<tr>
<td width="50%" height="25" align="right">【商品名称】 </td>
<td width="50%" height="25" align="left"> <font color="#0000FF"><%=Ware.getWareName()%></font></td>
</tr>
<tr>
<td width="50%" height="25" align="right">【商品类别】 </td>
<td width="50%" height="25" align="left"> <font color="#0000FF"><%=Sort.getSortName()%></font></td>
</tr>
<tr>
<td width="50%" height="25" align="right">【产地】 </td>
<td width="50%" height="25" align="left"> <font color="#0000FF"><%=Ware.getCompany()%></font></td>
</tr>
<tr>
<td width="50%" height="25" align="right">【生产厂家】 </td>
<td width="50%" height="25" align="left"> <font color="#0000FF"><%=Ware.getAddr()%></font></td>
</tr>
<tr>
<td width="50%" height="25" align="right">【价格】 </td>
<td width="50%" height="25" align="left"> <font color="#0000FF"><%=Ware.getPrice()%></font>(RMB)</td>
</tr>
</table>
<p>
<form name="form1" method="post" action="add_goods_save.jsp" target="_self">
<input type="hidden" name="showPage" value="<%=strPage%>">
<input type="hidden" name="WareID" value="<%=Ware.getWareID()%>">
请输入您要购买的商品数量:<input type="text" name="BuyNumber" value="1" size="5">
<input type="submit" name="sub" value="确定">
</form>
</p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -