📄 showdetial_part.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE1 {
font-family: "宋体";
font-weight: bold;
}
-->
</style></head>
<%@ page import="java.util.*"%>
<%
Hashtable goodInfo=(Hashtable)session.getAttribute("goodInfo");
//Hashtable goodInfo=(Hashtable)((ArrayList)application.getAttribute("goodsList")).get(2);
if(goodInfo==null){
out.println("<script language=javascript> alert(\"goodInfo is null :: logical error!\"); </script>");
return ;
}
session.removeAttribute("goodInfo");
String price=goodInfo.get("goodPrice").toString();
price=price.substring(0,price.length()-2);
String detialInfo=(String)goodInfo.get("goodDetail");
if(detialInfo==null)
detialInfo="暂无";
%>
<body>
<table width="505" border="0" background="images/b49.gif">
<tr>
<td width="499"><table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#000000">
<tr>
<td align="left" valign="top"><table width="100%" border="0">
<tr>
<td align="center" width="33"> <!--存放图片-->
<IMG alt="游戏图片 "
src="<%=request.getContextPath()%>/images/<%=goodInfo.get("goodPath")%>" width=200 border=0
borercolor="#bbbbbb"> </td>
<td><table width="100%" border="0" bordercolor="#000000">
<tr>
<td><!---显示商品的详细信息---->
<TABLE borderColor=#FFFFFF cellSpacing=0 cellPadding=0 width="95%"
border=1>
<TBODY>
<tr>
<TD align=middle height=20><span class="STYLE1"><FONT color=#ff6600>商 品 详
情</FONT></span></TD>
</tr>
<TR>
<TD vAlign=top align=left>
<TABLE width="98%" border=1 cellPadding=2 cellSpacing=0 bordercolor="#FFFFFF">
<TBODY>
<TR>
<TD align=center width="33%">编 号:</TD>
<TD width="98"><FONT color=#ff0000><%=goodInfo.get("goodId")%></FONT>
<TR>
<TD align=center width="33%">名 称:</TD>
<TD><%=goodInfo.get("goodName")%></TD>
</TR>
<TR>
<TD align=center width="33%">说 明:</TD>
<TD><%=detialInfo%></TD></TR>
<TR>
<TD align=center width="33%">价 格:</TD>
<TD><FONT
color=red>¥<%=price%></FONT> </TD>
</TR>
<tr>
<TD align=center colspan="2">
<A href="<%=request.getContextPath()%>/BuyAction?goodId=<%=goodInfo.get("goodId")%>">
<IMG height=24 src="<%=request.getContextPath()%>/images/buy.gif" width=118 border=0></A>
</TD>
</tr>
</TBODY></TABLE></TD></TR></TBODY></TABLE>
<STRONG></STRONG></TD></TR></TBODY></TABLE>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -