📄 employee_add.jsp
字号:
<%@ page language="java" pageEncoding="GB2312" %>
<%@ page import="cn.project.bit.business.*,java.util.*,cn.project.bit.Object.*" errorPage="error.jsp"%>
<html>
<head>
<title>添加项目经理</title>
</head>
<SCRIPT language=javascript>
function CheckForm()
{
if(document.Employee_Add_Form.employee_name.value=="")
{
alert("请输入用户名称!");
document.Employee_Add_Form.employee_name.focus();
return false;
}
if(document.Employee_Add_Form.department.value == "")
{
alert("请输入部门名称!");
document.Employee_Add_Form.department.focus();
return false;
}
if(document.Employee_Add_Form.employee_password.value == "")
{
alert("请输入密码!");
document.Employee_Add_Form.employee_password.focus();
return false;
}
document.Employee_Add_Form.submit();
}
</SCRIPT>
<body bgcolor="#CAD7F7" topmargin="100">
<div align="center">
<form name="Employee_Add_Form" method="post" action="/Project/Employee_Add">
<table width="500" border="0" cellspacing="1" cellpadding="1" class="tableBorder">
<tr>
<td colspan="2" align="center" class="whitenormal">添加员工</td>
</tr>
<tr>
<td width="97" align="center" bgcolor="F1F3F5" class="normalText">姓名:</td>
<td width="396" bgcolor="F1F3F5"><input name="employee_name" type="text" class="textBox"></td>
</tr>
<tr align="center">
<td bgcolor="F1F3F5" class="normalText">所属部门:</td>
<td align="left" bgcolor="F1F3F5"><input name="department" type="text" class="textBox"></td>
</tr>
<tr align="center">
<td bgcolor="F1F3F5" class="normalText">用户密码:</td>
<td align="left" bgcolor="F1F3F5"><input name="employee_password" type="password" class="textBox"></td>
</tr>
<tr align="center">
<td colspan="2" bgcolor="F1F3F5"><input type="button" name="Submit" value="提交" onClick="CheckForm()"> </td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -