produceinfoView.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:7k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*"%>
- <%@ page import="MyFly.DataBase.*"%>
- <%@ page import="MyFly.Bean.*" %>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <% request.setCharacterEncoding("gb2312");%>
- <script language="javascript" src="../js/column.js"></script>
- <%
- sqlBean ben=new sqlBean();
- String sql="select * from useclass order by useclassID asc";
- ResultSet rs=ben.executeQuery(sql);
- %>
- <!--将二级栏目信息保存到数组subcat中-->
- <script type="text/javascript">
- var onecount;
- onecount=0;
- subcat = new Array();
- <%
- int count = 0;
- while(rs.next()){
- %>
- subcat[<%=count%>] = new Array("<%=rs.getString("useclassName")%>","<%=rs.getString("useclassID")%>","<%=rs.getString("characterID")%>");
- <%
- count++;
- }
- rs.close();
- %>
- onecount=<%=count%>;
- <!--决定select显示的函数-->
- function changelocation(locationid)
- {
- document.theform.useclassID.length = 0;
- var locationid=locationid;
- var i;
- for (i=0;i < onecount; i++)
- {
- if (subcat[i][2] == locationid)
- {
- document.theform.useclassID.options[document.theform.useclassID.length] = new Option(subcat[i][0], subcat[i][1]);
- }
- }
- }
- </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>
- <table width="725" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <form name="theform" method="post" action="productedInsert.jsp" enctype="multipart/form-data" onSubmit="return formCheck1(this)">
- <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">产品编号: </td>
- <td height="30"><input name="productID" type="text" size="40"></td>
- </tr>
- <tr align="left">
- <td height="30">产品名称:</td>
- <td height="30">
- <input name="productName" type="text" size="40" height="16"></td>
- </tr>
- <tr align="left">
- <td height="30" >一级类别:</td>
- <td height="30"> <select name="characterID" onChange="changelocation(document.theform.characterID.options[document.theform.characterID.selectedIndex].value)">
- <OPTION selected value="-1">==请选一级分类==</OPTION>
- <%
- characterclassBeans.getQuery("-1");
- for(int i=0; i<characterclassBeans.getItems(); i++)
- {
- %>
- <option value=<%=characterclassBeans.getCharacterID(i)%>><%=characterclassBeans.getCharacterName(i)%></option>
- <%
- }
- %>
- </select></td>
- </tr>
- <tr align="left">
- <td height="30">二级类别:</td>
- <td height="30">
- <select name="useclassID">
- <OPTION selected value="-1">==请选二级分类==</OPTION>
- </select></td>
- </tr>
- <tr align="left" valign="middle">
- <td height="30"> 市场价:
- </td>
- <td height="30">
- <input type="text" name="marketPrice" height="16"></td>
- </tr>
- <tr align="left">
- <td height="30">优惠价:
- </td>
- <td height="30">
- <input type="text" name="preferPrice" height="16"></td>
- </tr>
- <tr align="center">
- <td width="20%" height="202" valign="left">产品说明:</td>
- <td width="80%" align="left">
- <input type="hidden" name="content" value="在此添加内容">
- <iframe ID="eWebEditor1" src="../../../eWebEditor.jsp?id=content&style=standard" frameborder="0" scrolling="no" width="650" HEIGHT="350"></iframe>
- </td>
- </tr>
- <tr align="left">
- <td height="30" align="center">产品库存:</td>
- <td height="30">
- <input type="text" size="20" name="storage" height="16"></td>
- </tr>
- <tr align="center">
- <td height="26">产品大图片:</td>
- <td height="26" align="left">
- <input type="file" name="maxPicture" height="16"></td>
- </tr>
- <tr align="center">
- <td height="44">产品小图片:<br></td>
- <td height="30" align="left">
- <input type="file" name="minPicture" height="16"></td>
- </tr>
- <tr align="left">
- <td height="30" align="center">出版社:</td>
- <td height="30">
- <input type="text" size="20" name="publish" height="16"></td>
- </tr>
- <tr align="left">
- <td height="30" align="center">作者:</td>
- <td height="30">
- <input type="text" size="20" name="author" height="16"></td>
- </tr>
- </tr>
- <tr align="center">
- <td height="44">是否设为精品书推荐:<br></td>
- <td height="30" align="left"><input type="checkbox" name="tuijian"><font color="#FF0033">是请钩选</font></td>
- </tr>
- <tr align="center">
- <td height="44">是否设为新书:<br></td>
- <td height="30" align="left"><input type="checkbox" name="isnew"><font color="#FF0033">是请钩选</font></td>
- </tr>
- <tr align="center">
- <td height="41" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="25%" align="center"> </td>
- <td width="75%" align="left"> <input type="submit" value="提交">
- <input type="reset" value="重置">
- </td>
- </tr>
- </table></td>
- </tr>
- </form>
- </table>
- <p> </p>
- </body>
- </html></textarea>