📄 add.jsp
字号:
<%@ page language="java" import="java.util.*,com.buat.hr.employee.*" pageEncoding="GB18030"%>
<%
EmployeeDAO dao = new EmployeeDAO();
ArrayList departmentNameList = dao.queryDepartment();
%>
<html>
<head>
<title>Add</title>
<script type="text/Javascript" src="..\\meizzDate.js"> </script>
</head>
<body background="../bg.jpg">
<form action="ProcessAddEmployee.jsp">
<table width="90%" border="1" align="center">
<tr>
<td colspan="2"><font color="red"> 添加员工信息</font></td>
</tr>
<tr>
<th>用户名称:</th>
<td><input type="text" name="name"></td>
</tr>
<tr>
<th>专 业:</th>
<td><input type="text" name="major"></td>
</tr>
<tr>
<th>用户性别:</th>
<td><input type="radio" name="gender" value="male" checked>男
<input type="radio" name="gender" value="female">女</td>
</tr>
<tr>
<th>出生日期: </th>
<td><input type="text" name="birthday" onClick="setday(this)" readonly></td>
</tr>
<tr>
<tr>
<th>所在部门:</th>
<td><select name="departmentId">
<% for(int i=0; i<departmentNameList.size(); i++){ %>
<option value="<%= i+1 %>"><%= departmentNameList.get(i) %>
<% } %>
</select></td>
</tr>
<tr>
<th colspan="2" align="center"><input type="submit" value="提交">
<input type="reset" value="重置"></th>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -