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

📄 modifycellinput.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
📖 第 1 页 / 共 3 页
字号:
<!-- 系统名称:光大花园物业管理系统 -->
<!-- 程序名称:ModifyCellInput.jsp -->
<!-- 程序类型:jsp文件 -->
<!-- 功能简述:修改单元资料输入页面 -->
<!-- 作    者:韩立锋 -->
<!-- 公    司:长春中联	-->
<!-- 完成时间:2001/08/24 -->
<!-- 修 改 人:毕锋 -->
<!-- 修改内容:页面,增加字段--floortype	-->
<!-- 修改时间:2001/11/20 --12/08  -->
<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 cellnumb=(String)request.getParameter("cellnumb");
String floortype=(String)request.getParameter("floortype");
String floornumb=(String)request.getParameter("floornumb");
String doornumb=(String)request.getParameter("doornumb");
String buildingnumb=(String)request.getParameter("buildingnumb");
String subareanumb=(String)request.getParameter("subareanumb");
String use=(String)request.getParameter("use");
String structure=(String)request.getParameter("structure");
String architecturearea=(String)request.getParameter("architecturearea");
String usingarea=(String)request.getParameter("usingarea");
String direction=(String)request.getParameter("direction");
String bedroom=(String)request.getParameter("bedroom");
String hall=(String)request.getParameter("hall");
String loo=(String)request.getParameter("loo");
String cookroom=(String)request.getParameter("cookroom");
String balcony=(String)request.getParameter("balcony");
String elseroom=(String)request.getParameter("elseroom");
String addfixture=(String)request.getParameter("addfixture");
String candr=(String)request.getParameter("candr");
String crdate=(String)request.getParameter("crdate");
String useflag=(String)request.getParameter("useflag");
String price=(String)request.getParameter("price");
String paymentway=(String)request.getParameter("paymentway");
String paycontent=(String)request.getParameter("paycontent");
String enterdate=(String)request.getParameter("enterdate");
String fitment=(String)request.getParameter("fitment");
String owner=(String)request.getParameter("owner");
String remark=(String)request.getParameter("remark");

int filesize = Integer.parseInt(request.getParameter("size"));

//拆份日期
int j=0;
int m=0;

String cryear="";
String enteryear="";
String crmonth="";
String entermonth="";
String crday="";
String enterday="";
String str = "";
String str1 = "";

j=crdate.indexOf("-");
cryear = crdate.substring(0,j);
str = crdate.substring(j+1);
j=str.indexOf("-");
crmonth=str.substring(0,j);
crday= str.substring(j+1);

m=enterdate.indexOf("-");
enteryear = enterdate.substring(0,m);
str1 = enterdate.substring(m+1);
m=str1.indexOf("-");
entermonth=str1.substring(0,m);
enterday= str1.substring(m+1);

%>
<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 modDate1() {
	
    for(var i = 0; i < 21; i++) {
      if(document.form1.cryear[i].value == "<%=cryear%>") {
        document.form1.cryear[i].selected = true;
        break;
      }
    }
	for(var i = 0; i < 12; i++) {
      if(document.form1.crmonth[i].value == "<%=crmonth%>") {
        document.form1.crmonth[i].selected = true;
        break;
      }
    }
    for(var i = 0; i < 31; i++) {
      if(document.form1.crday[i].value == "<%=crday%>")
	  {
        document.form1.crday[i].selected = true;
        break;
      }
    }
    
}

//设置日期的缺省值
function modDate2() {
	
    for(var i = 0; i < 21; i++) {
      if(document.form1.enteryear[i].value == "<%=enteryear%>") {
        document.form1.enteryear[i].selected = true;
        break;
      }
    }
	for(var i = 0; i < 12; i++) {
      if(document.form1.entermonth[i].value == "<%=entermonth%>") {
        document.form1.entermonth[i].selected = true;
        break;
      }
    }
    for(var i = 0; i < 31; i++) {
      if(document.form1.enterday[i].value == "<%=enterday%>")
	  {
        document.form1.enterday[i].selected = true;
        break;
      }
    }
    
}


//检查输入的必须为数字
function ChkDigit1(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 ChkDigit2(num)
{
	var count = 0;
	for(i_loop=0;i_loop<num.length;i_loop++)   
    {
      	if (!(((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9))||(num.charAt(i_loop)==".")))
        {
		 	return false ;
        }
        if (num.charAt(i_loop)==".") {
        	count = count +1 ;
        }
        if (count>1) {
        	return false;
        }
        if((count==1)&&(num.length==1)){
        	return false;
        }
        
    }
}
function ChkFeeStandard(num)  
{
  
  for(i_loop=0;i_loop<=num.length;i_loop++)   
    {
      if (!(num.charAt(i_loop)=='.'))
      if (!((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9)))
        {
         alert("输入的售价不正确");
		 return false ;
        }
    }
   return true;
}     
function CheckForm(inputForm) 
{
	Nvoid(inputForm);
	if (inputForm.cellnumb.value==""){
        alert("请输入单元编号!");
        inputForm.cellnumb.focus();
        return false;
    }
    if(inputForm.cellnumb.value.length>2)
	{
		alert("单元编号长度不能超过两位!");
		inputForm.cellnumb.focus();
		return false;
	}
	if (ChkDigit1(inputForm.cellnumb.value)==false){
		alert("单元编号必须为数字!");
		inputForm.cellnumb.focus();
		return false;
	}
	if(inputForm.cellnumb.value.length==1){
		inputForm.cellnumb.value="0"+inputForm.cellnumb.value;
	}
    if (inputForm.floornumb.value==""){
        alert("请输入楼层数!");
        inputForm.floornumb.focus();
        return false;
    }
    if (inputForm.bedroom.value!=""&&ChkDigit1(inputForm.bedroom.value)==false){
    	alert("居住间的个数必须为数字!");
    	inputForm.bedroom.focus();
    	return false;
    }
    if (inputForm.hall.value!=""&&ChkDigit1(inputForm.hall.value)==false){
    	alert("客厅的个数必须为数字!");
    	inputForm.hall.focus();
    	return false;
    }
    if (inputForm.loo.value!=""&&ChkDigit1(inputForm.loo.value)==false){
    	alert("卫生间的个数必须为数字!");
    	inputForm.loo.focus();
    	return false;
    }
    if (inputForm.cookroom.value!=""&&ChkDigit1(inputForm.cookroom.value)==false){
    	alert("厨房的个数必须为数字!");
    	inputForm.cookroom.focus();

⌨️ 快捷键说明

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