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

📄 retrieveapparatusbycresult.jsp

📁 JSP物业管理系统 一份比较完整的物业管理系统源码。 对于初学者可以有一定的借鉴。
💻 JSP
字号:
<!-- 系统名称:光大花园物业管理系统 -->
<!-- 程序名称:RetrieveApparatusByCResult.jsp -->
<!-- 程序类型:jsp文件 -->
<!-- 功能简述:查询满足条件的三表资料结果页面 -->
<!-- 作    者:韩立锋 -->
<!-- 公    司:长春中联	-->
<!-- 完成时间:2001/09/29 -->
<!-- 修改人  :毕锋 -->
<!-- 修改内容:页面 -->
<!-- 修改时间:2001/11/19 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查询满足条件的三表资料结果</title>
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<base target="main">
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<%
int currentpage=Integer.parseInt(request.getAttribute("currentpage").toString());
int pages=Integer.parseInt(request.getAttribute("pages").toString());

String cond=(String) request.getAttribute("cond");
String content1=(String) request.getAttribute("content1");
String content2=(String) request.getAttribute("content2");

//获得三表资料的概要数据
Vector vecNum = (Vector) request.getAttribute("vecNum");
Vector vecApparatuskind = (Vector) request.getAttribute("vecApparatuskind");
Vector vecApparatusname = (Vector) request.getAttribute("vecApparatusname");
Vector vecApparatusnumb = (Vector) request.getAttribute("vecApparatusnumb");
Vector vecQuantifier = (Vector) request.getAttribute("vecQuantifier");
Vector vecDynameter = (Vector) request.getAttribute("vecDynameter");
Vector vecBase = (Vector) request.getAttribute("vecBase");
Vector vecProducingarea = (Vector) request.getAttribute("vecProducingarea");
Vector vecPrice = (Vector) request.getAttribute("vecPrice");
Vector vecCount = (Vector) request.getAttribute("vecCount");
Vector vecRemark = (Vector) request.getAttribute("vecRemark");

String flag = (String) request.getAttribute("flag");
String message = (String) request.getAttribute ("statusMessage");

%>
<script lanuage="JavaScript">
<!--
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 Add(form2) {
	document.form2.submit();
}

//分页
function Topage(cond,content1,content2,num) {	
    var str="";
	var del2="☆";
	var del ="※";
    str = "cond"+del2+cond+del+"content1"+del2+content1+del+"content2"+del2+content2+del+"number"+del2+num;
    document.topage.inputString.value=str;
    document.topage.submit();
}
</script>

</head>
<body bgColor="#FFFFFF" leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" background="/pmsApp/images/bg2.gif" onLoad="MM_preloadImages('/pmsApp/images/button_new_over.gif','/pmsApp/images/button_modify_over.gif','/pmsApp/images/button_del_over.gif','/pmsApp/images/button_query_over.gif','/pmsApp/images/button_all_over.gif')" >
<%if(flag.equals("1096")){%>
<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 src="/pmsApp/images/button_modify_gray.gif" width="55" height="20"><img 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" alt="条件检索"><img src="/pmsApp/images/button_split.gif" width="8" height="20"></td>
  </tr>
</table>
<p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="80%" border="1"  align="center" bgcolor="#FFFFFF" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
    <tr> 
      <td align="center" nowrap bgcolor="#FFFFFF" height="40">
		<center>
          <%=message%>
		</center>
	  </td>
    </tr>
    <tr> 
      <td valign="top" colspan="3" height="2"> 
        <table width="100%" border="1"  align="center" bgcolor="#d4d0c8" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="2">
          <tr> 
            <td align="center" height="2">
            	<a href="javascript:history.back();"><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>
  </table>
<%}else{%>
<form id="form1" name="form1">  
 <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 name="add" border="0" 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"></td>
</table>
  <table width="100%" border="1"  align="center" bgcolor="#FFFFFF" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
    <tr align="center" bgcolor="#d4d0c8">
      <td width="10%">三表类别</td>
      <td width="15%">表名称</td>
      <td width="10%">类表编号</td>
      <td width="10%">量程</td>
      <td width="10%">倍率</td>
      <td width="10%">底数</td>
      <td width="10%">产地</td>
      <td width="10%">单价</td>
      <td width="5%">数量</td>
      <td width="10%">备注</td>
    </tr>
    <%for(int i=0;i<vecNum.size();i++){%>
    <tr align="center" id="tr<%=i%>"  onmouseover="trover(tr<%=i%>)" onmouseout="trout(tr<%=i%>)" <%if(i%2==1){%>bgcolor="#eeffee";<%}%>> 
	      <td width="10%"><%=(String)vecApparatuskind.elementAt(i)%>&nbsp;</td>
	      <td width="15%"><%=(String)vecApparatusname.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecApparatusnumb.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecQuantifier.elementAt(i)%>&nbsp;</td>
	      <td width="8%"><%=(String)vecDynameter.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecBase.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecProducingarea.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecPrice.elementAt(i)%>&nbsp;</td>
	      <td width="5%"><%=(String)vecCount.elementAt(i)%>&nbsp;</td>
	      <td width="10%"><%=(String)vecRemark.elementAt(i)%>&nbsp;</td>
    </tr>
    <%}%>
  </table>
  <table width="100%" align="center">  
<%if (pages==1) {  %> 
	
    <tr> 
 		<td align="left" width="33%">&nbsp;</td> 
 		<td align="center" width="34%">第<%= currentpage%>页&nbsp;共<%= pages%>页</td> 
 		<td align="right" width="33%">&nbsp;</td>	
		
 	</tr>    
<%} else { %>
     <% if ((currentpage>1)&&(currentpage<pages)) {
        	int prevpage=currentpage-1; 
        	int nextpage=currentpage+1;
     %>
  			<tr>
   				<td width="30%" align="left"><a href="javascript:Topage('<%= cond%>','<%=content1%>','<%=content2%>',<%= prevpage%>)">上一页</a></td> 
   				<td width="40%" align="center">第<%= currentpage%>页&nbsp;共<%= pages%>页</td> 
  				<td width="30%" align="right"><a href="javascript:Topage('<%= cond%>','<%=content1%>','<%=content2%>',<%= nextpage%>)">下一页</a></td>
  			</tr> 
     <% } else if (currentpage==1) { %> 
      		<tr> 
     			<td width="30%">&nbsp;</td> 
      			<td width="40%" align="center">第<%= currentpage%>页&nbsp;共<%= pages%>页</td> 
      			<td width="30%" align="right"><a href="javascript:Topage('<%= cond%>','<%=content1%>','<%=content2%>',2)">下一页</a></td>
      		</tr> 
     <% } else { 
            int prevpage=pages-1; 
     %> 
       		<tr> 
       			<td width="30%" align="left"><a href="javascript:Topage('<%= cond%>','<%=content1%>','<%=content2%>',<%= prevpage%>)">上一页</a></td> 
       			<td width="40%" align="center">第<%= currentpage%>页&nbsp;共<%= pages%>页</td> 
       			<td width="30%">&nbsp;</td>
       		</tr> 
     <% } %>   
<%  } %>  
</table>
</form>
<form name="topage" METHOD="post" ACTION="/pmsApp/servlet/common.PMS"> 
    <INPUT TYPE="hidden" NAME="txId" ID="txId" VALUE="2034"> 
    <INPUT TYPE="hidden" NAME="inputString" ID="inputString" > 
</form> 
<%}%>
</body>
</html>

⌨️ 快捷键说明

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