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

📄 viewpro.jsp

📁 基于JSP的简单网上书店设计与实现(各模块完整齐全)
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="java.sql.*"%>
<jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
<jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
<jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
<jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
<jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
<% request.setCharacterEncoding("gb2312");%>

<%!
   String Zhuan(String str)
   {
        str=str.replaceAll("&", "&amp;");
        str=str.replaceAll("\"", "&quot;");
        str=str.replaceAll("<", "&lt;");
		str=str.replaceAll(">", "&gt;");
		return str;
   }
%>


<%
    String index=request.getParameter("index").replace(',', '#');
	productinfoBean.getNew(index);
%>
<script language="javascript" src="../js/column.js"></script>
<STYLE type=text/css>
BODY {
	BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
}
TABLE {
	BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
}
TD {
	FONT: 12px 宋体
}
IMG {
	BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
}
A {
	COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
}
A:hover {
	COLOR: #428eff; TEXT-DECORATION: underline
}
.sec_menu {
	BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
}
.menu_title {
	
}
.menu_title SPAN {
	COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
}
.menu_title2 {
	
}
.menu_title2 SPAN {
	COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
}
.style1 {color: #FF0000}
</STYLE>
<script language="javascript" src="../js/column.js"></script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 
<title>产品信息查看</title>

</head>
<body>

<p>
</p>
<p>&nbsp; </p>
<table width="528" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
    <tr align="center"> 
      <td height="23" colspan="2"> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="79%" height="33" align="center"><span class="style1">产品信息查看</span></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr align="left"> 
      <td height="30">
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品编号:&nbsp;&nbsp;&nbsp;      </td>
  
      <td width="72%" height="30"><%=index%></td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品名称:&nbsp;&nbsp;&nbsp;</td>
      <td height="30"><%=productinfoBean.getProductName()%></td>
    </tr>
    <tr align="left">
      <td height="30" >&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;性质类别:&nbsp;&nbsp;&nbsp;</td>
      <td height="30">
		<%
		     if(characterclassBean.getNew(productinfoBean.getCharacterID()))
			  {
			      out.println(characterclassBean.getCharacterName());
			  }
			  else
			  {
			      out.print("-----");
			  }
		%>
</td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;用途类别:</td>
      <td height="30">
		<%
		      if(useclassBean.getNew(productinfoBean.getUseclassID()))
			  {
			      out.println(useclassBean.getUseclassName());
			  }
			  else
			  {
			      out.print("-----");
			  }
		%>
		</td>
    </tr>
    <tr align="left" valign="middle"> 
      <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; 市场价:
        
&nbsp;&nbsp;&nbsp;&nbsp; 
      </td>
      <td height="30"><%=productinfoBean.getMarketPrice()%>
      </td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  优惠价:
        
&nbsp;&nbsp;&nbsp;&nbsp;      </td>
      <td height="30"><%=productinfoBean.getPreferPrice()%>
       </td>
    </tr>
	
	<td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  精品推荐:
        
&nbsp;&nbsp;&nbsp;&nbsp;      </td>
      <td height="30">
	  <%
	    if(productinfoBean.getTuijian() == 1)
		{
	%>
	 <%
	 }
	 else
	 {
	 %>
	 <%
	 }
	 %>
	  
	  
       </td>
	
	
    <tr align="center"> 
      <td width="28%" height="79" valign="middle">&nbsp;产品说明:</td>
	  <td align="left">
	 <%=productinfoBean.getIntroduce()%>
	  
      </td>
    </tr>
    <tr align="left"> 
      <td height="30" align="center">&nbsp;产品库存:</td>
      <td height="30"><%=productinfoBean.getStorage()%>
        </td>
    </tr>
    <tr align="center">
      <td height="26">&nbsp;&nbsp; 产品大图片:</td>
      <td height="26" align="left">&nbsp;&nbsp; &nbsp;
      <img src="../../product_image/<%=productinfoBean.getMaxPicture()%>" width="120" height="129" border="0"></td>
    </tr>
    <tr align="center"> 
      <td height="44">&nbsp;&nbsp; 产品小图片:<br></td>
      <td height="30" align="left">&nbsp;&nbsp;&nbsp;      <img src="../../product_image/<%=productinfoBean.getMinPicture()%>" width="125" height="119" border="0"></td>
    </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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