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

📄 editproinfo.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 index=request.getParameter("index").replace(',', '#');
	String proType=request.getParameter("proType");
	String proNum=(String)request.getParameter("proNum");
	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="685" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  <form name="theform" method="post" action="productedUpdate.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">
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品编号:&nbsp;&nbsp;&nbsp;      </td>
  
      <td height="30"> &nbsp;&nbsp; &nbsp;&nbsp;<input name="productID" type="text"  readonly="true" size="40" value="<%=index%>"></td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;产品名称:&nbsp;&nbsp;&nbsp;</td>
      <td height="30">&nbsp;&nbsp; &nbsp;
        <input name="productName" type="text" size="40" height="16" value="<%=productinfoBean.getProductName()%>"></td>
    </tr>
    <tr align="left">
      <td height="30" >&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;性质类别:&nbsp;&nbsp;&nbsp;</td>
      <td height="30">  &nbsp; &nbsp;&nbsp;
        <select name="characterID">
		<option value="-1">------</option>
        <%
                   characterclassBeans.getQuery("-1");
				   for(int i=0; i<characterclassBeans.getItems(); i++)
				   {
					 if(characterclassBeans.getCharacterID(i) == productinfoBean.getCharacterID())
					 {
					 %>
                        <option value=<%=characterclassBeans.getCharacterID(i)%> selected="true"><%=characterclassBeans.getCharacterName(i)%></option>
                     <%
					 }
					 else
					 {
					 %>
					 <option value=<%=characterclassBeans.getCharacterID(i)%>><%=characterclassBeans.getCharacterName(i)%></option>
					 
		<%
		}
  }
  %>
      </select></td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;用途类别:</td>
      <td height="30">  &nbsp; &nbsp;&nbsp;
        <select name="useclassID">
		<option value="-1">------</option>
        <%
                   useclassBeans.getQuery("-1");
				   for(int i=0; i<useclassBeans.getItems(); i++)
				   {
				      if(useclassBeans.getUseclassID(i) == productinfoBean.getUseclassID())
					  {
				     %> 
                       <option value=<%=useclassBeans.getUseclassID(i)%> selected="true"><%=useclassBeans.getUseclassName(i)%></option>
					   <%
					   }
					   else
					   {
					   %>
					   <option value=<%=useclassBeans.getUseclassID(i)%>><%=useclassBeans.getUseclassName(i)%></option>
        
		<%
		}
  }
  %>
      </select></td>
    </tr>
    <tr align="left" valign="middle"> 
      <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; 市场价:
        
&nbsp;&nbsp;&nbsp;&nbsp; 
      </td>
      <td height="30">&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="text" name="marketPrice" height="16" value="<%=productinfoBean.getMarketPrice()%>"></td>
    </tr>
    <tr align="left">
      <td height="30">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;  优惠价:
        
&nbsp;&nbsp;&nbsp;&nbsp;      </td>
      <td height="30">&nbsp;&nbsp; &nbsp; 
        <input type="text" name="preferPrice" height="16" value="<%=productinfoBean.getPreferPrice()%>"></td>
    </tr>
    <tr align="center"> 
      <td width="21%" height="202" valign="middle">&nbsp;产品说明:</td>
      <td width="79%" align="left">
	   <input type="hidden" name="content" value="<%=productinfoBean.getIntroduce()%>">
       <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">&nbsp;产品库存:</td>
      <td height="30"> &nbsp;&nbsp;&nbsp;&nbsp; 
        <input type="text" size="20" name="storage" height="16" value="<%=productinfoBean.getStorage()%>"></td>
    </tr>
    <tr align="center">
      <td height="26">&nbsp;&nbsp; 产品大图片:</td>
      <td height="26" align="left">&nbsp;&nbsp; &nbsp;
      <input type="file" name="maxPicture" height="16">
      <font color="#FF0000">(如不更改图片请不要选择)</font></td>
    </tr>
    <tr align="center"> 
      <td height="44">&nbsp;&nbsp; 产品小图片:<br></td>
      <td height="30" align="left">&nbsp;&nbsp;&nbsp;
      <input type="file" name="minPicture" height="16">
      <font color="#FF0000">(如不更改图片请不要选择)</font></td>
    </tr>
	<tr align="center"> 
      <td height="44">&nbsp;&nbsp; 是否设为精品推荐:<br></td>
      <td height="30" align="left">
	  <%
	    if(productinfoBean.getTuijian() == 1)
		{
	%>
	 <input type="checkbox" name="tuijian" checked="true">
	 <%
	 }
	 else
	 {
	 %>
	 <input type="checkbox" name="tuijian">
	 <%
	 }
	 %>
      </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">&nbsp;</td>
            <td width="75%" align="left">&nbsp; <input type="submit" value="提交"> 
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="重置"> 
            </td>
          </tr>
      </table></td>
    </tr>
  </form>
</table>
<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

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