Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/luoluo/zhky/src/commit/6a76dabdf8908e1a58f664b43095be09ad4b9e8b/web/zhyw/smsb/sbdj/propertyEmpEdit.jsp You should set ROOT_URL correctly, otherwise the web may not work correctly.
zhky/web/zhyw/smsb/sbdj/propertyEmpEdit.jsp

172 lines
5.6 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 language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<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>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<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;
}
var typemenu=document.getElementById("sj");
var val=typemenu.value;
if(val==0930){
}else{
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" id="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" align="left">
<input type="text" name="empid" maxlength="8" onChange="textToUpperCase()" ><font color="#ff0000">*</font><br>
<font color=red>(编号自己规定,6-8位字母或者数字组合)</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px;">
<td class="cell1">录入人员姓名</td>
<td class="cell2" align="left">
<input type="text" name="empname" onblur="checkLength(this,40);" maxlength="8" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"><font color="#ff0000">*</font>
</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>
<tr bgcolor="#FFFFFF" height="35px;" align="center">
<td class="cell2" colspan="2"><input type="button" name="button1" value=" 下一步 " class="box_button" onclick="check('addEmp');"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>