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

📄 shoppingupdate.jsp

📁 是一个企业的进销存系统。账号问1001密码为123456
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.jxc.vo.*" pageEncoding="UTF-8"%>
<head>
		<style type="text/css">
<!--
.style3 {
	font-size: 12px;
	font-weight: bold;
}
.style5 {color: #FF00FF}
-->
        </style></head>
<body bgcolor="#F1F4F8">
 <%
  	if (session.getAttribute("yid")==null) {
	%>

	<script language=javascript>
   
    window.location.href="../erro.jsp";
    </script>
  <%} %>

<table width="640" height="480">
  <tr>
   <td bgcolor="#FFCCFF" width="660" height="30">
		<jsp:include flush="true" page="Shopping_top.jsp"/>
	</td>
  </tr>
  <tr>
    <td width="660" height="25"><strong><span class="style3"><font color="#CC33CC">----&gt;商品信息修改&lt;----</font></span></strong></td>
  </tr>
  <tr>
    <td width="660" height="25"><center class="style3">
      <strong><font color="#CC33CC">
      <%
    if(session.getAttribute("erro")=="null"){
    %>
      带星号的必须填!!
      <% 
    session.removeAttribute("erro");
    }else if(session.getAttribute("erro")=="fal"){
    %>
      商品信息修改失败!!
      <%
    session.removeAttribute("erro");
    }else if(session.getAttribute("erro")=="succ"){
    %>
      商品信息修改成功!!
      <%
   session.removeAttribute("erro");
    }
     %>
     
      </font></strong>
    </center></td>
  </tr>
  <tr>
    <td width="660" height="360">
    <%
     if(session.getAttribute("shop")!=null){
     Shopping shop=new Shopping();
     shop=(Shopping)session.getAttribute("shop");
      %>
    <form name="listpage" method="post" action="ShoppingUpdate?id=<%=shop.getSid() %>">
      <table width="400" height="290" align="center" bgcolor="#cccccc">
        <tr>
          <td width="116" bgcolor="#F1F4F8"><div align="right" class="style3">商品编号:</div></td>
          <td width="251" bgcolor="#F1F4F8">  &nbsp; &nbsp; &nbsp; &nbsp;             <input name="sid" type="text" size="20" value=<%=shop.getSid() %>>
            <span class="style5">*</span></td>
        </tr>
        <tr>
          <td bgcolor="#F1F4F8"><div align="right" class="style3">商品名:</div></td>
          <td bgcolor="#F1F4F8">    &nbsp; &nbsp; &nbsp; &nbsp;            <input name="sname" type="text" size="20" value=<%=shop.getSname() %>>
            <span class="style5">*</span></td>
        </tr>
        <tr>
          <td bgcolor="#F1F4F8"><div align="right" class="style3">类别:</div></td>
          <td bgcolor="#F1F4F8"> &nbsp; &nbsp; &nbsp; &nbsp; 
  <select name="stype" >
    <option value="食品">--食品--</option>
    <option value="日用品">--日用品--</option>
    <option value="服装">--服装--</option>
            </select> </td>
        </tr>
        <tr>
          <td bgcolor="#F1F4F8"><div align="right" class="style3">供货商编号:</div></td>
          <td bgcolor="#F1F4F8">  &nbsp; &nbsp; &nbsp; &nbsp;  <input name="gid" type="text" size="20"  value=<%=shop.getGid() %>> 
            <span class="style5">*</span></td>
        </tr>
        <tr>
          <td bgcolor="#F1F4F8"><div align="right" class="style3">说明:</div></td>
          <td bgcolor="#F1F4F8">  &nbsp; &nbsp; &nbsp; &nbsp;              <input name="sinfo" type="text" size="20"  value=<%=shop.getSinfo() %>>         </td>
        </tr>
        <tr>
          <td bgcolor="#F1F4F8"><div align="right" class="style3">生产厂商:</div></td>
          <td bgcolor="#F1F4F8">  &nbsp; &nbsp; &nbsp; &nbsp;              <input name="ssccs" type="text" size="20"  value=<%=shop.getSsccs() %>>         </td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="#F1F4F8">
            <div align="center">
              <input type="submit" name="Submit" value="提交">
			   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
               <input type="reset" name="Submit2" value="重置">
            </div></td>
          </tr>
      </table>
      
    </form>
    <%session.removeAttribute("shop");
    } %>
    </td>
  </tr>
  <tr>
    <td width="660" height="40">&nbsp;</td>
  </tr>
</table>
</body>

⌨️ 快捷键说明

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