📄 updatewarehouse.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>仓库位置信息修改窗口</title>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css"
rel="stylesheet" type="text/css">
<script type="text/javascript">
function aa()
{
var x= document.myform.wareHouseId.value;
var x= document.myform.wareHouseId.value;
var name = document.myform.wareHouseName.value;
var c= document.myform.chargeId.value;
var s= document.myform.wareHouseAdd.value;
if(x==""){
alert("仓库编号不能为空!");
return false;
}
if(isNaN(x))
{
alert("仓库编号必须为数字或字母!");
return false;
}
if(name==""){
alert("仓库名称不能为空!");
return false;
}
if(c==""){
alert("仓库负责人不能为空!");
return false;
}
if(s==""){
alert("仓库位置不能为空!");
return false;
}
}
</script>
</head>
<body>
<h2 align="center">
仓库信息修改
</h2>
<table width="539" height="193" border="1" align="center"
cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td height="164" colspan="2">
<form action="updateWareHouse.do" method="post" name="myform" onsubmit="return aa();">
<input type="hidden" name="id" value="${requestScope.info.id}">
<table width="401" border="1" align="center" cellpadding="1"
cellspacing="0" bordercolor="#666699">
<tr>
<td width="80" height="25" align="right">
仓库编号:
</td>
<td width="294" colspan="2">
<input name="wareHouseId" type="text" class="style9"
size="20" maxlength="20" value="${requestScope.info.wareHouseId}">
</td>
</tr>
<tr>
<td width="80" height="25" align="right">
仓库名称:
</td>
<td width="294" colspan="2">
<input name="wareHouseName" type="text" class="style9"
size="20" maxlength="20" value="${requestScope.info.wareHouseName}">
</td>
</tr>
<tr>
<td height="25" align="right">
仓库负责人:
</td>
<td colspan="2">
<input name="chargeId" type="text" class="style9"
size="20" maxlength="20" value="${requestScope.info.chargeId}">
</td>
</tr>
<tr>
<td height="27" align="right">
仓库位置:
</td>
<td colspan="2">
<input name="wareHouseAdd" type="text" class="style9"
size="40" maxlength="100" value="${requestScope.info.wareHouseAddress}">
</td>
</tr>
<tr align="center">
<td height="30" colspan="3">
<input type="submit"
value="提交数据">
<input name="Submit2" type="reset"
value="重置数据">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -