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

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 index=request.getParameter("index").replace(',', '#');
  11. String proType=request.getParameter("proType");
  12. String proNum=(String)request.getParameter("proNum");
  13. productinfoBean.getNew(index);
  14. %>
  15. <script language="javascript" src="../js/column.js"></script>
  16. <STYLE type=text/css>
  17. BODY {
  18. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  19. }
  20. TABLE {
  21. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  22. }
  23. TD {
  24. FONT: 12px 宋体
  25. }
  26. IMG {
  27. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  28. }
  29. A {
  30. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  31. }
  32. A:hover {
  33. COLOR: #428eff; TEXT-DECORATION: underline
  34. }
  35. .sec_menu {
  36. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  37. }
  38. .menu_title {
  39. }
  40. .menu_title SPAN {
  41. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  42. }
  43. .menu_title2 {
  44. }
  45. .menu_title2 SPAN {
  46. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  47. }
  48. .style1 {color: #FF0000}
  49. </STYLE>
  50. <script language="javascript" src="../js/column.js"></script>
  51. <html>
  52. <head>
  53. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  54.  
  55. <title>添加产品信息</title>
  56. </head>
  57. <body>
  58. <p>
  59. </p>
  60. <p>&nbsp; </p>
  61. <table width="685" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  62.   <form name="theform" method="post" action="productedUpdate.jsp"  enctype="multipart/form-data" onSubmit="return formCheck1(this)">
  63.     <tr align="center"> 
  64.       <td height="23" colspan="2"> 
  65.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  66.           <tr> 
  67.             <td width="79%" height="33" align="center"><span class="style1">产品信息编辑</span></td>
  68.           </tr>
  69.         </table>
  70.       </td>
  71.     </tr>
  72.     <tr align="left"> 
  73.       <td height="30">
  74. &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品编号:&nbsp;&nbsp;&nbsp;      </td>
  75.   
  76.       <td height="30"> &nbsp;&nbsp; &nbsp;&nbsp;<input name="productID" type="text"  readonly="true" size="40" value="<%=index%>"></td>
  77.     </tr>
  78.     <tr align="left">
  79.       <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品名称:&nbsp;&nbsp;&nbsp;</td>
  80.       <td height="30">&nbsp;&nbsp; &nbsp;
  81.         <input name="productName" type="text" size="40" height="16" value="<%=productinfoBean.getProductName()%>"></td>
  82.     </tr>
  83.     <tr align="left">
  84.       <td height="30" >&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;性质类别:&nbsp;&nbsp;&nbsp;</td>
  85.       <td height="30">  &nbsp; &nbsp;&nbsp;
  86.         <select name="characterID">
  87. <option value="-1">------</option>
  88.         <%
  89.                    characterclassBeans.getQuery("-1");
  90.    for(int i=0; i<characterclassBeans.getItems(); i++)
  91.    {
  92.  if(characterclassBeans.getCharacterID(i) == productinfoBean.getCharacterID())
  93.  {
  94.  %>
  95.                         <option value=<%=characterclassBeans.getCharacterID(i)%> selected="true"><%=characterclassBeans.getCharacterName(i)%></option>
  96.                      <%
  97.  }
  98.  else
  99.  {
  100.  %>
  101.  <option value=<%=characterclassBeans.getCharacterID(i)%>><%=characterclassBeans.getCharacterName(i)%></option>
  102.  
  103. <%
  104. }
  105.   }
  106.   %>
  107.       </select></td>
  108.     </tr>
  109.     <tr align="left">
  110.       <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;用途类别:</td>
  111.       <td height="30">  &nbsp; &nbsp;&nbsp;
  112.         <select name="useclassID">
  113. <option value="-1">------</option>
  114.         <%
  115.                    useclassBeans.getQuery("-1");
  116.    for(int i=0; i<useclassBeans.getItems(); i++)
  117.    {
  118.       if(useclassBeans.getUseclassID(i) == productinfoBean.getUseclassID())
  119.   {
  120.      %> 
  121.                        <option value=<%=useclassBeans.getUseclassID(i)%> selected="true"><%=useclassBeans.getUseclassName(i)%></option>
  122.    <%
  123.    }
  124.    else
  125.    {
  126.    %>
  127.    <option value=<%=useclassBeans.getUseclassID(i)%>><%=useclassBeans.getUseclassName(i)%></option>
  128.         
  129. <%
  130. }
  131.   }
  132.   %>
  133.       </select></td>
  134.     </tr>
  135.     <tr align="left" valign="middle"> 
  136.       <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; 市场价:
  137.         
  138. &nbsp;&nbsp;&nbsp;&nbsp; 
  139.       </td>
  140.       <td height="30">&nbsp;&nbsp;&nbsp;&nbsp;
  141.       <input type="text" name="marketPrice" height="16" value="<%=productinfoBean.getMarketPrice()%>"></td>
  142.     </tr>
  143.     <tr align="left">
  144.       <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  优惠价:
  145.         
  146. &nbsp;&nbsp;&nbsp;&nbsp;      </td>
  147.       <td height="30">&nbsp;&nbsp; &nbsp; 
  148.         <input type="text" name="preferPrice" height="16" value="<%=productinfoBean.getPreferPrice()%>"></td>
  149.     </tr>
  150.     <tr align="center"> 
  151.       <td width="21%" height="202" valign="middle">&nbsp;产品说明:</td>
  152.       <td width="79%" align="left">
  153.    <input type="hidden" name="content" value="<%=productinfoBean.getIntroduce()%>">
  154.        <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  155.       </td>
  156.     </tr>
  157.     <tr align="left"> 
  158.       <td height="30" align="center">&nbsp;产品库存:</td>
  159.       <td height="30"> &nbsp;&nbsp;&nbsp;&nbsp; 
  160.         <input type="text" size="20" name="storage" height="16" value="<%=productinfoBean.getStorage()%>"></td>
  161.     </tr>
  162.     <tr align="center">
  163.       <td height="26">&nbsp;&nbsp; 产品大图片:</td>
  164.       <td height="26" align="left">&nbsp;&nbsp; &nbsp;
  165.       <input type="file" name="maxPicture" height="16">
  166.       <font color="#FF0000">(如不更改图片请不要选择)</font></td>
  167.     </tr>
  168.     <tr align="center"> 
  169.       <td height="44">&nbsp;&nbsp; 产品小图片:<br></td>
  170.       <td height="30" align="left">&nbsp;&nbsp;&nbsp;
  171.       <input type="file" name="minPicture" height="16">
  172.       <font color="#FF0000">(如不更改图片请不要选择)</font></td>
  173.     </tr>
  174. <tr align="center"> 
  175.       <td height="44">&nbsp;&nbsp; 是否设为精品推荐:<br></td>
  176.       <td height="30" align="left">
  177.   <%
  178.     if(productinfoBean.getTuijian() == 1)
  179. {
  180. %>
  181.  <input type="checkbox" name="tuijian" checked="true">
  182.  <%
  183.  }
  184.  else
  185.  {
  186.  %>
  187.  <input type="checkbox" name="tuijian">
  188.  <%
  189.  }
  190.  %>
  191.       </td>
  192.     </tr>
  193.     <tr align="center"> 
  194.       <td height="41" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  195.           <tr> 
  196.             <td width="25%" align="center">&nbsp;</td>
  197.             <td width="75%" align="left">&nbsp; <input type="submit" value="提交"> 
  198.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="重置"> 
  199.             </td>
  200.           </tr>
  201.       </table></td>
  202.     </tr>
  203.   </form>
  204. </table>
  205. <p>&nbsp;</p>
  206. </body>
  207. </html>