You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
5.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String sj = Common.convertNull(request.getParameter("sj"));
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
%>
<html>
<head>
<title>涉密人员管理</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../../js/date.js"></script>
<script src="../../../js/check.js"></script>
<script>
function textToUpperCase(){
if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){
event.srcElement.value = event.srcElement.value.toUpperCase();
}
}
function setValue() {
<%
if (!Common.isNull(sj)) {
out.println("form1.sj.value='" + sj + "';");
}
if (!Common.isNull(qj)) {
out.println("form1.qj.value='" + qj + "';");
}
%>
}
function check(operate) {
form1.operate.value = operate;
if(operate=="addEmp"){
if (form1.sf.value == "") {
alert("请选择省份!");
form1.sf.focus();
return false;
}
if (form1.sj.value == "") {
alert("请选择地市!");
form1.sj.focus();
return false;
}
if (form1.qj.value == "") {
alert("请选择区县!");
form1.qj.focus();
return false;
}
if (form1.empid.value == "") {
alert("请输入人员编号!");
form1.empid.focus();
return false;
}
if (form1.empname.value == "") {
alert("请输入人员姓名!");
form1.empname.focus();
return false;
}
if (form1.sex.value == "") {
alert("请选择性别!");
form1.sex.focus();
return false;
}
}
form1.button1.disabled=true;
form1.submit();
}
function selectChange(i)
{
form1.action = "/zhyw/smsb/sbdj/propertyEmpEdit.jsp";
form1.submit();
}
</script>
<style type="text/css">
.aselect{
width: 155px;
}
</style>
</head>
<body onload="setValue();">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
<tr>
<td valign="top"><table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" background="/images/tab_search_01.jpg"><table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="97%" class="font12b" align="right">人员信息登记</td>
</tr>
</table></td>
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
</tr>
</table>
<%
HashFmlBuf buf=(HashFmlBuf)request.getAttribute("Bufdept");
%>
<form name="form1" method="post" action="/servlet/PropertyUseManage">
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="departid" value="<%=buf.fget("departid",0)%>"/>
<table width="90%" style="height: 35" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
<td width="97%" class="font12">信息填写(<font color="red">必填</font></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">所属省份</td>
<td class="cell2">
<select class='aselect' name="sf" >
<option value="甘肃省">甘肃省</option>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">所属地市</td>
<td class="cell2">
<select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);">
<%=Para.getSj(getPara)%>
</select><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">所属区县</td>
<td class="cell2">
<select class='aselect' name="qj" setValue="<%=qj%>" onChange="selectChange(1);">
<%=Para.getQj(getPara, sj)%>
</select><font color="#ff0000">*</font>
</td>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">人员编码</td>
<td class="cell2">
<input type="text" name="empid" maxlength="8" onChange="textToUpperCase()" >
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">人员姓名</td>
<td class="cell2">
<input type="text" name="empname" onblur="checkLength(this,40);" maxlength="8" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')">
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">人员性别</td>
<td class="cell2">
<input type="radio" id="YesNo1" name="sex" value="1" onclick="checkradio(true)" checked="checked"/>男
<input type="radio" id="YesNo1" name="sex" value="0" onclick="checkradio(false)" />女
</tr>
</table>
<br>
<table width="90%" align="center">
<tr align="center">
<td><input type="button" name="button1" value=" 下一步 " class="box_button" onclick="check('addEmp');"/>&nbsp;&nbsp;
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>