📄 useredit.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!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>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户信息</title>
<link href="<%=basePath %>skin/default/default.css" rel="stylesheet" type="text/css" />
</head>
<body class="mainbody">
<html:form action="/manage/usermanage" onsubmit="return funcOnSubmit()">
<html:hidden property="id"/>
<html:hidden property="task" value="modify"/>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td class="tdgriud">
首页 >>
系统管理 >>
员工管理
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
<COLGROUP>
<COL WIDTH="15%" align="left">
<COL WIDTH="35%" align="left">
<COL WIDTH="15%" align="left">
<COL WIDTH="35%" align="left">
<COLGROUP>
<tr>
<td colspan="4" class="tdtitle">员工修改</td>
</tr>
<tr>
<td class="tdlbg">员工姓名:</td>
<td class="tdrbg">
<html:text property="employee_name"/></td>
<td class="tdlbg">身份证号码:</td>
<td class="tdrbg">
<html:text property="id_card"/></td>
</tr>
<tr>
<td class="tdlbg">密码:</td>
<td class="tdrbg">
<html:password property="password"/>
</td>
<td class="tdlbg">确认密码:</td>
<td class="tdrbg">
<html:password property="password2"/>
</td>
</tr>
<tr>
<td class="tdlbg">登录帐号:</td>
<td class="tdrbg">
<html:text property="employee_id"/>
</td>
<td class="tdlbg">籍贯:</td>
<td class="tdrbg">
<html:text property="origin"/>
</td>
</tr>
<tr>
<td class="tdlbg">性别:</td>
<td class="tdrbg">
<html:select property="sex">
<html:option value="0">女</html:option>
<html:option value="1">男</html:option>
</html:select>
</td>
<td class="tdlbg">地址:</td>
<td class="tdrbg">
<html:text property="address"/>
</td>
</tr>
<tr>
<td class="tdlbg">来电电话:</td>
<td class="tdrbg"><html:text property="telephone"></html:text></td>
<td class="tdlbg">毕业院校:</td>
<td class="tdrbg"><html:text property="school"></html:text></td>
</tr>
<tr>
<td class="tdlbg">手机号码:</td>
<td class="tdrbg"><html:text property="mobile"></html:text></td>
<td class="tdlbg">专业:</td>
<td class="tdrbg"><html:text property="professional"></html:text></td>
</tr>
<tr>
<td class="tdlbg">婚姻状况:</td>
<td class="tdrbg">
<html:select property="is_marry">
<html:option value="0">未婚</html:option>
<html:option value="1">已婚</html:option>
</html:select>
</td>
<td class="tdlbg">学位:</td>
<td class="tdrbg"><html:text property="degree"/></td>
</tr>
<tr>
<td class="tdlbg">职位:</td>
<td class="tdrbg">
<html:select property="post">
<html:options collection="postlist" labelProperty="fieldname" property="fieldcode"></html:options>
</html:select>
</td>
<td class="tdlbg">出生日期:</td>
<td class="tdrbg"><html:text property="birthday"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.all.item('birthday'));return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
</tr>
<tr>
<td class="tdlbg">入职日期:</td>
<td class="tdrbg"><html:text property="entry_date"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.all.item('entry_date'));return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg">转正日期:</td>
<td class="tdrbg"><html:text property="conversion"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.all.item('conversion'));return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
</tr>
<tr>
<td class="tdlbg">离职日期:</td>
<td class="tdrbg"><html:text property="separation_date"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.all.item('separation_date'));return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg">备注:</td>
<td class="tdrbg"><html:text property="remark"></html:text></td>
</tr>
<tr>
<td class="tdrbg" colspan="4" align="center">
<input type="submit" name="Submit" class="btn_save" value="保 存" />
<input type="button" name="Submit2" class="btn_back" value="返 回" onclick="location.href='<%=basePath %>manage/usermanage.do?task=list'"/>
</td>
</tr>
</table>
</html:form>
<script type="text/javascript">
<!--
function funcOnSubmit(){
if(document.getElementById('employee_id').value==''){
alert('登录帐号不能为空');
return false;
}
if(document.getElementById('password').value==''){
alert('密码不能为空');
return false;
}
if(document.getElementById('password').value!=document.getElementById('password2').value){
alert('两次密码不一致');
return false;
}
if('${usermanageForm.post}'=='SUPPORT'||'${usermanageForm.post}'=='COMPLAINT'){
if('SUPPORT'!=document.getElementsByName('post').value||'COMPLAINT'!=document.getElementsByName('post').value){
return window.confirm('职位发生改变');
}
}
}
//-->
</script>
<iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<%=path%>/include/calendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -