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

📄 register.jsp

📁 hr伯乐管理系统!非常适合java学员做学习参考用!是用集成框架开发的Struts+hrbernet+Spring 开发的
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
	import="java.util.*" errorPage=""%>
<jsp:directive.page import="org.better.hr.entity.*;" />
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%
Vector vector;
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link rel="stylesheet" href="table.css" type="text/css">
		<link rel="stylesheet" type="text/css" media="all"
			href="javascript/calendar/calendar-win2k-cold-1.css">
		<script type="text/javascript" src="javascript/calendar/cal.js"></script>
		<script type="text/javascript" src="javascript/comm/comm.js"></script>
		<script type="text/javascript" src="javascript/comm/select.js"></script>
		<script type="text/javascript">
		<%
		//将二级机构存入数组
		List list1 = (List)request.getAttribute("list_secondkind");
		Iterator it = list1.iterator();
		out.println("var subcat = new Array("+list1.size()+");");
		int i = 0;
		while(it.hasNext())
		{
			ConfigFileSecondKind item = (ConfigFileSecondKind)it.next();
			out.println("subcat["+i+"] = [\""+item.getFskId()+
			"\", \""+item.getSecondKindId()+"/"+item.getSecondKindName()+
			"\",\""+item.getFirstKindId()+"/"+item.getFirstKindName()+
			"\",\""+item.getFirstKindId()+"/"+item.getFirstKindName()+"/"+item.getSecondKindId()+"/"+item.getSecondKindName()+
			"\"];");
			++i;
		}
		
		//将三级机构存入数组
		list1 = (List)request.getAttribute("list_thirdkind");
		it = list1.iterator();
		out.println("var subcat1 = new Array("+list1.size()+");");
		i = 0;
		while(it.hasNext())
		{
			ConfigFileThirdKind item = (ConfigFileThirdKind)it.next();
			out.println("subcat1["+i+"] = [\""+item.getFtkId()+
			"\", \""+item.getThirdKindId()+"/"+item.getThirdKindName()+
			"\",\""+item.getFirstKindId()+"/"+item.getFirstKindName()+"/"+item.getSecondKindId()+"/"+item.getSecondKindName()+
			"\"];");
			++i;
		}
		
		//将职位名称存入数组
		list1 = (List)request.getAttribute("list_major");
		it = list1.iterator();
		out.println("var subcat2 = new Array("+list1.size()+");");
		i = 0;
		while(it.hasNext())
		{ 
			ConfigMajor item = (ConfigMajor)it.next();
			out.println("subcat2["+i+"] = [\""+item.getMakId()+
			"\", \""+item.getMajorId()+"/"+item.getMajorName()+
			"\", \""+item.getMajorKindId()+"/"+item.getMajorKindName()+
			"\"];");
			++i;
		}
 		%>
 		</script>
	</head>

	<body>
		<html:form method="post" action="humanfile.do">
			<table width="100%">
				<tr>
					<td>
						<font color="#0000CC">您正在做的业务是:人力资源--人力资源档案管理--人力资源档案登记 </font>
					</td>
				</tr>
				<tr>
					<td align="right">
						<input type="button" value="提交" class="BUTTON_STYLE1"
							onclick="javascript:toUpLoadPhoto2('register')">
						<input type="reset" value="清除" class="BUTTON_STYLE1">
					</td>
				</tr>
			</table>
			<table width="100%" border="1" cellpadding=0 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
				class="TABLE_STYLE1">
				<tr>
					<td class="TD_STYLE1" width="11%">
						I级机构
					</td>
					<td width="14%" class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.firstKindName"
							onchange="changelocation(document.forms[0].elements['item.secondKindName'],document.forms[0].elements['item.firstKindName'].options[document.forms[0].elements['item.firstKindName'].selectedIndex].value)">
							<html:option value="">&nbsp;</html:option>
							<logic:iterate id="list" name="list_firstkind"
								type="org.better.hr.entity.ConfigFileFirstKind">
								<html:option value="${list.firstKindId}/${list.firstKindName}">${list.firstKindId}/${list.firstKindName}</html:option>
							</logic:iterate>
						</html:select>
					</td>
					<td width="11%" class="TD_STYLE1">
						II级机构
					</td>
					<td width="14%" class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.secondKindName"
							onchange="changelocation1(document.forms[0].elements['item.thirdKindName'],document.forms[0].elements['item.secondKindName'].options[document.forms[0].elements['item.secondKindName'].selectedIndex].value)">
							<script language="javascript">
								changelocation(document.forms[0].elements["item.secondKindName"],document.forms[0].elements["item.firstKindName"].value)
    						</script>
						</html:select>
					</td>
					<td width="11%" class="TD_STYLE1">
						III级机构
					</td>
					<td class="TD_STYLE2" colspan="2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.thirdKindName">
							<script language="javascript">
							changelocation1(document.forms[0].elements["item.thirdKindName"],document.forms[0].elements["item.secondKindName"].value)
							</script>
						</html:select>
					</td>
					<td rowspan="5">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						职位分类
					</td>
					<td class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.humanMajorKindName"
							onchange="changelocation2(document.forms[0].elements['item.hunmaMajorName'],document.forms[0].elements['item.humanMajorKindName'].options[document.forms[0].elements['item.humanMajorKindName'].selectedIndex].value)">
							<html:option value="">&nbsp;</html:option>
							<logic:iterate id="list" name="list_majorkind"
								type="org.better.hr.entity.ConfigMajorKind">
								<html:option value="${list.majorKindId}/${list.majorKindName}">${list.majorKindId}/${list.majorKindName}</html:option>
							</logic:iterate>
						</html:select>
					</td>
					<td class="TD_STYLE1">
						职位名称
					</td>
					<td class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.hunmaMajorName">
							<script language="javascript">
							changelocation2(document.forms[0].elements["item.hunmaMajorName"],document.forms[0].elements["item.humanMajorKindName"].value)
							</script>
						</html:select>
					</td>
					<td class="TD_STYLE1">
						职称
					</td>
					<td colspan="2" class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.humanProDesignation">
							<%
								vector = (Vector) ((HashMap) request.getAttribute("map")).get("职称");
								pageContext.setAttribute("vector", vector);
							%>
							<logic:iterate id="v" name="vector">
								<html:option value="${v}">${v}</html:option>
							</logic:iterate>
						</html:select>
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						姓名
					</td>
					<td class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanName" />
					</td>
					<td class="TD_STYLE1">
						性别
					</td>
					<td class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1" property="item.humanSex">
							<html:option value="男">男</html:option>
							<html:option value="女">女</html:option>
						</html:select>
					</td>
					<td class="TD_STYLE1">
						EMAIL
					</td>
					<td colspan="2" class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanEmail" />
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						电话
					</td>
					<td class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanTelephone" />
					</td>
					<td class="TD_STYLE1">
						QQ
					</td>
					<td class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanQq" />
					</td>
					<td class="TD_STYLE1">
						手机
					</td>
					<td colspan="2" class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanMobilephone" />
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						住址
					</td>
					<td colspan="3" class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanAddress" />
					</td>
					<td class="TD_STYLE1">
						邮编
					</td>
					<td colspan="2" class="TD_STYLE2">
						<html:text styleClass="INPUT_STYLE2" property="item.humanPostcode" />
					</td>
				</tr>
				<tr>
					<td class="TD_STYLE1">
						国籍
					</td>
					<td class="TD_STYLE2">
						<html:select styleClass="SELECT_STYLE1"
							property="item.humanNationality">
							<%
								vector = (Vector) ((HashMap) request.getAttribute("map")).get("国籍");
								pageContext.setAttribute("vector", vector);
							%>
							<logic:iterate id="v" name="vector">
								<html:option value="${v}">${v}</html:option>
							</logic:iterate>
						</html:select>

⌨️ 快捷键说明

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