📄 adddeptinput.jsp
字号:
<!-- 系统名称:光大花园物业管理系统 -->
<!-- 程序名称:AddDeptInput.jsp -->
<!-- 程序类型:jsp文件 -->
<!-- 功能简述:增加部门资料输入页面 -->
<!-- 作 者:韩立锋 -->
<!-- 公 司:长春中联 -->
<!-- 完成时间:2001/08/27 -->
<!-- 修 改 人:毕锋 -->
<!-- 修改内容:页面 -->
<!-- 修改时间:2001/11/19/29 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<title>增加部门资料</title>
<base target="main">
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script lanuage="JavaScript">
<!--
function MM_swapImgRestore() {// v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() {// v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) {// v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() {// v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
function handleForm(inputForm) {
var str="";
var del2="☆";
var del ="※";
for (i=0; i<inputForm.elements.length; i++)
{
if ((inputForm.elements[i].name.toUpperCase() != "RESET") &&
(inputForm.elements[i].name.toUpperCase() != "SUBMIT"))
{
if ((inputForm.elements[i].type == "radio") ||
(inputForm.elements[i].type == "checkbox"))
{
if (inputForm.elements[i].checked)
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
else if (inputForm.elements[i].type == "select-one")
{
str = str+inputForm.elements[i].name
+del2+inputForm.elements[i].options[inputForm.elements[i].selectedIndex].value+del;
}
else
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
}
str=str.substr(0,str.length-del.length);
inputStr=str;
document.hiddenForm.inputString.value=str;
document.hiddenForm.submit();
}
//检查输入的必须为数字
function ChkDigit(num)
{
for(i_loop=0;i_loop<num.length;i_loop++)
{
if (!((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=1)))
{
return false ;
}
}
}
function CheckForm(inputForm)
{
if (inputForm.deptname.value==""){
alert("请输入部门名称");
inputForm.deptname.focus();
return false;
}
if (inputForm.deptname.value.length>10){
alert("部门名称不能超过10个汉字");
inputForm.deptname.focus();
return false;
}
if (inputForm.deptcode.value==""){
alert("请输入部门代号");
inputForm.deptcode.focus();
return false;
}
if (inputForm.deptman.value.length>10){
alert("部门负责人不能超过10个汉字");
inputForm.deptman.focus();
return false;
}
if (inputForm.deptduty.value.length>300){
alert("部门职责不能超过300个汉字");
inputForm.deptduty.focus();
return false;
}
if (inputForm.content.value.length>150){
alert("其他资料不能超过150个汉字");
inputForm.content.focus();
return false;
}
handleForm(form1);
}
</script>
</head>
<body bgColor="#FFFFFF" leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" background="/pmsApp/images/bg2.gif" onLoad="this.focus();MM_preloadImages('/pmsApp/images/button_new_over.gif','/pmsApp/images/button_save_over.gif','/pmsApp/images/button_modify_over.gif','/pmsApp/images/button_del_over.gif','/pmsApp/images/button_query_over.gif','/pmsApp/images/button_cancel_over.gif')" >
<form name="form1">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td height="28" background="/pmsApp/images/toolbar2.gif" valign="top"><img src="/pmsApp/images/blank.gif" width="10" height="1"><img src="/pmsApp/images/button_new_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_modify_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_del_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"><img src="/pmsApp/images/button_query_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" background="/pmsApp/images/tab_mid.gif" height="25">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="100" background="/pmsApp/images/tab_down_left.gif" height="25"><a href="/pmsApp/servlet/common.PMS?txId=3053&inputString=number%A1%EE1">公司介绍</a></td>
<td width="100" background="/pmsApp/images/tab_up.gif" height="25">添加部门</td>
<td width="100" background="/pmsApp/images/tab_down_right.gif" height="25"><a href="/pmsApp/servlet/common.PMS?txId=3121&&inputString=">证照台账</a></td>
<td width="100" height="25"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table border="1" width="98%" height="160" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#808080" bordercolordark="#FFFFFF">
<tr>
<td width="316" height="27" align="center">部门名称</td>
<td width="175" height="27">
<input type="text" name="deptname" size="20" maxlength="10">
<font color="#FF3300">*</font>
</td>
<td width="132" height="27" align="center">部门代号</td>
<td width="212" height="27">
<input type="text" name="deptcode" size="20" maxlength="10">
<font color="#FF3300">*</font>
</td>
</tr>
<tr>
<td width="316" height="27" align="center">所属公司</td>
<td width="175" height="27">
<div align="center">光大物业
<input type="hidden" name="compname" size="25" value="光大物业">
</div>
</td>
<td width="132" height="27" align="center">部门负责人</td>
<td width="212" height="27">
<input type="text" name="deptman" size="20" maxlength="10">
</td>
</tr>
<tr>
<td width="316" height="50" align="center">部门职责</td>
<td colspan="3" height="50">
<textarea rows="8" name="deptduty" cols="80"></textarea>
</td>
</tr>
<tr>
<td width="316" height="50" align="center">其他资料</td>
<td colspan="3" height="50">
<textarea rows="8" name="content" cols="80"></textarea>
</td>
</tr>
</table>
<br>
<table width="200" border="1" align="center" bgcolor="#d4d0c8" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="2">
<tr>
<td align="center"><a style="cursor:hand" onclick="CheckForm(form1)" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image91','','/pmsApp/images/button_save_over.gif',1)" ><img name="Image91" border="0" src="/pmsApp/images/button_save.gif" width="55" height="20"></a><a href="javascript:history.back()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','/pmsApp/images/button_cancel_over.gif',1)"><img name="Image2" border="0" src="/pmsApp/images/button_cancel.gif" width="55" height="20"></a></td>
</tr>
</table> </form>
<form name="hiddenForm" method="post" action="/pmsApp/servlet/common.PMS">
<input type="hidden" name="txId" id="txId" value="3004">
<input type="hidden" name="inputString" id="inputString" >
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -