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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="MyFly.DataBase.*"%>
  4. <%@ page import="MyFly.Bean.*" %>
  5. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  6. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  7. <% request.setCharacterEncoding("gb2312");%>
  8. <script language="javascript" src="../js/column.js"></script>
  9. <%
  10. sqlBean ben=new sqlBean();
  11. String sql="select * from useclass order by useclassID asc"; 
  12. ResultSet rs=ben.executeQuery(sql); 
  13. %> 
  14. <!--将二级栏目信息保存到数组subcat中--> 
  15. <script type="text/javascript"> 
  16. var onecount; 
  17. onecount=0; 
  18. subcat = new Array(); 
  19. <% 
  20. int count = 0; 
  21. while(rs.next()){ 
  22. %> 
  23. subcat[<%=count%>] = new Array("<%=rs.getString("useclassName")%>","<%=rs.getString("useclassID")%>","<%=rs.getString("characterID")%>"); 
  24. <% 
  25. count++; 
  26. rs.close(); 
  27. %> 
  28. onecount=<%=count%>; 
  29. <!--决定select显示的函数--> 
  30. function changelocation(locationid) 
  31. document.theform.useclassID.length = 0; 
  32. var locationid=locationid; 
  33. var i; 
  34. for (i=0;i < onecount; i++) 
  35. if (subcat[i][2] == locationid) 
  36. document.theform.useclassID.options[document.theform.useclassID.length] = new Option(subcat[i][0], subcat[i][1]); 
  37. </script> 
  38. <STYLE type=text/css>
  39. BODY {
  40. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  41. }
  42. TABLE {
  43. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  44. }
  45. TD {
  46. FONT: 12px 宋体
  47. }
  48. IMG {
  49. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  50. }
  51. A {
  52. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  53. }
  54. A:hover {
  55. COLOR: #428eff; TEXT-DECORATION: underline
  56. }
  57. .sec_menu {
  58. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  59. }
  60. .menu_title {
  61. }
  62. .menu_title SPAN {
  63. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  64. }
  65. .menu_title2 {
  66. }
  67. .menu_title2 SPAN {
  68. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  69. }
  70. .style1 {color: #FF0000}
  71. </STYLE>
  72. <script language="javascript" src="../js/column.js"></script>
  73. <html>
  74. <head>
  75. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  76.  
  77. <title>添加产品信息</title>
  78. </head>
  79. <body>
  80. <p>&nbsp; </p>
  81. <table width="725" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  82.   <form name="theform" method="post" action="productedInsert.jsp"  enctype="multipart/form-data" onSubmit="return formCheck1(this)">
  83.     <tr align="center"> 
  84.       <td height="23" colspan="2"> 
  85.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  86.           <tr> 
  87.             <td width="79%" height="33" align="center"><span class="style1">产品信息管理</span></td>
  88.           </tr>
  89.         </table>
  90.       </td>
  91.     </tr>
  92.     <tr align="left"> 
  93.       <td height="30">产品编号:&nbsp;&nbsp;&nbsp;      </td>
  94.   
  95.       <td height="30"><input name="productID" type="text" size="40"></td>
  96.     </tr>
  97.     <tr align="left">
  98.       <td height="30">产品名称:</td>
  99.       <td height="30">
  100.         <input name="productName" type="text" size="40" height="16"></td>
  101.     </tr>
  102.     <tr align="left">
  103.       <td height="30" >一级类别:</td>
  104.       <td height="30">      <select name="characterID" onChange="changelocation(document.theform.characterID.options[document.theform.characterID.selectedIndex].value)">
  105.         <OPTION selected value="-1">==请选一级分类==</OPTION> 
  106.         <%
  107.                    characterclassBeans.getQuery("-1");
  108.    for(int i=0; i<characterclassBeans.getItems(); i++)
  109.    {
  110.      %>
  111.         <option value=<%=characterclassBeans.getCharacterID(i)%>><%=characterclassBeans.getCharacterName(i)%></option>
  112.         <%
  113.   }
  114.   %>
  115.       </select></td>
  116.     </tr>
  117.     <tr align="left">
  118.       <td height="30">二级类别:</td>
  119.       <td height="30">
  120.         <select name="useclassID">
  121. <OPTION selected value="-1">==请选二级分类==</OPTION> 
  122.       </select></td>
  123.     </tr>
  124.     <tr align="left" valign="middle"> 
  125.       <td height="30"> 市场价:
  126.       </td>
  127.       <td height="30">
  128.       <input type="text" name="marketPrice" height="16"></td>
  129.     </tr>
  130.     <tr align="left">
  131.       <td height="30">优惠价:
  132.         </td>
  133.       <td height="30">
  134.         <input type="text" name="preferPrice" height="16"></td>
  135.     </tr>
  136.     <tr align="center"> 
  137.       <td width="20%" height="202" valign="left">产品说明:</td>
  138.       <td width="80%" align="left">
  139.   <input type="hidden" name="content" value="在此添加内容">
  140.       <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe> 
  141.       </td>
  142.     </tr>
  143.     <tr align="left"> 
  144.       <td height="30" align="center">产品库存:</td>
  145.       <td height="30">
  146.         <input type="text" size="20" name="storage" height="16"></td>
  147.     </tr>
  148.     <tr align="center">
  149.       <td height="26">产品大图片:</td>
  150.       <td height="26" align="left">
  151.       <input type="file" name="maxPicture" height="16"></td>
  152.     </tr>
  153.     <tr align="center"> 
  154.       <td height="44">产品小图片:<br></td>
  155.       <td height="30" align="left">
  156. <input type="file" name="minPicture" height="16"></td>
  157.     </tr>
  158. <tr align="left"> 
  159.       <td height="30" align="center">出版社:</td>
  160.       <td height="30">
  161.         <input type="text" size="20" name="publish" height="16"></td>
  162.     </tr>
  163. <tr align="left"> 
  164.       <td height="30" align="center">作者:</td>
  165.       <td height="30">
  166.         <input type="text" size="20" name="author" height="16"></td>
  167.     </tr>
  168.  </tr>
  169.     <tr align="center"> 
  170.       <td height="44">是否设为精品书推荐:<br></td>
  171.       <td height="30" align="left"><input type="checkbox" name="tuijian"><font color="#FF0033">是请钩选</font></td>
  172.   
  173.     </tr>
  174.  <tr align="center"> 
  175.       <td height="44">是否设为新书:<br></td>
  176.       <td height="30" align="left"><input type="checkbox" name="isnew"><font color="#FF0033">是请钩选</font></td>
  177.   
  178.     </tr>
  179.     <tr align="center"> 
  180.       <td height="41" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  181.           <tr> 
  182.             <td width="25%" align="center">&nbsp;</td>
  183.             <td width="75%" align="left">&nbsp; <input type="submit" value="提交"> 
  184.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="重置"> 
  185.             </td>
  186.           </tr>
  187.       </table></td>
  188.     </tr>
  189.   </form>
  190.   
  191. </table>
  192. <p>&nbsp;</p>
  193. </body>
  194. </html></textarea>