forked from MRbie/Hr_SSH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
addEmp.jsp
92 lines (76 loc) · 2.28 KB
/
addEmp.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加员工信息的页面</title>
<!-- 使用bootstrap优化页面 -->
<script type="text/javascript" src="resource/js/jquery.js"></script>
<script type="text/javascript" src="resource/js/bootstrap.min.js"></script>
<link href="resource/css/bootstrap.min.css" rel="stylesheet" />
<style type="text/css">
tr th,td{text-align:center;}
</style>
</head>
<body>
<center>
<h1>企业人事管理系统</h1>
<h2>员工添加</h2>
<s:if test="#session.adminInfo != null">
<%-- <h2 align="right">欢迎您管理员:${adminInfo.adminName }</h2> --%>
<h2 align="right">欢迎您管理员:
<s:property value="#session.adminInfo.adminName"/>
<s:a href="#">退出</s:a>
</h2>
</s:if>
<s:else>
<s:a href="login.jsp">登陆</s:a>
<s:a href="register.jsp">注册</s:a>
</s:else>
<s:form action="/emp_save.action" theme="simple" method="post">
<table class="table table-striped table-bordered table-hover table-condensed">
<tr>
<td>员工姓名</td>
<td>
<s:textfield name="empName" id="empName"></s:textfield>
</td>
</tr>
<tr>
<td>员工薪资</td>
<td>
<s:textfield name="salary" id="salary"></s:textfield>
</td>
</tr>
<tr>
<td>部门选择</td>
<td>
<%--
<select style="width:150px;height:26px;">
<option value="-1">请选择</option>
<option value="1">开发部</option>
<option value="2">经理部</option>
<option value="3">销售部</option>
</select>
--%>
<!-- struts2标签进行迭代输出
-->
<s:select name="deptId" headerKey="-1" headerValue="请选择"
list="#request.listDept" listKey="deptId" listValue="deptName">
</s:select>
</td>
</tr>
<tr>
<td colspan="2">
<s:submit value="添加员工"></s:submit>
<a href="javascript:window.history.go(-1)" class="btn btn-default">返回上一级</a>
<s:reset value="重置信息"></s:reset>
</td>
</tr>
</table>
</s:form>
</center>
</body>
</html>