?? 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 + -