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

📄 modifyroomexaminput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
📖 第 1 页 / 共 3 页
字号:
	if(submitindex){
		if(!(verifynum(document.form1.waternumber))){
			alert("水表底数必须为数字");
			submitindex=false;
			document.form1.waternumber.focus();
		}
	}
	if(submitindex){
		if(!(verifynum(document.form1.powernumber))){
			alert("电表底数必须为数字");
			submitindex=false;
			document.form1.powernumber.focus();
		}
	}
	if(submitindex){
		if(document.form1.useridea.value.length>100){
			alert("住户意见超过了100个汉字");
			submitindex=false;
			document.form1.useridea.focus();
		}
	}
	if(submitindex){
		if(document.form1.adminidea.value.length>100){
			alert("管理意见超过了100个汉字");
			submitindex=false;
			document.form1.adminidea.focus();
		}
	}
	if(submitindex){
		if(document.form1.admin.value.length>10){
			alert("管理员超过了10个汉字");
			submitindex=false;
			document.form1.admin.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();
}

function handleForm1(pageindex,retrieveindex,retrievecon,retrievecom)
{
	var del2="☆";
	var del ="※";
	document.hiddenForm1.inputString.value="pageindex"+del2+pageindex+del+"retrieveindex"+del2+retrieveindex+del+"retrievecon"+del2+retrievecon+del+"retrievecom"+del2+retrievecom;
	document.hiddenForm1.submit();
}

function handleForm2(magicindex,number,pageindex,retrieveindex,retrievecon,retrievecom,selectnum,pagecount)
{
	var del2="☆";
	var del ="※";
	document.hiddenForm2.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.hiddenForm2.submit();
}
function handleForm3(pageindex,retrieveindex,retrievecon,retrievecom,selectnum,pagecount,number)
{
	var del2="☆";
	var del ="※";
	document.hiddenForm3.inputString.value="pageindex"+del2+pageindex+del+"retrieveindex"+del2+retrieveindex+del+"retrievecon"+del2+retrievecon+del+"retrievecom"+del2+retrievecom+del+"selectnum"+del2+selectnum+del+"pagecount"+del2+pagecount+del+"number"+del2+number;
	if(confirm("您确实想删除本条记录吗?")==true){
		document.hiddenForm3.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 checkman=(String)request.getAttribute("checkman");%>
<%String checkdate=(String)request.getAttribute("checkdate");%>
<%String checkitem=(String)request.getAttribute("checkitem");%>
<%String ceiling=(String)request.getAttribute("ceiling");%>
<%String wall=(String)request.getAttribute("wall");%>
<%String lfloor=(String)request.getAttribute("lfloor");%>
<%String door=(String)request.getAttribute("door");%>
<%String doorlock=(String)request.getAttribute("doorlock");%>
<%String windows=(String)request.getAttribute("windows");%>
<%String antenna=(String)request.getAttribute("antenna");%>
<%String light=(String)request.getAttribute("light");%>
<%String lswitch=(String)request.getAttribute("lswitch");%>
<%String jack=(String)request.getAttribute("jack");%>
<%String casement=(String)request.getAttribute("casement");%>
<%String cloaca=(String)request.getAttribute("cloaca");%>
<%String downcomer=(String)request.getAttribute("downcomer");%>
<%String pipe=(String)request.getAttribute("pipe");%>
<%String dishpan=(String)request.getAttribute("dishpan");%>
<%String valve=(String)request.getAttribute("valve");%>
<%String tap=(String)request.getAttribute("tap");%>
<%String stool=(String)request.getAttribute("stool");%>
<%String gaspipe=(String)request.getAttribute("gaspipe");%>
<%String gasmeter=(String)request.getAttribute("gasmeter");%>
<%String watermeter=(String)request.getAttribute("watermeter");%>
<%String ammeter=(String)request.getAttribute("ammeter");%>
<%String powerbox=(String)request.getAttribute("powerbox");%>
<%String airswitch=(String)request.getAttribute("airswitch");%>
<%String interphone=(String)request.getAttribute("interphone");%>
<%String doorbell=(String)request.getAttribute("doorbell");%>
<%String gasnumber=(String)request.getAttribute("gasnumber");%>
<%String waternumber=(String)request.getAttribute("waternumber");%>
<%String powernumber=(String)request.getAttribute("powernumber");%>
<%String useridea=(String)request.getAttribute("useridea");%>
<%String adminidea=(String)request.getAttribute("adminidea");%>
<%String admin=(String)request.getAttribute("admin");%>
<%String year1="";%>
<%String month1="";%>
<%String day1="";%>
<% if(checkdate.length()==10){
	year1=checkdate.substring(0,4);
	month1=checkdate.substring(5,7);
	day1=checkdate.substring(8,10);
}%>


</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" alt="修改选定的数据"><a href="javascript:handleForm3('<%=pageindex%>','<%=retrieveindex%>','<%=retrievecon%>','<%=retrievecom%>','<%=selectnum%>','<%=pagecount%>','<%=number%>')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','/pmsApp/images/button_del_over.gif',1)" ><img name="Image11" border="0" src="/pmsApp/images/button_del.gif" width="55" height="20" alt="删除数据"></a><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" alt="条件检索"><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="400" border="0" cellspacing="0" cellpadding="0">
              <tr align="center"> 
                <td width="100" background="/pmsApp/images/tab_up.gif" height="25">入住验房记录</td>
                <td width="100" background="/pmsApp/images/tab_down_right.gif"><a href="/pmsApp/utility/room/AddRoomExamInput.jsp">入住验房登记</a></td>
                <td width="100" background="/pmsApp/images/tab_down.gif" height="25"><a href="/pmsApp/servlet/common.PMS?txId=4705&inputString=""">钥匙领用记录</a></td>
                <td width="100" background="/pmsApp/images/tab_down.gif"><a href="/pmsApp/utility/room/AddKeyDrawInput.jsp">钥匙领用登记</a></td>
          
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <p><br>
      
    <% if(number.equals("0")){%>  
   
            
      </p><p>&nbsp;</p><table width="80%" border="1"  align="center" bgcolor="#d4d0c8" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="2">
        <tr>
                
          <td align="center" width="100%" height="40" bgcolor="#FFFFFF"> 
            <p><font font-size:12px">请选择一条记录</font></p>
          </td>
              </tr>             
              <tr>
                <td align="center"><a href="/pmsApp/servlet/common.PMS?txId=4710&inputString=""" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','/pmsApp/images/button_back_over.gif',1)"><img name="Image2" border="0" src="/pmsApp/images/button_back.gif" width="55" height="20"></a></td>
              </tr>
            </table>
         
    
    
    
    
      <%}else {%>
	  
 <table width="350"  border="1"  align="center" bgcolor="#FFFFFF" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0" height="22">
          <tr>
            
          <td align="center" bgcolor="#eeffee">修改入住验房记录</td>
          </tr>
        </table> 
       <FORM  id="form1" name="form1">
        <table width="98%" border="1"  align="center" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
          <input type="hidden" name="pageindex" value="<%=pageindex%>">
          <input type="hidden" name="retrieveindex" value="<%=retrieveindex%>">
          <input type="hidden" name="retrievecon" value="<%=retrievecon%>">
          <input type="hidden" name="retrievecom" value="<%=retrievecom%>">
          
 <input type="hidden" name="selectnum" value="<%=selectnum%>">
 <input type="hidden" name="pagecount" value="<%=pagecount%>">
          <input type="hidden" name="number" value="<%=number%>">
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="18">小&nbsp;&nbsp;&nbsp;&nbsp;区</td>
            <td width="74%" height="18"> 
              <input type="text" name="subarea"  maxlength="30" value="<%=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"  maxlength="30" value="<%=building%>">
              <font color=#FF3300>*</font> </td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="18">梯&nbsp;&nbsp;&nbsp;&nbsp;口</td>
            <td width="74%" height="18"> 
              <input type="text" name="stair"  maxlength="30" value="<%=stair%>">
              <font color=#FF3300>*</font> </td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="18">楼&nbsp;&nbsp;&nbsp;&nbsp;层</td>
            <td width="74%" height="18"> 
              <input type="text" name="floor"  maxlength="30" value="<%=floor%>">
              <font color=#FF3300>*</font> </td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="18">单&nbsp;&nbsp;&nbsp;&nbsp;元</td>
            <td width="74%" height="18"> 
              <input type="text" name="cell"  maxlength="30" value="<%=cell%>">
              <font color=#FF3300>*</font> </td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="18">验&nbsp;房&nbsp;人</td>
            <td width="74%" height="18"> 
              <input type="text" name="checkman"  maxlength="30" value="<%=checkman%>">
              <font color=#FF3300>*</font> </td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d4d0c8" width="26%" height="17">验房日期</td>
            <td width="74%" height="17"> 
            <select name="select1">
          <%if (year1.equals("0000")){%><option  > </option><%}else{%><option > </option><%}%>
          <%if (year1.equals("2001")){%><option value="2001" selected >2001</option><%}else{%><option value="2001">2001</option><%}%>
          <%if (year1.equals("2002")){%><option value="2002" selected >2002</option><%}else{%><option value="2002">2002</option><%}%>
          <%if (year1.equals("2003")){%><option value="2003" selected >2003</option><%}else{%><option value="2003">2003</option><%}%>
          <%if (year1.equals("2004")){%><option value="2004" selected >2004</option><%}else{%><option value="2004">2004</option><%}%>
          <%if (year1.equals("2005")){%><option value="2005" selected >2005</option><%}else{%><option value="2005">2005</option><%}%>
          <%if (year1.equals("2006")){%><option value="2006" selected >2006</option><%}else{%><option value="2006">2006</option><%}%>
          <%if (year1.equals("2007")){%><option value="2007" selected >2007</option><%}else{%><option value="2007">2007</option><%}%>
          <%if (year1.equals("2008")){%><option value="2008" selected >2008</option><%}else{%><option value="2008">2008</option><%}%>
          <%if (year1.equals("2009")){%><option value="2009" selected >2009</option><%}else{%><option value="2009">2009</option><%}%>
          <%if (year1.equals("2010")){%><option value="2010" selected >2010</option><%}else{%><option value="2010">2010</option><%}%>
        </select>年
        <select name="select2">
          <%if (month1.equals("00")){%><option  > </option><%}else{%><option > </option><%}%>
          <%if (month1.equals("01")){%><option value="01" selected >01</option><%}else{%><option value="01">01</option><%}%>
          <%if (month1.equals("02")){%><option value="02" selected >02</option><%}else{%><option value="02">02</option><%}%>
          <%if (month1.equals("03")){%><option value="03" selected >03</option><%}else{%><option value="03">03</option><%}%>
          <%if (month1.equals("04")){%><option value="04" selected >04</option><%}else{%><option value="04">04</option><%}%>
          <%if (month1.equals("05")){%><option value="05" selected >05</option><%}else{%><option value="05">05</option><%}%>
          <%if (month1.equals("06")){%><option value="06" selected >06</option><%}else{%><option value="06">06</option><%}%>
          <%if (month1.equals("07")){%><option value="07" selected >07</option><%}else{%><option value="07">07</option><%}%>
          <%if (month1.equals("08")){%><option value="08" selected >08</option><%}else{%><option value="08">08</option><%}%>
          <%if (month1.equals("09")){%><option value="09" selected >09</option><%}else{%><option value="09">09</option><%}%>
          <%if (month1.equals("10")){%><option value="10" selected >10</option><%}else{%><option value="10">10</option><%}%>
          <%if (month1.equals("11")){%><option value="11" selected >11</option><%}else{%><option value="11">11</option><%}%>
          <%if (month1.equals("12")){%><option value="12" selected >12</option><%}else{%><option value="12">12</option><%}%>
        </select>月
        <select name="select3">
          <%if (day1.equals("00")){%><option  > </option><%}else{%><option > </option><%}%>

⌨️ 快捷键说明

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