⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xiugai.jsp

📁 1.员工添加 2.人事调动 3.在职人员管理 4.部门(分厂)管理
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" import="java.util.*"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


<!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=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {font-size: 36px}
-->
</style>
</head>
<script language="javascript">
function showcalendar(obj)
{
  dv=window.showModalDialog("manage/calendar.htm","44","center:1;help:no;status:no;dialogHeight:246px;dialogWidth:216px;scroll:no")
  if (dv) {if (dv=="null") obj.value='';else obj.value=dv;}
}
function check(){
    var name=document.form1.name.value;
	var sex=document.form1.sex.value;
	var date=document.form1.date.value;
	var jianli=document.form1.jianli.value;
	var shenfen=document.form1.shenfen.value;
	var shehui=document.form1.shehui.value;
	var tuizi=document.form1.tuizi.value;
	var tuishi=document.form1.tuishi.value;
	
	var patrn5=/^[0-9]{1,20}$/;
	var patrn4=/^[0-9]{8}$/;
	var patrn2=/^[0-9]{15}$/;
	var patrn3=/^[0-9]{17}([0-9]|[x]){1}$/;
		
	
	
	if (name == "") {
		alert("姓名不能为空!");
		return false;
	}else if (date == "") {
		alert("出生日期不能为空!");
		return false;
	}else if (jianli == "") {
		alert("请上传一份简历");
		return false;
	}else if (shenfen == "") {
		alert("身份证号码不能为空");
		return false;
	}else if (shehui == "") {
		alert("社会保障号码不能为空");
		return false;
	}else if (tuizi == "") {
		alert("退休工资不能为空");
		return false;
	}else if (tuishi == "") {
		alert("退休时间不能为空");
		return false;
	}else if ((!patrn2.test(document.form1.shenfen.value))&&(!patrn3.test(document.form1.shenfen.value))){
		alert("身份证号码格式错误,请输入15位或18位身份证号码");
		return false;
	}else if (!patrn4.test(document.form1.shehui.value)){
		alert("社会保障号码格式错误,请输入8位数字社会保障号码");
		return false;
	}else if (!patrn5.test(document.form1.tuizi.value)){
		alert("退休工资格式错误,请输入数字");
		return false;
	}else {
		
		return true;
	}
}


</script>
<body>
<form name="form1" method="post" action="/pmsys/yuangong.do?method=xiuGaih" enctype="multipart/form-data">
  <p align="center">&nbsp;</p>
  <p align="center" class="style1">修改员工信息</p>
  <table width="798" height="372" border="1" align="center" cellspacing="0" bordercolor="#000000">
  <logic:present name="jlist" scope="request">
	          <logic:iterate id="ad00" name="jlist">
    <tr bordercolor="#000000">
      <td width="115"><div align="center">姓名:</div></td>
      <td width="255"><div align="center">
	  
	                <input type="text" name="name" value='<bean:write name="ad00" property="aa"/>'>        
      </div></td>
      <td width="137"><div align="center">性别:</div></td>
      <td width="262"><div align="center">
        
	                 <input type="radio" name="sex" value="男" checked>
        <input type="radio" name="sex" value="女"> 
     </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td height="41"><div align="center">出生日期:</div></td>
      <td><div align="center">
        <input type="text" class="input" style="CURSOR: hand" onclick="showcalendar(this,this)" readOnly="true" size="20" name="date"  value='<bean:write name="ad00" property="cc"/>'/>
	                <!--<input type="text" name="date" value='<bean:write name="ad00" property="cc"/>'>  -->
	           
      <td colspan="2"><div align="left"> (格式为 :yyyy-mm-dd)
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td height="41"><div align="center">民族:</div></td>
      <td><div align="center">
        <select name="nation">
			
	               <option value='<bean:write name="ad00" property="kk"/>'><bean:write name="ad00" property="kk"/></option>
	     <logic:present name="jlist0" scope="request">
	          <logic:iterate id="uf" name="jlist0">
	                <option value='<bean:write name="uf" property="deptno"/>'><bean:write name="uf" property="deptno"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
      <td><div align="center">学历:</div></td>
      <td><div align="center">
        <select name="xueli">
        	
	              <option value='<bean:write name="ad00" property="jj"/>'><bean:write name="ad00" property="jj"/></option>
	     <logic:present name="jlist1" scope="request">
	          <logic:iterate id="uf" name="jlist1">
	                <option value='<bean:write name="uf" property="dname"/>'><bean:write name="uf" property="dname"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td><div align="center">部门:</div></td>
      <td><div align="center">
        <select name="dept">
        	
	                <option value='<bean:write name="ad00" property="nn"/>'><bean:write name="ad00" property="nn"/></option>
	     <logic:present name="jlist3" scope="request">
	          <logic:iterate id="uf" name="jlist3">
	                <option value='<bean:write name="uf" property="date"/>'><bean:write name="uf" property="date"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
      <td><div align="center">职务:</div></td>
      <td><div align="center">
        <select name="zhiwu">
        	
	               <option value='<bean:write name="ad00" property="ll"/>'><bean:write name="ad00" property="ll"/></option>
	     <logic:present name="jlist5" scope="request">
	          <logic:iterate id="ad" name="jlist5">
	                <option value='<bean:write name="ad" property="pp"/>'><bean:write name="ad" property="pp"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td><div align="center">职称:</div></td>
      <td><div align="center">
        <select name="zhicheng">
        	
	               <option value='<bean:write name="ad00" property="mm"/>'><bean:write name="ad00" property="mm"/></option>
	     <logic:present name="jlist4" scope="request">
	          <logic:iterate id="ad" name="jlist4">
	                <option value='<bean:write name="ad" property="oo"/>'><bean:write name="ad" property="oo"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
      <td><div align="center">状态:</div></td>
      <td><div align="center">
        <select name="state">
        	
	               <option value='<bean:write name="ad00" property="ii"/>'><bean:write name="ad00" property="ii"/></option>
	     <logic:present name="jlist2" scope="request">
	          <logic:iterate id="uf" name="jlist2">
	                <option value='<bean:write name="uf" property="loc"/>'><bean:write name="uf" property="loc"/></option>
	          </logic:iterate>
 		 </logic:present>
        </select>
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td><div align="center">简历:</div></td>
      <td><div align="center"><bean:write name="ad00" property="dd"/></div></td>
      <td><div align="center"></div></td>
      <td><div align="center"></div></td>
    </tr>
    <tr bordercolor="#000000">
      <td colspan="4">        <div align="left">
      			
                 <input name="jianli" type="file" size="45">
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td><div align="center">身份证号码:</div></td>
      <td><div align="center">
         <input type="text" name="shenfen" value='<bean:write name="ad00" property="ee"/>'>    
      </div></td>
      <td><div align="center">社会保障号码:</div></td>
      <td><div align="center">
         <input type="text" name="shehui" value='<bean:write name="ad00" property="ff"/>'>    
      </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td><div align="center">退休工资:</div></td>
      <td>
        <div align="center">
           <input type="text" name="tuizi" value='<bean:write name="ad00" property="gg"/>'>    
        </div></td>
	  <td><div align="center">退休时间:</div></td>
      <td>
        <div align="center">
         <input type="text" class="input" style="CURSOR: hand" onclick="showcalendar(this,this)" readOnly="true" size="20" name="tuishi" value='<bean:write name="ad00" property="hh"/>' />
         <!-- <input type="text" name="tuishi" value='<bean:write name="ad00" property="hh"/>'>  -->  
        </div></td>
    </tr>
    <tr bordercolor="#000000">
      <td colspan="4">
        <div align="center">
          <input type="submit" name="Submit" value="提交" onClick="return check()">
          <input type="reset" name="Submit2" value="重置">
        </div></td>
    </tr>
	</logic:iterate>  </logic:present>
</table>
  <p align="center">&nbsp;  </p>
  <p>&nbsp;</p>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -