📄 2.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"
pageEncoding="gb2312" import="com.qrsx.buyflowers.beans.*,java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<jsp:useBean id="goods" class="com.qrsx.buyflowers.beans.GoodsBean"
scope="session" />
<jsp:useBean id="cart" class="com.qrsx.buyflowers.beans.CartBean"
scope="session">
</jsp:useBean>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
GoodsBean gb = new GoodsBean();
Collection c = gb.getGoods(request.getParameter("goodsId"));
Iterator it = c.iterator();
GoodsClass goodsClass = null;
if (it.hasNext()) {
goodsClass = (GoodsClass) it.next();
}
%>
<TABLE cellSpacing=0 cellPadding=0 width=760 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 width="812" border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=center width=239 bgColor=#fcfff0>
<TABLE cellSpacing=0 cellPadding=2 width="100%" border=0>
<TBODY>
<TR>
<TD>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=5 width=135
border=1>
<TBODY>
<TR>
<TD>
<IMG
onclick="MM_showHideLayers('pic','','show')"
height=160 alt=点击浏览商品大图
src="image/<%=Integer.parseInt(goodsClass.getGoodsId())+3000%>.jpg"
width=160 border=0>
</TD>
</TR>
</TBODY>
</TABLE>
<DIV id=pic
style="Z-INDEX: 1; LEFT: 150px; VISIBILITY: hidden; POSITION: absolute; TOP: 121px">
<TABLE cellSpacing=1 cellPadding=0 bgColor=#c9ea79
border=0>
<TBODY>
<TR>
<TD align=right bgColor=#339900 height=18>
<TABLE cellSpacing=0 cellPadding=0 width=20
align=right border=0>
<TBODY>
<TR>
<TD>
<IMG
onclick="MM_showHideLayers('pic','','hide')"
height=13 src="1Image.files/close.gif"
width=15>
</TD>
<TD width=5></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD bgColor=#ffffff>
<IMG
src="imageBig/<%=goodsClass.getGoodsId()%>.jpg"
border=0>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<TABLE cellSpacing=0 cellPadding=0 width="70%"
border=0>
<TBODY>
<TR>
<TD height=30>
<DIV align=center></DIV>
</TD>
<TD>
<DIV align=center></DIV>
</TD>
</TR>
</TBODY>
</TABLE>
<BR>
</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD>
<IMG height=62 alt=""
src="1Image.files/list_r1_c1.gif" width=564 border=0
name=list_r1_c1>
</TD>
</TR>
<TR>
<TD background=1Image.files/list_r3_c1.gif
bgColor=#ffffff>
<TABLE cellSpacing=0 cellPadding=2 width="90%"
align=center border=0>
<TBODY>
<TR>
<TD width="20%">
</TD>
<TD colSpan=2>
<div align="left"></div>
</TD>
</TR>
<TR>
<TD width="30%" background="">
【
<SPAN class=bold1>编 号</SPAN> 】
</TD>
<TD bgColor=#fafafa colSpan=2>
<div align="left">
<%=goodsClass.getGoodsId()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>名 称</SPAN> 】
</TD>
<TD bgColor=#fafafa colSpan=2>
<div align="left">
<%=goodsClass.getGoodsName()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>花 材</SPAN> 】
</TD>
<TD bgColor=#fafafa colSpan=2>
<div align="left">
<%=goodsClass.getGoodsmaterial()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>包 装</SPAN> 】
</TD>
<TD bgColor=#fafafa colSpan=2>
<div align="left">
<%=goodsClass.getGoodsPackage()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>花 语</SPAN> 】
</TD>
<TD bgColor=#fafafa colSpan=2>
<div align="left">
<%=goodsClass.getGoodsLanguage()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>价 格</SPAN> 】
</TD>
<TD width="80%" bgColor=#fafafa>
<div align="left">
<%=goodsClass.getGoodsPrice()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
</TBODY>
<TBODY>
<TR>
<TD width="20%" background="">
【
<SPAN class=bold1>商品积分</SPAN> 】
</TD>
<TD width="80%" bgColor=#fafafa>
<div align="left">
<%=goodsClass.getGoodsCent()%>
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>配送范围</SPAN> 】
</TD>
<TD bgColor=#fafafa>
<div align="left">
青岛市各市区,配送全国各大中城市
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>适用场合</SPAN> 】
</TD>
<TD bgColor=#fafafa>
<div align="left">
爱情 | 生日 | 思念 | 祝福 | 友情 | 会议
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD background="">
【
<SPAN class=bold1>商品状态</SPAN> 】
</TD>
<TD bgColor=#fafafa>
<div align="left">
上架
</div>
</TD>
</TR>
<TR>
<TD background=1Image.files/line.gif colSpan=3
height=1></TD>
</TR>
<TR>
<TD colSpan=2 height=30>
<DIV align=right>
<span class="style1">添加至购物车</span>
<FORM name=form1
action=../register/cart.jsp method=post>
<input type=hidden name=goodsId value=<%=goodsClass.getGoodsId()%> >
<input type=submit value="add" name="action">
</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -