<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/commons/taglibs.jsp"%>
<html>
<head>
<base href="${basePath}" />
<%@ include file="/WEB-INF/pages/commons/meta.jsp"%>
<link rel="stylesheet" type="text/css" href="scripts/jqueryEasyUI/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="scripts/jqueryEasyUI/themes/icon.css">
<script type="text/javascript" src="scripts/jqueryEasyUI/src/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="scripts/jqueryEasyUI/src/jquery.easyui.min1.js"></script>
<script type="text/javascript" src="scripts/jqueryEasyUI/src/jquery.easyui.min.js"></script>
<script type="text/javascript" src="scripts/jqueryEasyUI/src/jquery.datagrid.js"></script>
<script type="text/javascript" src="scripts/jqueryEasyUI/src/jgxLoader.js"></script>
<title>修改员工信息</title>
<style >
body{ font-family:Arial, Helvetica, sans-serif;}
a{text-decoration: none;}
</style>
<style type="text/css">
<!--
a:link {
color: #3764a0;
text-decoration: none;
font-weight: bold;
}
a:visited {
text-decoration: none;
color: #3764a0;
font-weight: bold;
}
a:hover {
text-decoration: none;
color: #999;
}
a:active {
text-decoration: none;
}
-->
</style>
<script type="text/javascript">
$(function(){
$("#sex").val("${user.sex}");
$("#role").val("${user.role}");
$("#departMents").val("${user.departMents}");
});
</script>
<script>
function sub(){
if($("#loginName").val()==""){
alert("登录名不能为空,请正确填写!" );
return;
}if($("#userName").val()==""){
alert("真实姓名不能为空,请正确填写!");
return;
}if($("#password").val()==""){
alert("密码不能为空,请正确填写!");
return;
}if($("#role").val()==""){
alert("请选择用户权限!");
return;
}if($("#departMents").val()==""){
alert("请选择用户部门!");
return;
}
$("#ff").submit();
alert("执行保存成功!");
}
</script>
</head>
<body style=" padding:0; margin:0">
<div>
<form id = "ff" action = "system/updatePerson" method = "post">
<input type="hidden" name = "userId" id = "userId" value = "${user.userId}"><br>
登录名:<input type="text" name = "loginName" id = "loginName" value = "${user.loginName}"><br>
真实姓名:<input type="text" name = "userName" id = "userName" value = "${user.userName}"><br>
性别:<select id="sex" class="easyui-combobox" name="sex" style="width:100px;">
<option value="1" >男</option>
<option value="0" >女</option>
</select><br>
生日:<input type="text" name = "userBirthday" id = "userBirthday" class="easyui-datebox" value = "${user.userBirthday}"><br>
联系电话:<input type="text" name = "userPhone" id = "userPhone" value = "${user.userPhone}"></input><br>
邮箱:<input type="text" name = "userEmail" id= "userEmail" value = "${user.userEmail}"><br>
权限:<select id="role" class="easyui-combobox" name="role" style="width:100px;">
<option value="" >请选择</option>
<c:forEach var="r" items="${role}" varStatus="i">
<option value="${r.roleID}" >${r.roleName }</option>
</c:forEach>
</select><br>
部门:<select id="departMents" class="easyui-combobox" name="departMents" style="width:100px;">
<option value="" >请选择</option>
<c:forEach var="dep" items="${dep}" varStatus="i">
<option value="${dep.depId}" >${dep.depName }</option>
</c:forEach>
</select><br>
<br><br>
<input type="button" value="提交" name="tj" onclick = "sub()">
<input type="button" name = "btn" value="返回" onclick = "javascript:window.history.go(-1) " >
</form>
</div>
</body>
</html>