📄 viewitem.jsp
字号:
<%@ page
language="java"
pageEncoding="gb2312"
import="com.webshop.view.*,com.webshop.exception.*,com.webshop.domain.*"
%>
<%@ include file="/include/top.jspf"%>
<br>
<%
String itemId=request.getParameter("itemId");
if(itemId==null||"".equals(itemId))
response.sendRedirect(request.getRequestURI());
else
{
Item item=ProductBean.getInstance().getItemById(itemId) ;
Product product=item.getProduct();
%>
<TABLE class=font1 cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width="99%" align=center bgColor=#ffffff borderColorLight=#003686 border=1>
<tr bgcolor="#C4E669">
<td valign="top">名称:<%=product.getName()%></td>
</tr>
<tr bgcolor="#C4E669">
<td>说明:<%=product.getDescription()%></td>
</tr>
</table>
<TABLE class=font1 cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width="99%" align=center bgColor=#ffffff borderColorLight=#003686 border=1>
<tr bgcolor="#fffdd7">
<td>类别:<%=item.getAttr1()%></td>
<td valign="top">原价:<%= item.getListPrice()%></td>
<td>优惠价:<%= item.getUnitCost()%></td>
<td>状态:<%="1".equals(item.getStatus())?"有货":"缺货"%></td>
<td><a href="/cart/addItem.do?theItemId=<%=item.getItemId()%>"><img src="/images/button_add_to_cart.gif" border=0></a></td>
</tr>
<tr bgcolor="#fffdd7">
<td colspan=6>
<%=item.getAttr4()%>
</td>
</tr>
<tr bgcolor="#fffdd7">
<td colspan=6>
<%=item.getAttr3()%><br>
<%=item.getAttr2()%><br>
<%=item.getAttr5()%> <br>
</td>
</tr>
</td>
<%
}
%>
</table>
<%@ include file="/include/bottom.jspf"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -