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

📄 engageresume_regist.jsp

📁 人力资源管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
  <head>
    <base href="http://localhost:8080/accp_hr/"/>
    <title>humanfile_regist.jsp</title>
	<script type="text/javascript" src="accp_hr/interface/Majors.js"></script>
	<script type="text/javascript" src="accp_hr/interface/Standards.js"></script>
	<script type="text/javascript" src="accp_hr/interface/MojarkModel.js"></script>
	<script type="text/javascript" src="accp_hr/interface/MojarModel.js"></script>
	<script type="text/javascript" src="accp_hr/engine.js"></script>
	<script type="text/javascript" src="accp_hr/util.js"></script>
	
	<link href="css/validator.css" rel="stylesheet" type="text/css" ></link>
	<script type="text/javascript" src="js/mootools.js" ></script>
	<script type="text/javascript" src="js/full-validator.js" ></script>
	<script language="javascript" src="js/date.js" ></script>
	<script type="text/javascript" src="js/DateTime2.js"></script>
	<script type="text/javascript">
		Validator.setup({
				form : 'demo1',
				configs : 'tag',
				warns : 'alert',
				triggers : 'submit, blur'
		});

		<!--页面加载调用函数-->
		window.onload=function(){
		
			minzufind();
			
			guojifind();
			zzmmfind();
			zjxyfind();
			xuelifind();
			zhuanyefind();
			techangfind();
			jynxfind();
			aihaofind();
			xcbzfind();
			zwflfind();
			startclock();

		}
		
		//下拉框 ---未选择项
		function newoption(){
			nop=new Option();
			//nop.value=-1;
			nop.text="---未选择---";
			return nop;
		}
		
		
		
		
		
		//国籍
		function guojifind()
		{
			Majors.findByKind('国籍',showGuoji);
		}
		function showGuoji(gjitem){
			DWRUtil.addOptions('guoji',gjitem,'attributeName','attributeName');
		}
		//民族
		function minzufind(){
			Majors.findByKind('民族',showMinzu);
		}
		function showMinzu(mzitem){
			DWRUtil.addOptions('minzhu',mzitem,'attributeName','attributeName');
		}
		//政治面貌
		function zzmmfind(){
			Majors.findByKind('政治面貌',showZzmm);
		}
		function showZzmm(zzmmitem){
			DWRUtil.addOptions('zzmm',zzmmitem,'attributeName','attributeName');
		}
		//宗教信仰
		function zjxyfind(){
			Majors.findByKind('宗教信仰',showZjxy);
		}
		function showZjxy(zjxyitem){
			DWRUtil.addOptions('zjxy',zjxyitem,'attributeName','attributeName');
		}
		//学历
		function xuelifind(){
			Majors.findByKind('学历',showXueli);
		}
		function showXueli(xlitem){
			DWRUtil.addOptions('xueli',xlitem,'attributeName','attributeName');
		}
		//专业
		function zhuanyefind(){
			Majors.findByKind('专业',showZhuanye);
		}
		function showZhuanye(zyitem){
			DWRUtil.addOptions('zhuanye',zyitem,'attributeName','attributeName');
		}
		//特长
		function techangfind(){
			Majors.findByKind('特长',showTechang);
		}
		function showTechang(tcitem){
			DWRUtil.addOptions('techang',tcitem,'attributeName','attributeName');
		}
		//教育年限
		function jynxfind(){
			Majors.findByKind('教育年限',showJynx);
		}
		function showJynx(jyitem){
			DWRUtil.addOptions('jynx',jyitem,'attributeName','attributeName');		
		}
		//爱好
		function aihaofind(){
			Majors.findByKind('爱好',showAihao);
		}
		function showAihao(ahitem){
			DWRUtil.addOptions('aihao',ahitem,'attributeName','attributeName');
		}
		//薪酬标准
		function xcbzfind(){
			Standards.findAll(showXcbz);
		}
		function showXcbz(xcitem){
			DWRUtil.addOptions('xcbz',xcitem,'standardId','standardName');
		}
		
		//职位分类
		function zwflfind(){
			MojarkModel.findAll(showZwfl);
		}
		function showZwfl(zwitem){
			DWRUtil.addOptions('zwfl',zwitem,'majorKindId','majorKindName');
			zhiweifind(zwitem[0].majorKindId);
		}
		//职位
		function zhiweifind(mid){
			MojarModel.findAll(mid,showZhiwei);
		}
		function showZhiwei(zwitem){
			$('zhiwei').options.length=0;
			DWRUtil.addOptions('zhiwei',zwitem,'makId','majorName');
		}
	</script>
	<style type="text/css">
		th{
			background-color: #CCCCFF;
		}
		.texts{
			width: 130px;
		}
		.texts2{
			width: 200px;
		}
		select{
			width: 130px;
		}
		td{
			background-color: #DADEDD;
		}
	</style>

  </head>
<BODY  bgcolor="#DADEDD" style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
	
   <html:form action="engageResume" styleId="demo1" enctype="multipart/form-data">
   <input type="hidden" name="oper" value="doAdd">
   <input type="hidden" name="engageResume.humanMajorKindName" id="hmkn" value="" >
   <input type="hidden" name="engageResume.humanMajorName" id="hmn" value="" >
  
		<table border="1" cellspacing="0" align="center" width="95%" bordercolor="black" style="font-size: 12px">
		<TR>
			<Th>职位分类</Th>
			<TD>
				<html:select property="engageResume.humanMajorKindId" styleId="zwfl" onchange="zhiweifind(this.value);" >
   					
   				</html:select>
			</TD>
			<Th>职位名称</Th>
			<TD>
				<html:select property="engageResume.humanMajorId" styleId="zhiwei" >
   					
   				</html:select>
			</TD>
			<Th>招聘类型</Th>
			<TD colspan="2">
				<html:select property="engageResume.engageType"  styleClass="texts2" >
					<html:option value="社会招聘">社会招聘</html:option>
					<html:option value="校园招聘">校园招聘</html:option>
				</html:select>
			</TD>
			<TD rowspan="6"><div style="width: 100%;height: 100%;" ><img src="" width="130" height="140" id="showp" /></div></TD>
		</TR>
		<TR>
			<Th>姓名</Th>
			<TD>
				<html:text property="engageResume.humanName" styleId="humanname" styleClass="texts" ></html:text>
				<ui:v for="humanname" rule="LimitB" empty="姓名必须填" min="4" warn="姓名不能低于两个汉字或四个字母" />
			</TD>
			<Th>性别</Th>
			<TD>
				<html:select property="engageResume.humanSex">
					<html:option value="男">男</html:option>
					<html:option value="女">女</html:option>
				</html:select>
			</TD>
			<Th>EMAIL</Th>
			<TD colspan="2">
				<html:text property="engageResume.humanEmail" styleId="humanemail" styleClass="texts2" ></html:text>
				<ui:v for="humanemail" rule="email" warn="请输入正确的E-mail" require=false />
			</TD>
		</TR>
		<TR>
			<Th>电话</Th>
			<TD>
				<html:text property="engageResume.humanTelephone" styleId="humanname" styleClass="texts" ></html:text>
				
			</TD>
			<Th>家庭电话</Th>
			<TD>
				<html:text property="engageResume.humanHomephone" styleClass="texts" ></html:text>
			</TD>
			<Th>手机</Th>
			<TD colspan="2">
				<html:text property="engageResume.humanMobilephone" styleClass="texts2" ></html:text>
			</TD>
		</TR>
		<TR>
			<Th>住址</Th>
			<TD colspan="3"><html:text property="engageResume.humanAddress" style="width:300px" ></html:text></TD>
			<Th>邮编</Th>
			<TD colspan="2"><html:text property="engageResume.humanPostcode" styleClass="texts2" ></html:text></TD>
		</TR>
		<TR>
			<Th>国籍</Th>
			<TD>
				<html:select property="engageResume.humanNationality" styleId="guoji" >
   					
   				</html:select>
			</TD>
			<Th>出生地</Th>
			<td><html:text property="engageResume.humanBirthplace" styleClass="texts"  ></html:text></td>
			<Th>头像</Th>
			<TD colspan="2">
				<input type="file" id="mypic" id="mypic" name="headPic" class="texts2" onfocus="showpic();" >
				<ui:v for="mypic" rule="filter" empty="必须上传头像" as="file" accept="jpg, gif, png" warn="请选择正确的图片格式(jpg,gif,png)" />
			</TD>
		</TR>
		<TR>
			<Th>民族</Th>
			<TD>
				<html:select property="engageResume.humanRace" styleId="minzhu" >
   					
   				</html:select>
			
			</TD>
			<Th>宗教信仰</Th>
			<TD>
				<html:select property="engageResume.humanReligion" styleId="zjxy" >
   					
   				</html:select>
			</TD>
			<Th>身份证号</Th>
			<TD colspan="2">
				<html:text property="engageResume.humanIdcard" styleId="idCards" styleClass="texts2" ></html:text>
				 <ui:v for="idCards" rule="LimitB" max="18" min="15"  empty="身份证必须填" warn="请输入正确的身份证" />
			</TD>
			
		</TR>
		<TR>
			<Th>政治面貌</Th>
			<TD>
				<html:select property="engageResume.humanParty" styleId="zzmm" >
   					
   				</html:select>
			</TD>
			
			<Th>年龄</Th>
			<TD>
				<html:text property="engageResume.humanAge" styleId="humanage" styleClass="texts" ></html:text>
				<ui:v for="humanage" rule="range" empty="年龄必须填" max="100" min="18" warn="请输入正确的年龄(18-100)" />
			</TD>
			<Th>毕业院校</Th>
			<TD>
				<html:text property="engageResume.humanCollege" styleClass="texts" />
				 	
			</TD>
			<th>生日</th>
			<TD>
				<html:text property="engageResume.humanBirthday" onclick="setday(this);" value="1986-12-01" styleClass="texts" ></html:text>
			</TD>
		</TR>
		<TR>
			<Th>教育年限</Th>
			<TD>
				<html:select property="engageResume.humanEducatedYears" styleId="jynx">
   					
   				</html:select>
			</TD>
			<Th>学历专业</Th>
			<TD>
				<html:select property="engageResume.humanEducatedMajor" styleId="zhuanye">
				   					
   				</html:select>
			</TD>
			<Th>薪酬要求</Th>
			<TD>
				<html:text property="engageResume.demandSalaryStandard" styleId="xcyq" styleClass="texts" ></html:text>
				<ui:v for="xcyq" rule="range" max="10000" warn="请输入正确的薪酬要求" require=false  />
			</TD>
			<Th>注册时间</Th>
			<TD>
				<input type="text" name="times" id="currentTime" readonly="readonly" class="texts">
			</TD>
		</TR>
		<TR>
			<Th>特长</Th>
			<TD>
				<html:select property="engageResume.humanSpecility" styleId="techang">
   					
   				</html:select>
			
			</TD>
			<Th>爱好</Th>
			<TD>
				<html:select property="engageResume.humanHobby" styleId="aihao">
   					
   				</html:select>
			</TD>
			<Th>学历</Th>
			<TD>
				<html:select property="engageResume.humanEducatedDegree" styleId="xueli" >
   					
   				</html:select>
			
			</TD>
			<Th>登记人</Th>
			<TD>
				<html:text property="engageResume.register" styleClass="texts" value="${loginuser.uname}" readonly="true" />
			</TD>
		</TR>
		<TR>
			<Th>个人履历</Th>
			<TD colspan="7">
				<html:textarea property="engageResume.humanHistoryRecords" style="width:700px"></html:textarea>
			</TD>
		</TR>
		<TR>
			<Th>备注</Th>
			<TD colspan="7"><html:textarea property="engageResume.remark" style="width:700px;"></html:textarea>
			</TD>
		</TR>
			
		</TABLE>
		<br>
		<center><html:submit value="提交" onclick="setSubName();" /> <html:reset value="重置" /> </center>
	</html:form>

</BODY>
</HTML>
<script type="text/javascript">
<!--
	function showpic(){
		if($("mypic")!=null){
			var pic=document.getElementById("mypic").value;
			document.getElementById("showp").src=pic;
		}
	}
	
	<!--给隐藏域的一级、二级机构赋值-->
	function setSubName(){
		
		//职位分类
		var temp3=$("zwfl").options;
		for(var i=0;i<temp3.length;i++){
			if(temp3[i].selected)
				$("hmkn").value=temp3[i].innerText;
		}
		//职位名称
		var temp4=$("zhiwei").options;
		for(var i=0;i<temp4.length;i++){
			if(temp4[i].selected)
				$("hmn").value=temp4[i].innerText;
		}
		
	
	}
	
			
//-->
</script>

⌨️ 快捷键说明

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