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

📄 modifyrelcominput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
字号:
<!-- 系统名称:光大花园物业管理系统 -->
<!-- 程序名称:ModifyRelComInput.jsp -->
<!-- 程序类型:jsp文件 -->
<!-- 功能简述:修改相关单位资料输入页面 -->
<!-- 作    者:韩立锋 -->
<!-- 公    司:长春中联	-->
<!-- 完成时间:2001/09/11 -->
<!-- 修改人  :毕锋 -->
<!-- 修改内容:页面,增加字段 -->
<!-- 修改时间:2001/11/19/29 -->

<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>
<%

String number1=(String)request.getParameter("number");
String company=(String)request.getParameter("company");
String compkind=(String)request.getParameter("compkind");
String compaddr=(String)request.getParameter("compaddr");System.out.println("compaddr="+compaddr);
String principal=(String)request.getParameter("principal");
String permit=(String)request.getParameter("permit");
String compproduct=(String)request.getParameter("compproduct");System.out.println("compproduct="+compproduct);
String compservice=(String)request.getParameter("compservice");System.out.println("compservice="+compservice);
String collaborcontent=(String)request.getParameter("collaborcontent");System.out.println("collaborcontent="+collaborcontent);
String linkman=(String)request.getParameter("linkman");
String linkphone=(String)request.getParameter("linkphone");
String remark=(String)request.getParameter("remark");

if (!(compaddr.equals(""))) {
		 int index1 = 0;
		 index1=compaddr.indexOf("<br>");
		 while (index1!=-1){
			 compaddr = compaddr.substring(0,index1)+"\n"+compaddr.substring(index1+4,compaddr.length());
			 index1=compaddr.indexOf("<br>");
		 }
}	

if (!(compproduct.equals(""))) {	
	 	 int index2 = 0;
		 index2=compproduct.indexOf("<br>");
		 while (index2!=-1){
			 compproduct = compproduct.substring(0,index2)+"\n"+compproduct.substring(index2+4,compproduct.length());
			 index2=compproduct.indexOf("<br>");
		 }
}

if (!(compservice.equals(""))) {		 
		 int index3 = 0;
		 index3=compservice.indexOf("<br>");
		 while (index3!=-1){
			 compservice = compservice.substring(0,index3)+"\n"+compservice.substring(index3+4,compservice.length());
			 index3=compservice.indexOf("<br>");
		 }
}
if (!(collaborcontent.equals(""))) {		   
		 int index4 = 0;
		 index4=collaborcontent.indexOf("<br>");
		 while (index4!=-1){
			 collaborcontent = collaborcontent.substring(0,index4)+"\n"+collaborcontent.substring(index4+4,collaborcontent.length());
			 index4=collaborcontent.indexOf("<br>");
		 }
}
if (!(remark.equals(""))) {		   
		 int index5 = 0;
		 index5=remark.indexOf("<br>");
		 while (index5!=-1){
			 remark = remark.substring(0,index5)+"\n"+remark.substring(index5+4,remark.length());
			 index5=remark.indexOf("<br>");
		 }
}
%>
<script language="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 JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger) {

// by E Michael Brandt of ValleyWebDesigns.com - Please leave this comment intact.

	alt=alt+"  ** Click window to close **"
	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

    if(w<740){
      var lift=0.90;
    }
    if(w>=740 & w<835){
      var lift=0.91;
    }
    if(w>=835){
      var lift=0.93;
    }

	if (imageWidth>w){	
		byFactor = w / imageWidth;			
		imageWidth = w;
		imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
		byFactor = h / imageHeight;
		imageWidth = (imageWidth * byFactor);
		imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
		imageHeight=imageHeight*lift;
		imageWidth=imageWidth*lift;
	}

	var posLeft=0
	var posTop=0
	
	if (hugger=="hug image") {
		posTop = (scrHeight-imageHeight)/2;
		posLeft = ((w-imageWidth)/2);
		scrHeight = imageHeight-adj;
		scrWidth = imageWidth-adj;
 	}
	
	imageHeight=imageHeight-adj;
	imageWidth=imageWidth-adj;

	newWindow = window.open("","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt=\"Click\&nbsp\;screen\&nbsp\;to\&nbsp\;close.\" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
}
//-->
       
