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

📄 warehouseupdate.jsp

📁 基于j2ee的物流软件
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'warehouseupdate.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="admin/css/warehouse.css">
	<script type="text/javascript">
		function validate(){
			var wareHouseId = document.getElementById("wareHouseId").value;
			var wareHouseName = document.getElementById("wareHouseName").value;
			var wareHouseAdd = document.getElementById("wareHouseAdd").value;
			if(wareHouseId == ""){
				label1.innerHTML="<font color='red'>仓库编号不能为空!</font>";
				label2.innerHTML="";
				label3.innerHTML="";
				return false;
			}
			if(wareHouseName == ""){
				label1.innerHTML="";
				label2.innerHTML="<font color='red'>仓库名称不能为空!</font>";
				label3.innerHTML="";
				return false;
			}
			if(wareHouseAdd == ""){
				label1.innerHTML="";
				label2.innerHTML="";
				label3.innerHTML="<font color='red'>仓库地址不能为空!</font>";
				return false;
			}
			return true;
		}
	</script>
  </head>
  
  <body>
  <form action="warehouse.do?action=update&id=${requestScope.warehouse.wareHouseInfoTableId}" method="post">
    <table border="1" width="1024" cellspacing="1" cellpadding="3" align="center" bordercolor="#326598">
	  <tr > 
        <td colspan="3" background="admin/images/admin_bg_1.gif"  > 
	      <div align="center"><font color="#FFFFFF"><b>修改仓库</b></font></div>
	    </td>
      </tr>
	  <tr align="center">
		<td width="150">&nbsp;</td>
		<td width="400">带*为必填内容!</td>
		<td width="400">备注</td>
	  </tr>
	  <tr>
		<td>仓库编号:</td>
		<td><input type="text" name="wareHouseId" value="${requestScope.warehouse.wareHouseId}"/>* <label id="label1"></label></td>
		<td>&nbsp;</td>
	  </tr>
	  <tr>
		<td>仓库名称:</td>
		<td><input type="text" name="wareHouseName" value="${requestScope.warehouse.wareHouseName}"/>* <label id="label2"></label></td>
		<td>&nbsp;</td>
	  </tr>
	  <tr>
		<td>负责人:</td>
		<td>
		  <select name="chargeId">
	        <option>${requestScope.warehouse.chargeName}
	        <c:forEach var="list" items="${list}">
              <option value="${list.employeeId}">${list.employeeName}
            </c:forEach>
          </select>
        </td>
		<td>&nbsp;</td>
	  </tr>
	  <tr>
		<td>仓库地址:</td>
		<td><input type="text" name="wareHouseAdd" size="40" value="${requestScope.warehouse.wareHouseAdd}"/>* <label id="label3"></label></td>
		<td>&nbsp;</td>
	  </tr>
	  <tr>
	    <td align="center" colspan="3"><input type="submit" value=" 提交 " onclick="{if(validate()){return true;}return false;}"/> <input type="reset" value=" 重置 "/></td>
	  </tr>
	</table>
  </form>
  </body>
</html>

⌨️ 快捷键说明

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