📄 dept_add.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>增加新部门</title>
<LINK href="../as_files/style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
background-color: #C4DEF6;
}
.style2 {font-size: 12px}
-->
</style>
</head>
<script language="javascript">
function ch(){
var deptname=document.form1.deptname.value;
var depttel=document.form1.depttel.value;
if(deptname == ""){
alert("部门名称不能为空!");
document.form1.deptname.focus();
return false;
}else if(depttel == ""){
alert("部门电话不能为空!");
document.form1.depttel.focus();
return false;
}else{
//form1.submit();
return true;
}
}
</script>
<body>
<br>
<h3 align="center">增加新部门</h3>
<hr />
<form id="form1" name="form1" method="post" action="/pmsys/deptmanage.do?method=deptadd">
<table width="364" height="109" border="0" align="center" cellspacing="0">
<tr>
<td width="132" align="right"><span class="STYLE3">部门名称:</span></td>
<td width="228"><span class="STYLE3">
<input name="deptname" type="text" size="20" maxlength="20" />
</span></td>
</tr>
<tr>
<td align="right"><span class="STYLE3">部门电话:</span></td>
<td><span class="STYLE3">
<input name="depttel" type="text" size="20" maxlength="20" />
</span></td>
</tr>
<tr align="center">
<td colspan="2"><span class="STYLE3">
<input type="submit" name="Submit" value="提交" onclick="return ch()"/>
<input type="reset" name="Submit2" value="重置" />
</span></td>
</tr>
</table>
</form>
<logic:present name="dept_add_ok" scope="request">
<center>
<span class="STYLE3"><bean:write name="dept_add_ok" /></span>
</center>
</logic:present>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -