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

📄 modifypeopleinput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
📖 第 1 页 / 共 3 页
字号:
			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 str2="";
	var del2="☆";
	var del ="※";
	for (i=0; i<inputForm.elements.length; i++)
	{
                if ((inputForm.elements[i].name!="txId")&&(inputForm.elements[i].name!="inputString")&&(inputForm.elements[i].type!="file"))
		{
                if ((inputForm.elements[i].name.toUpperCase() != "TIJIAO") &&
			(inputForm.elements[i].name.toUpperCase() != "复位"))
		{
			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.form1.inputString.value=str;
	document.form1.submit();

}
function handleForm1(magicindex,number,pageindex,retrieveindex,retrievecon,retrievecom)
{
	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;
	document.hiddenForm1.submit();
}
function setSource(){
	if(document.form1.picture.value!=""){
		document.form1.photo.src=document.form1.picture.value;
	}else{
		alert("请指定住户的照片");
	}
}
//-->
</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 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 regdate=(String)request.getAttribute("regdate");%>
<%String name=(String)request.getAttribute("name");%>
<%String sex=(String)request.getAttribute("sex");%>
<%String birthday=(String)request.getAttribute("birthday");%>
<%String nation=(String)request.getAttribute("nation");%>
<%String native1=(String)request.getAttribute("native1");%>
<%String idno=(String)request.getAttribute("idno");%>
<%String address=(String)request.getAttribute("address");%>
<%String duty=(String)request.getAttribute("duty");%>
<%String tel=(String)request.getAttribute("tel");%>
<%String number2=(String)request.getAttribute("number2");%>
<%String relation=(String)request.getAttribute("relation");%>
<%String picture=(String)request.getAttribute("picture");%>
<%String police=(String)request.getAttribute("police");%>
<%String doortype=(String)request.getAttribute("doortype");%>
<%String area=(String)request.getAttribute("area");%>
<%String contractno=(String)request.getAttribute("contractno");%>
<%String enterno=(String)request.getAttribute("enterno");%>
<%String usage=(String)request.getAttribute("usage");%>
<%String remark=(String)request.getAttribute("remark");%>

<%String reladress=(String)request.getAttribute("reladress");%>
<%String zip=(String)request.getAttribute("zip");%>
<%String usearea=(String)request.getAttribute("usearea");%>
<%String direction=(String)request.getAttribute("direction");%>

<%String year1="";%>
<%String month1="";%>
<%String day1="";%>
<% if(regdate.length()==10){
		year1=regdate.substring(0,4);
		month1=regdate.substring(5,7);
		day1=regdate.substring(8,10);
	};
%>
<%String year2="";%>
<%String month2="";%>
<%String day2="";%>
<%if (birthday.length()==10)
	{
		year2=birthday.substring(0,4);
		month2=birthday.substring(5,7);
		day2=birthday.substring(8,10);
	}
%>
</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_save_over.gif','/pmsApp/images/button_cancel_over.gif','/pmsApp/images/help2.gif')" >
  <table width="100%" border="0" cellspacing="0" cellpadding="0" background="/pmsApp/images/toolbar.gif">
    <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"><a href="javascript:;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','/pmsApp/images/button_modify_gray.gif',1)"><img name="Image10" border="0" src="/pmsApp/images/button_modify_gray.gif" width="55" height="20" alt="修改选定的数据"></a><a href="javascript:;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','/pmsApp/images/button_del_gray.gif',1)" ><img name="Image11" border="0" src="/pmsApp/images/button_del_gray.gif" width="55" height="20" alt="删除数据"></a><img src="/pmsApp/images/button_split.gif" width="8" height="20"><a href="javascript:;"><img name="Image13" border="0" src="/pmsApp/images/button_query_gray.gif" width="55" height="20" alt="条件检索"></a><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><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_up.gif" height="25">家庭成员</td>
                
          <td width="100" background="/pmsApp/images/tab_down_right.gif"><a href="/pmsApp/baseinfo/AddPeopleInput.jsp?subarea=<%=subarea%>&building=<%=building%>&stair=<%=stair%>&floor=<%=floor%>&cell=<%=cell%>">家庭成员登记</a></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
<%if (number.equals("0")){%>
    <tr valign="middle">
      <td colspan="8" height="41">
        
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="80%" border="1"  align="center" bgcolor="#d4d0c8" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="2">
      <tr>
        <td width="100%" align="center" valign="middle" style="color:green; font-size:12px" bgcolor="#FFFFFF"><%="请选择一条记录"%> 
        </td>
      </tr>
          <tr>
            <td align="center" height="2"><a href="/pmsApp/servlet/common.PMS?txId=2915&inputString="""><img src="/pmsApp/images/button_back.gif" width="55" height="20" name="Image1" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','/pmsApp/images/button_back_over.gif',1)" border="0"></a></td>
          </tr>
        </table>
      </td>
    </tr>
<%}else{%>
 <form name="form1" ENCTYPE="multipart/form-data" METHOD="post" ACTION="/pmsApp/servlet/common.PMS">
  <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="number" value="<%=number%>">
    <tr> 
      <td align="center" width="167" bgcolor="#d4d0c8" height="22">业&nbsp;&nbsp;&nbsp;主&nbsp;&nbsp;住&nbsp;&nbsp;&nbsp;址</td>
      <td colspan="2"> 小区 
        <input type="text" name="subarea" size="4" maxlength="1" value="<%=subarea%>">
        楼宇 
        <input type="text" name="building" size="4" maxlength="2" value="<%=building%>">
        梯口 
        <input type="text" name="stair" maxlength="2" size="4" value="<%=stair%>">
        楼层 
        <input type="text" name="floor" size="4" maxlength="2" value="<%=floor%>">
        单元 
        <input type="text" name="cell" size="4" maxlength="2" value="<%=cell%>">
        <font color="#FF3300">*</font></td>
    </tr>
    <tr> 
      <td align="center" width="167" bgcolor="#d4d0c8" height="22">登&nbsp;&nbsp;&nbsp;记&nbsp;&nbsp;日&nbsp;&nbsp;&nbsp;期</td>
      <td width="419"> 
        <select name="select1">
          <%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("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("01")){%>
          <option value="01" selected >01</option>
          <%}else{%>
          <option value="01">01</option>
          <%}%>
          <%if (day1.equals("02")){%>
          <option value="02" selected >02</option>
          <%}else{%>
          <option value="02">02</option>
          <%}%>
          <%if (day1.equals("03")){%>
          <option value="03" selected >03</option>

⌨️ 快捷键说明

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