//检查输入的必须为数字
function ChkDigit(num)
{
	for(i_loop=0;i_loop<num.length;i_loop++)   
    {
      	if (!((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9)))
        {
		 	return false ;
        }
        
    }
}

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 CheckForm(inputForm)
{
    Nvoid(inputForm);
    if (inputForm.company.value==""){
        alert("请输入相关单位名称");
        inputForm.company.focus();
        return false;
    }
	if (inputForm.company.value.length>20){
        alert("相关单位名称不能超过20个字");
        inputForm.company.focus();
        return false;
    }
	if (inputForm.compkind.value.length>25){
        alert("相关单位性质不能超过25个字");
        inputForm.compkind.focus();
        return false;
    }
	if (inputForm.compaddr.value.length>50){
        alert("相关单位地址不能超过50个字");
        inputForm.compaddr.focus();
        return false;
    }
	if (inputForm.principal.value.length>10){
        alert("相关单位法人代表不能超过10个字");
        inputForm.principal.focus();
        return false;
    }
	if (inputForm.permit.value.length>10){
        alert("相关单位营业执照号不能超过10个字");
        inputForm.permit.focus();
        return false;
    }
	if (inputForm.compproduct.value.length>500){
        alert("相关单位公司产品不能超过500个字");
        inputForm.compproduct.focus();
        return false;
    }
	if (inputForm.compservice.value.length>500){
        alert("相关单位服务项目不能超过500个字");
        inputForm.compservice.focus();
        return false;
    }
	if (inputForm.collaborcontent.value.length>500){
        alert("合作内容不能超过500个字");
        inputForm.collaborcontent.focus();
        return false;
    }
	if (inputForm.linkman.value.length>10){
        alert("联系人不能超过10个字");
        inputForm.linkman.focus();
        return false;
    }
    
	if (inputForm.linkphone.value.length>15){
        alert("联系电话不能超过15个字");
        inputForm.linkphone.focus();
        return false;
    }
    if (inputForm.remark.value.length>250){
        alert("备注不能超过250个字");
        inputForm.remark.focus();
        return false;
    }
    handleForm(form1);
}
</script>
</head>
<body bgColor="#d4d0c8" leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" onLoad="this.focus();MM_preloadImages('/pmsApp/images/button_query_over.gif','/pmsApp/images/button_save_over.gif','/pmsApp/images/button_cancel_over.gif')" >
<form name="form1" >
  <input type="hidden" name="number1" value="<%=number1%>">
  <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 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"><a href="#"></a></td>
  </table><br>
  <table width="300"  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>  <br>
  <table border="1"  width="98%" align="center" bgcolor="#d4d0c8" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
    <tr> 
      <td width="17%" height="27" align="center">相关单位名称 </td>
      <td width="33%" height="27"> 
        <input type="text" name="company" size="28" value="<%=company%>" maxlength="20">
        <font color="#FF3300">*</font> </td>
      <td width="17%" height="27" align="center">相关单位性质 </td>
      <td width="33%" height="27"> 
        <input type="text" name="compkind" size="30" value="<%=compkind%>" maxlength="25">
      </td>
    </tr>
    <tr> 
      <td width="17%" align="center">相关单位地址 </td>
      <td colspan="3"> 
        <input type="text" name="compaddr" size="81" value="<%=principal%>" maxlength="30">
      </td>
    </tr>
    <tr> 
      <td width="17%" height="27" align="center">相关单位法人代表 </td>
      <td width="33%" height="27"> 
        <input type="text" name="principal" size="30" value="<%=principal%>" maxlength="10">
      </td>
      <td width="17%" height="27" align="center">营&nbsp;业&nbsp;执&nbsp;照&nbsp;号 
      </td>
      <td width="33%" height="27"> 
        <input type="text" name="permit" size="30" value="<%=permit%>" maxlength="10">
      </td>
    </tr>
    <tr> 
      <td width="17%" height="50" align="center">相关单位公司产品 </td>
      <td colspan="3" height="50"> 
        <textarea rows="8" name="compproduct" cols="80"><%=compproduct%></textarea>
      </td>
    </tr>
    <tr> 
      <td width="17%" height="50" align="center">相关单位服务项目 </td>
      <td colspan="3" height="50"> 
        <textarea rows="8" name="compservice" cols="80"><%=compservice%></textarea>
      </td>
    </tr>
    <tr> 
      <td width="17%" height="50" align="center">合&nbsp;&nbsp;作&nbsp;&nbsp;内&nbsp;&nbsp;容 
      </td>
      <td colspan="3" height="50"> 
        <textarea rows="8" name="collaborcontent" cols="80"><%=collaborcontent%></textarea>
      </td>
    </tr>
    <tr> 
      <td width="17%" height="27" align="center">相关单位联系人 </td>
      <td width="33%" height="27"> 
        <input type="text" name="linkman" size="30" value="<%=linkman%>" maxlength="10">
      </td>
      <td width="17%" height="27" align="center">相关单位联系电话 </td>
      <td width="33%" height="27"> 
        <input type="text" name="linkphone" size="30" maxlength="15" value="<%=linkphone%>">
      </td>
    </tr>
    <tr> 
      <td width="17%" height="27" align="center">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</td>
      <td colspan="3" height="27">
        <textarea name="remark" cols="80" rows="5"><%=remark%></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="3049">
		<input type="hidden" name="inputString" id="inputString" >
</form>
</body>
</html>

⌨️ 快捷键说明

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