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

📄 modifyfitapplyinput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
📖 第 1 页 / 共 4 页
字号:
<!--********************************************************************************************************
* 系统名称:光大花园物业管理系统
* 程序名称:ModifyFitApplyInput.jsp
* 程序类型:jsp
* 功能简述:修改装修申请记录的输入页面
* 作    者:董善飞
* 公    司:长春中联
* 完成时间:2001/09/07
* 修 改 人:毕锋
* 修改内容:页面
* 修改日期:2001/11/16/27
********************************************************************************************************//-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="/pmsApp/css/wuye.css">
<title>服务住户-装修申请</title>
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script language="JavaScript" src="/pmsApp/common/admin.js"></script>
<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.building.value=="000")&(document.form1.stair.value=="0")&(document.form1.floor.value=="00")&(document.form1.cell.value=="00")){
		if(document.form1.subarea.value.length>30){
			alert("商铺地址长度超过30个汉字");
			submitindex=false;
			document.form1.subarea.focus();
		}else{
			if(document.form1.subarea.value.length==0){
				alert("请填写商铺地址");
				submitindex=false;
				document.form1.subarea.focus();
			}
		};
		}else{
		if(document.form1.subarea.value.length>2){
			alert("小区长度超过2位");
			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.touchway.value.length>60){
			alert(" 联系方式的长度超过了60个字符");
			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.select1.value==0000){
			alert("请指定申请的年份");
			submitindex=false;
			document.form1.select1.focus();
		}
	}
	if(submitindex)
	{
		if(document.form1.select2.value==00){
			alert("请指定申请的月份");
			submitindex=false;
			document.form1.select2.focus();
		}
	}
	if(submitindex)
	{
		if(document.form1.select3.value==00){
			alert("请指定申请的日期");
			submitindex=false;
			document.form1.select3.focus();
		}
	}
	if(submitindex){
		if(document.form1.apply.value.length>100){
			alert(" 申请装修内容的长度超过了100个汉字");
			submitindex=false;
			document.form1.apply.focus();
		}else{
			if(document.form1.apply.value.length==0){
				alert("请填写申请装修内容");
				submitindex=false;
				document.form1.apply.focus();
			}
		};
	};
	if(submitindex){
		if(document.form1.team.value.length>30){
			alert("装修队名称的长度超过了30个汉字");
			submitindex=false;
			document.form1.team.focus();
		}
	};
	if(submitindex){
		if(document.form1.teamno.value.length>30){
			alert("装修队执照号码的长度超过了30位");
			submitindex=false;
			document.form1.teamno.focus();
		}
	};
	if(submitindex){
		if(document.form1.teamgrantno.value.length>30){
			alert("装修队许可证号码的长度超过了30位");
			submitindex=false;
			document.form1.teamgrantno.focus();
		}
	};
	if(submitindex){
		if(document.form1.teamlevel.value.length>15){
			alert("装修队资质等级的长度超过了15个汉字");
			submitindex=false;
			document.form1.teamlevel.focus();
		}
	};
	if(submitindex){
		if(document.form1.owneridno.value.length>20){
			alert("企业法人身份证号码的长度超过了20位");
			submitindex=false;
			document.form1.owneridno.focus();
		}
	};
	if(submitindex){
		if(document.form1.ownertel.value.length>30){
			alert("企业法人联系电话的长度超过了30位");
			submitindex=false;
			document.form1.ownertel.focus();
		}
	};
	if(submitindex){
		if(document.form1.headidno.value.length>20){
			alert("施工负责人身份证号码的长度超过了20位");
			submitindex=false;
			document.form1.headidno.focus();
		}
	};
	if(submitindex){
		if(document.form1.headtel.value.length>30){
			alert("施工负责人联系电话的长度超过了30位");
			submitindex=false;
			document.form1.headtel.focus();
		}
	};
	if(submitindex){
		if(!(verifynum(document.form1.noses))){
			alert("施工人数必须填写0-2147483647之间的数字");
			submitindex=false;
			document.form1.noses.focus();
		}
	};
	if(submitindex){
		if(document.form1.transactor.value.length>10){
			alert("施工经办人名字的长度超过了10个汉字");
			submitindex=false;
			document.form1.transactor.focus();
		}
	};
	if(submitindex){
		if(document.form1.remark.value.length>100){
			alert("备注的长度超过了100个汉字");
			submitindex=false;
			document.form1.remark.focus();
		}
	};
	if(submitindex){
		handleForm(form1);
	};
}
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 handleForm1(magicindex,number,pageindex,retrieveindex,retrievecon,retrievecom,selectnum,pagecount)
{
	var del2="☆";
	var del ="※";
	document.hiddenForm1.inputString.value="magicindex"+del2+magicindex+del+"number"+del2+number+del+"pageindex"+del2+pageindex+del+"retrieveindex"+del2+retrieveindex+del+"retrievecon"+del2+retrievecon+del+"retrievecom"+del2+retrievecom+del+selectnum+del2+selectnum+del+"pagecount"+del2+pagecount;
	document.hiddenForm1.submit();
}
//-->
</script>
<%String pageindex=(String)request.getAttribute("pageindex");%>
<%String retrieveindex=(String)request.getAttribute("retrieveindex");%>
<%String retrievecon=(String)request.getAttribute("retrievecon");%>
<%String retrievecom=(String)request.getAttribute("retrievecom");%>
<%String pagecount=(String)request.getAttribute("pagecount");%>
<%String selectnum=(String)request.getAttribute("selectnum");%>
<%String number=(String)request.getAttribute("number");%>
<%String subarea=(String)request.getAttribute("subarea");%>
<%String building=(String)request.getAttribute("building");%>
<%String stair=(String)request.getAttribute("stair");%>
<%String floor=(String)request.getAttribute("floor");%>
<%String cell=(String)request.getAttribute("cell");%>
<%String name=(String)request.getAttribute("name");%>
<%String touchway=(String)request.getAttribute("touchway");%>
<%String applydate=(String)request.getAttribute("applydate");%>
<%String apply=(String)request.getAttribute("apply");%>
<%String team=(String)request.getAttribute("team");%>
<%String teamno=(String)request.getAttribute("teamno");%>
<%String teamgrantno=(String)request.getAttribute("teamgrantno");%>
<%String teamlevel=(String)request.getAttribute("teamlevel");%>
<%String owneridno=(String)request.getAttribute("owneridno");%>
<%String ownertel=(String)request.getAttribute("ownertel");%>
<%String headidno=(String)request.getAttribute("headidno");%>
<%String headtel=(String)request.getAttribute("headtel");%>
<%String startdate=(String)request.getAttribute("startdate");%>
<%String enddate=(String)request.getAttribute("enddate");%>
<%String noses=(String)request.getAttribute("noses");%>
<%String transactor=(String)request.getAttribute("transactor");%>
<%String approve=(String)request.getAttribute("approve");%>
<%String approveman=(String)request.getAttribute("approveman");%>
<%String approvedate=(String)request.getAttribute("approvedate");%>
<%String deposit=(String)request.getAttribute("deposit");%>
<%String inoutpaper=(String)request.getAttribute("inoutpaper");%>

⌨️ 快捷键说明

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