📄 addcomminput.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
********************************************************************************************************
* 系统名称:PMS
* 程序名称:AddCommInput.jsp
* 程序类型:jsp
* 功能简述:增加业主委员会成员的输入页面
* 作 者:任浩宽
* 公 司:ccvanda
* 完成时间:2001-08-27
* 修 改 人:毕锋
* 修改内容:页面
* 修改日期:2001/11/16/27
********************************************************************************************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<title></title>
<base target="main">
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script language="JavaScript" src="/pmsApp/common/admin.js"></script>
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<script language="JavaScript">
<!--
function verifynum(tempnumber){
var numlen=tempnumber.value.length;
var tempstring=tempnumber.value;
if (numlen>16){
return false;
}else{
for(i=0;i<numlen;i++){
if(!((tempstring.charAt(i)>=0)&(tempstring.charAt(i)<=9))){
return false;
}
};
if(tempstring>2147483647){
return false;
}
return true;
}
}
function verify()
{
Nvoid(form1);
var submitindex=true;
if(submitindex){
if(document.form1.subarea.value.length>1){
alert("所在小区名字长度超过了1个字符");
submitindex=false;
document.form1.subarea.focus();
}else{
if(document.form1.subarea.value.length==0){
alert("请填写所在小区的名字");
submitindex=false;
document.form1.subarea.focus();
};
};
};
if(submitindex){
if(document.form1.building.value.length>3){
alert("所在楼的名字长度超过了3个字符");
submitindex=false;
document.form1.building.focus();
}else{
if(document.form1.building.value.length==0){
alert("请填写所在楼的名字");
submitindex=false;
document.form1.building.focus();
};
};
};
if(submitindex){
if(document.form1.stair.value.length>1){
alert("所在梯口的名字超过了1个字符");
submitindex=false;
document.form1.stair.focus();
}else{
if(document.form1.stair.value.length==0){
alert("请填写所在梯口的名字");
submitindex=false;
document.form1.stair.focus();
};
};
}
if(submitindex){
if(document.form1.floor.value.length>2){
alert("所在楼层的名字超过了2个字符");
submitindex=false;
document.form1.floor.focus();
}else{
if(document.form1.floor.value.length==0){
alert("请填写所在楼层的名字");
submitindex=false;
document.form1.floor.focus();
};
};
}
if(submitindex){
if(document.form1.cell.value.length>2){
alert("所在单元的名字超过了2个字符");
submitindex=false;
document.form1.cell.focus();
}else{
if(document.form1.cell.value.length==0){
alert("请填写所在单元的名字");
submitindex=false;
document.form1.cell.focus();
};
};
}
if(submitindex){
if(document.form1.name.value.length>10){
alert("成员姓名超过了10个汉字");
submitindex=false;
document.form1.name.focus();
}else{
if(document.form1.name.value.length==0){
alert("请填写成员姓名");
submitindex=false;
document.form1.name.focus();
};
};
}
if(submitindex){
if(document.form1.age.value.length>2){
alert("年龄字段长度超过了2个字符");
submitindex=false;
document.form1.age.focus();
}
}
if(submitindex){
if(!(verifynum(document.form1.age))){
alert("年龄必须为数字");
submitindex=false;
document.form1.age.focus();
}
}
if(submitindex){
if(document.form1.touchway.value.length>30){
alert("联系方法超过了30个汉字");
submitindex=false;
document.form1.touchway.focus();
}else{
if(document.form1.touchway.value.length==0){
alert("请填写联系方法");
submitindex=false;
document.form1.touchway.focus();
};
};
}
if(submitindex){
if(document.form1.workplace.value.length>30){
alert("工作单位字段长度超过了30个汉字");
submitindex=false;
document.form1.workplace.focus();
}
}
if(submitindex){
if(document.form1.duty.value.length>15){
alert("业主委员会的职务长度超过了15个汉字");
submitindex=false;
document.form1.duty.focus();
}else{
if(document.form1.duty.value.length==0){
alert("请填写业主委员会职务");
submitindex=false;
document.form1.duty.focus();
};
};
}
if(submitindex){
if(document.form1.remark.value.length>100){
alert("备注长度超过了100个汉字");
submitindex=false;
document.form1.remark.focus();
}
}
if(submitindex){
handleForm(form1);
}
}
function trover(trid){
trid.className="trover";
}
function trout(trid){
trid.className="trout";
}
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();
}
//-->
</script>
</head>
<body leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" background="/pmsApp/images/bg2.gif" onLoad="document.form1.subarea.focus();MM_preloadImages('/pmsApp/images/button_save_over.gif','/pmsApp/images/button_modify_over.gif','/pmsApp/images/button_all_over.gif','/pmsApp/images/button_del_over.gif','/pmsApp/images/button_new_over.gif')" >
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" height="396">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td background="/pmsApp/images/toolbar2.gif" valign="top" height="28"><img src="/pmsApp/images/blank.gif" width="10" height="1"><img src="/pmsApp/images/button_new_gray.gif" width="55" height="20"><img name="Image10" border="0" src="/pmsApp/images/button_modify_gray.gif" width="55" height="20" ><img name="Image11" border="0" src="/pmsApp/images/button_del_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"><img name="Image13" border="0" src="/pmsApp/images/button_query_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"></td>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/pmsApp/images/tab_left.gif" width="3" height="25"></td>
<td width="100%" background="/pmsApp/images/tab_mid.gif" height="25">
<table width="200" 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=4205&inputString=""">业主委员</a></td>
<td width="100" background="/pmsApp/images/tab_up.gif">成员登记</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<FORM name="form1">
<table width="98%" border="1" align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">所 在 小 区</td>
<td width="74%" height="18">
<input type="text" name="subarea">
<font color=#FF3300>*</font></td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">所 在 楼</td>
<td width="74%" height="18">
<input type="text" name="building">
<font color=#FF3300>*</font> </td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">所 在 梯 口</td>
<td width="74%" height="18">
<input type="text" name="stair">
<font color=#FF3300>*</font> </td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">楼 层</td>
<td width="74%" height="18">
<input type="text" name="floor">
<font color=#FF3300>*</font> </td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">单 元</td>
<td width="74%" height="18">
<input type="text" name="cell">
<font color=#FF3300>*</font> </td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="17">成 员 姓 名</td>
<td width="74%" height="17">
<input type="text" name="name">
<font color=#FF3300>*</font></td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="17">年 龄</td>
<td width="74%" height="17">
<input type="text" name="age">
</td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="17">联 系 方 式</td>
<td width="74%" height="17">
<input type="text" name="touchway" size="70" value="">
<font color=#FF3300>*</font></td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="17">工 作 单 位</td>
<td width="74%" height="17">
<input type="text" name="workplace" size="70" value="">
</td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="17">在业主委员会的职务</td>
<td width="74%" height="17">
<input type="text" name="duty" value="">
<font color=#FF3300>*</font></td>
</tr>
<tr>
<td align="center" bgcolor="#d4d0c8" width="26%" height="18">备 注</td>
<td width="74%" height="18">
<textarea name="remark" cols="70" rows="5"></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 href="javascript:verify()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image91','','/pmsApp/images/button_save_over.gif',1)" onClick="javascript:"><img name="Image91" border="0" src="/pmsApp/images/button_save.gif" width="55" height="20"></a><a href="/pmsApp/servlet/common.PMS?txId=4205&inputString=""" onClick='javascript:' 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="4201">
<INPUT TYPE="hidden" NAME="inputString" ID="inputString" >
</FORM> </table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -