⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientshowonecommodity.jsp

📁 电子商务网站使用MVC模式B/S结构功能不是很全适合初学者看
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.util.Hashtable"%>
<%@page import="java.util.ArrayList" %>

<%
	Hashtable table=(Hashtable)session.getAttribute("table".toUpperCase());
		String card="",num="",model="",photo="",net="",price="",special="",picture="",describe="",restNum="";
		int id=0;	
	if(table!=null){
		card=table.get("card".toUpperCase()).toString();
		num=table.get("num".toUpperCase()).toString();
		model=table.get("model".toUpperCase()).toString();
		photo=table.get("photo".toUpperCase()).toString();
		net=table.get("net".toUpperCase()).toString();
		price=table.get("price".toUpperCase()).toString();
		price=price.substring(0,price.indexOf("."));
		special=table.get("special".toUpperCase()).toString();
		picture=request.getContextPath()+"/image/phone/"+card+"/"+num+"/"+table.get("picture".toUpperCase()).toString();
		describe="/image/phone/"+card+"/"+num+"/"+table.get("describe".toUpperCase()).toString();
		System.out.println(describe);
		id=Integer.parseInt(table.get("id".toUpperCase()).toString());
		restNum=table.get("restNum".toUpperCase()).toString();
		
	}

%>
<style type="text/css">
<!--
.style3 {color: green;size:14;}
-->
</style>

<CENTER>
<TABLE style="MARGIN-TOP: 4px" cellSpacing=0 cellPadding=0 width=733 
background="<%=request.getContextPath()%>/image/cpw01.jpg" 
border=0>
  <TBODY>
  <TR>
    <TD 
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 60px; FONT-WEIGHT: bold; FONT-SIZE: 14px; FILTER: glow(color=white,strength=2); PADDING-BOTTOM: 0px; PADDING-TOP: 4px">&nbsp;</TD>
    <TD style="FILTER: glow(color=white,strength=2)" align=right>&nbsp; </TD>
    <TD align=right width=140>&nbsp;</TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=513 border=0>
  <TBODY>
  <TR vAlign=top>
  	<TD width=26><IMG height=242 
      src="<%=request.getContextPath()%>/image/biaoge_tou.jpg" 
      width=26></TD>
    <TD width=170>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR align=middle>
          <TD height=218><IMG 
            src="<%=picture%>" width=162 height=242></TD>
        </TR>
        </TBODY></TABLE></TD>
    <TD width=280>
      <TABLE cellSpacing=1 cellPadding=0 height=242 width=280 border=0>
        <TBODY>
        <TR>
          <TD 
          background="<%=request.getContextPath()%>/image/biaoge_a.jpg" 
          height=16>&nbsp产品基本信息</TD></TR>
        <TR bgColor=#eeeeee>
          <TD height=22>&nbsp;</TD></TR>
        <TR bgColor=#eeeeee>
          <TD height=22><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>手机品牌:</B><%=card%></TD></TR>
        <TR bgColor=#eeeeee>
          <TD height=22><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>手机型号:</B><%=num%></TD></TR>
		<TR bgColor=#eeeeee>
          <TD height=22><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>参考价格:</B><%=price%>(元)</TD>
        </TR>
        
        <TR bgColor=#eeeeee>
          <TD height=22><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>外观设计:</B><%=model%></TD></TR>
        <TR bgColor=#eeeeee>
          <TD height=31><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>数码相机:</B><%=photo%></TD>
        </TR>
		<TR bgColor=#eeeeee>
          <TD height=22><IMG height=6 
            src="<%=request.getContextPath()%>/image/biaoge_jiantou.jpg" 
            width=24><B>网络制式:</B><%=net%></TD></TR>
        
        <TR vAlign=bottom align=right bgColor=#eeeeee>
          <TD height=33>&nbsp;</TD>
        </TR></TBODY>
	  </TABLE>
	</TD>
    <td width="250">
      <TABLE cellSpacing=1 cellPadding=0 width=256 border=0 height="242">
        <TBODY>
        <TR bgColor=#eeeeee>
          <TD height=22><img src="<%=request.getContextPath()%>/image/car.gif" width="30"> </TD>
		</TR>
        <TR bgColor=#eeeeee>
          <TD height=22></td>
   	    </TR>
        <TR bgColor=#eeeeee>
          <TD height=22> </TD>
		</TR>
        <TR vAlign=bottom bgColor=#eeeeee>
          <TD height=32></TD>
        </TR>
		</TBODY>
	  </TABLE>   
    <TD width=9><IMG height=242 src="<%=request.getContextPath()%>/image/cpw08.gif" width=9></td>
 </TR>
 </TBODY>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=733 border=0>
  <TBODY>
  <TR>
    <TD><IMG height=14 src="<%=request.getContextPath()%>/image/biaoge_di.jpg" width=733></TD>
  </TR>
  </tbody>
 </table>
 <table> 
  <tr>
	 <td height="10" bgcolor="#FFFFFF" valign="top" ><span class="style3">具体参数:<br></span></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" width="733">
	   <jsp:include page="<%=describe%>" flush="true"></jsp:include>
	</td>
  </tr>
  </TBODY>
</TABLE>

<p>&nbsp;</p>
<p>&nbsp;</p>
</CENTER>







⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -