【JSP开源代码栏目提醒】:网学会员在JSP开源代码频道为大家收集整理了unitUpdate.jsp提供大家参考,希望对大家有所帮助!
<%@page contentType="text/html; charset=gb2312"%>
<%@page import="com.domain.UnitVO"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>修改计量单位信息</title>
<script language="JavaScript">
function insertUnit(){
if(document.form.name.value==""){
window.alert("请填写名称");
return false;
}
if(document.form.remark.value==""){
window.alert("请填写备注信息");
return false;
}
return true;
}
</script>
</head>
<body>
<%UnitVO unit=(UnitVO)request.getAttribute("unit");%>
<table width="80%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#004C86" class="tableBorder_r">
<tr align="left" valign="top">
<td height="20%" colspan="3">
<jsp:include page="../top.jsp"/>
</td>
</tr>
<tr>
<td width="192" height="80%" scope="row" background="picture/left.jpg">
<jsp:include page="../da.jsp"/> </td>
<td width="635" height="80%" scope="row">
<div align="center">
<p> </p>
<form name="form" method="post" action="unitservlet?method=4&number=<%=unit.getUnit_number()%>" onSubmit="return insertUnit()">
<table width="66%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#819BBC" bordercolorlight="#FFFFFF">
<tr align="center" bgcolor="#EFF6FE">
<td width="18%" height="28" colspan="2"><strong>修改计量单位信息</strong></td>
</tr>
<tr align="center">
<td width="18%" height="35" bgcolor="#EFF6FE">名称:</td>
<td width="82%"><input name="name" type="text" size="40" value="<%=unit.getUnit_name()%>"></td>
</tr>
<tr align="center">
<td height="223" bgcolor="#EFF6FE">备注:</td>
<td><textarea name="remark" cols="40" rows="13"><%=unit.getUnit_remark()%></textarea></td>
</tr>
</table>
<p> </p>
<p>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit3" value="重置">
<input type="button" name="Submit3" value="返回" onclick="javascript:history.back();">
</p>
</form>
</div><p> </p>
<p> </p> </td>
</tr>
</table>
</body>
</html>
上一篇:
unitSelect.jsp
下一篇:
数字水印技术的无线传感器网络安全机制研究思考