viewPro.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:5k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.*"%>
  3. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  4. <jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
  5. <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
  6. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  7. <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
  8. <% request.setCharacterEncoding("gb2312");%>
  9. <%!
  10.    String Zhuan(String str)
  11.    {
  12.         str=str.replaceAll("&", "&amp;");
  13.         str=str.replaceAll(""", "&quot;");
  14.         str=str.replaceAll("<", "&lt;");
  15. str=str.replaceAll(">", "&gt;");
  16. return str;
  17.    }
  18. %>
  19. <%
  20.     String index=request.getParameter("index").replace(',', '#');
  21. productinfoBean.getNew(index);
  22. %>
  23. <script language="javascript" src="../js/column.js"></script>
  24. <STYLE type=text/css>
  25. BODY {
  26. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  27. }
  28. TABLE {
  29. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  30. }
  31. TD {
  32. FONT: 12px 宋体
  33. }
  34. IMG {
  35. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  36. }
  37. A {
  38. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  39. }
  40. A:hover {
  41. COLOR: #428eff; TEXT-DECORATION: underline
  42. }
  43. .sec_menu {
  44. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  45. }
  46. .menu_title {
  47. }
  48. .menu_title SPAN {
  49. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  50. }
  51. .menu_title2 {
  52. }
  53. .menu_title2 SPAN {
  54. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  55. }
  56. .style1 {color: #FF0000}
  57. </STYLE>
  58. <script language="javascript" src="../js/column.js"></script>
  59. <html>
  60. <head>
  61. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  62.  
  63. <title>产品信息查看</title>
  64. </head>
  65. <body>
  66. <p>
  67. </p>
  68. <p>&nbsp; </p>
  69. <table width="528" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  70.     <tr align="center"> 
  71.       <td height="23" colspan="2"> 
  72.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  73.           <tr> 
  74.             <td width="79%" height="33" align="center"><span class="style1">产品信息查看</span></td>
  75.           </tr>
  76.         </table>
  77.       </td>
  78.     </tr>
  79.     <tr align="left"> 
  80.       <td height="30">
  81. &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品编号:&nbsp;&nbsp;&nbsp;      </td>
  82.   
  83.       <td width="72%" height="30"><%=index%></td>
  84.     </tr>
  85.     <tr align="left">
  86.       <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品名称:&nbsp;&nbsp;&nbsp;</td>
  87.       <td height="30"><%=productinfoBean.getProductName()%></td>
  88.     </tr>
  89.     <tr align="left">
  90.       <td height="30" >&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;性质类别:&nbsp;&nbsp;&nbsp;</td>
  91.       <td height="30">
  92. <%
  93.      if(characterclassBean.getNew(productinfoBean.getCharacterID()))
  94.   {
  95.       out.println(characterclassBean.getCharacterName());
  96.   }
  97.   else
  98.   {
  99.       out.print("-----");
  100.   }
  101. %>
  102. </td>
  103.     </tr>
  104.     <tr align="left">
  105.       <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;用途类别:</td>
  106.       <td height="30">
  107. <%
  108.       if(useclassBean.getNew(productinfoBean.getUseclassID()))
  109.   {
  110.       out.println(useclassBean.getUseclassName());
  111.   }
  112.   else
  113.   {
  114.       out.print("-----");
  115.   }
  116. %>
  117. </td>
  118.     </tr>
  119.     <tr align="left" valign="middle"> 
  120.       <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; 市场价:
  121.         
  122. &nbsp;&nbsp;&nbsp;&nbsp; 
  123.       </td>
  124.       <td height="30"><%=productinfoBean.getMarketPrice()%>
  125.       </td>
  126.     </tr>
  127.     <tr align="left">
  128.       <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  优惠价:
  129.         
  130. &nbsp;&nbsp;&nbsp;&nbsp;      </td>
  131.       <td height="30"><%=productinfoBean.getPreferPrice()%>
  132.        </td>
  133.     </tr>
  134. <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  精品推荐:
  135.         
  136. &nbsp;&nbsp;&nbsp;&nbsp;      </td>
  137.       <td height="30">
  138.   <%
  139.     if(productinfoBean.getTuijian() == 1)
  140. {
  141. %>
  142.  是
  143.  <%
  144.  }
  145.  else
  146.  {
  147.  %>
  148.  否
  149.  <%
  150.  }
  151.  %>
  152.   
  153.   
  154.        </td>
  155.     <tr align="center"> 
  156.       <td width="28%" height="79" valign="middle">&nbsp;产品说明:</td>
  157.   <td align="left">
  158.  <%=productinfoBean.getIntroduce()%>
  159.   
  160.       </td>
  161.     </tr>
  162.     <tr align="left"> 
  163.       <td height="30" align="center">&nbsp;产品库存:</td>
  164.       <td height="30"><%=productinfoBean.getStorage()%>
  165.         </td>
  166.     </tr>
  167.     <tr align="center">
  168.       <td height="26">&nbsp;&nbsp; 产品大图片:</td>
  169.       <td height="26" align="left">&nbsp;&nbsp; &nbsp;
  170.       <img src="../../product_image/<%=productinfoBean.getMaxPicture()%>" width="120" height="129" border="0"></td>
  171.     </tr>
  172.     <tr align="center"> 
  173.       <td height="44">&nbsp;&nbsp; 产品小图片:<br></td>
  174.       <td height="30" align="left">&nbsp;&nbsp;&nbsp;      <img src="../../product_image/<%=productinfoBean.getMinPicture()%>" width="125" height="119" border="0"></td>
  175.     </tr>
  176. </table>
  177. <p>&nbsp;</p>
  178. </body>
  179. </html>