飞艳小屋

程序--人生--哲学___________________欢迎艳儿的加入

BlogJava 首页 新随笔 联系 聚合 管理
  52 Posts :: 175 Stories :: 107 Comments :: 0 Trackbacks

/**
 * File Name  : familyinfo.js
 * Description   : This is the js file for familyinfo
 * Copyright   : Copyright (s) 2006
 * Company   : sfsafe.
 * Author           : chenpeng
 */
 
var newRow=new FamilyMember();
var MainProblemCount=-1;
var MainProblemIndex=-1;
var FamilyMemberIndex=-1;

//定义家庭成员类
function FamilyMember() {

 this.familyno="";
 this.name="";
 this.pid="";
 this.relationcode="";
 this.sex="";
 this.birthday="";
 this.education="";
 this.vocational="";
 this.marriage="";
 this.nflag="";
 
}

//在家庭成员查询结果中获取一行的值
function getRowValue(tablename,index,nflag)
{
 newRow.name=document.getElementById(tablename).rows[index].cells[0].innerText;
 newRow.pid=document.getElementById(tablename).rows[index].cells[1].innerText;
 newRow.relationcode=document.getElementById(tablename).rows[index].cells[2].innerText;
 newRow.sex=document.getElementById(tablename).rows[index].cells[3].innerText;
 newRow.birthday=document.getElementById(tablename).rows[index].cells[4].innerText;
 newRow.education=document.getElementById(tablename).rows[index].cells[5].innerText;
 newRow.vocational=document.getElementById(tablename).rows[index].cells[6].innerText;
 newRow.marriage=document.getElementById(tablename).rows[index].cells[7].innerText;
 newRow.nflag=nflag;
 opener.insertNewMember('FamilyMemberTable',newRow);
 
}

//在家庭成员列表中添加一行
function insertRowToFamilyMember(tablename,FamilyMember) {
 
 var lastRowIndex=document.getElementById(tablename).rows.length;
  FamilyMemberIndex++;
 var insertButton="<input type='button' name='Submit2324' value='详细' onClick=\"viewMemberInfo('"+cTrim(FamilyMember.name)+"','"+cTrim(FamilyMember.pid)+"','"+cTrim(FamilyMember.nflag)+"');\"/>";
  insertButton=insertButton+"&nbsp;<input type='button' name='delFamilyMember' value='删除' onClick=\"deleteFamilyMemberRow('FamilyMemberTable',this.parentNode.parentNode.rowIndex);\"/>";
 var hiddenPid="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].pid' value='"+cTrim(FamilyMember.pid)+"' />" ;
 var hiddenName="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].name' value='"+cTrim(FamilyMember.name)+"' />" ;
 var selectRelation="<select name='newFamilyMemberList["+FamilyMemberIndex+"].relationcode' id='FamilyMember"+FamilyMemberIndex+"'></select>";
 var hiddenSex="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].sex' value='"+cTrim(FamilyMember.sex)+"' />" ;
 var hiddenBirthday="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].birthday' value='"+cTrim(FamilyMember.birthday)+"' />" ;
 var hiddenMarriage="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].marriage' value='"+cTrim(FamilyMember.marriage)+"' />" ;
 var hiddenNflag="<input type='hidden' name='newFamilyMemberList["+FamilyMemberIndex+"].nflag' value='"+cTrim(FamilyMember.nflag)+"' />" ;
 
 var row=document.getElementById(tablename).insertRow(lastRowIndex);
 
 var cell0=row.insertCell(0);
 var cell1=row.insertCell(1);
 var cell2=row.insertCell(2);
 var cell3=row.insertCell(3);
 var cell4=row.insertCell(4);
 var cell5=row.insertCell(5);
 var cell6=row.insertCell(6);
 var cell7=row.insertCell(7);

 cell0.className='TableStyle_L';
 cell1.className='TableStyle';
 cell2.className='TableStyle';
 cell3.className='TableStyle';
 cell4.className='TableStyle';
 cell5.className='TableStyle';
 cell6.className='TableStyle';
 cell7.className='TableStyle_R';

 cell0.innerHTML=FamilyMember.name+hiddenName;
 cell1.innerHTML=FamilyMember.pid+hiddenPid;
 cell2.innerHTML=selectRelation;
 cell3.innerHTML=FamilyMember.sex+hiddenSex;
 cell4.innerHTML=FamilyMember.birthday+hiddenBirthday;
 cell5.innerHTML=FamilyMember.marriage+hiddenMarriage;
 cell6.innerHTML="";
 cell7.innerHTML=insertButton+hiddenNflag;
 
 var source = document.getElementById("relationcode");
 var desc = document.getElementById("FamilyMember"+FamilyMemberIndex);
 desc.options.length=source.options.length;
 for (var i = 0; i < desc.options.length; i++) {
  desc.options[i].value = source.options[i].value;
  desc.options[i].text = source.options[i].text;
 }
}

 //删除指定表格中指定行
function deleteRow(tablename,index)
{

 document.getElementById(tablename).deleteRow(index);
 
}

 //隐藏指定表格中指定行
function hiddenRow(tablename,index)
{

 document.getElementById(tablename).rows[index].style.display = "none";

}

function insertRowToMainProblem(tablename) {

 var insertButton="<input type='button' name='Submit232' value='删除' onClick=\"deleteMainProblemRow('MainProblemTable',this.parentNode.parentNode.rowIndex);\"/>";
 var lastRowIndex=document.getElementById(tablename).rows.length;
 var row=document.getElementById(tablename).insertRow(lastRowIndex);
  MainProblemCount=MainProblemCount+lastRowIndex;
  MainProblemIndex=parseInt(MainProblemIndex)+1;
 var cell0=row.insertCell(0);
 var cell1=row.insertCell(1);
 var cell2=row.insertCell(2);
 var cell3=row.insertCell(3);
 
 cell0.className='TableStyle_L';
 cell1.className='TableStyle';
 cell2.className='TableStyle';
 cell3.className='TableStyle_R';
 
 cell0.innerHTML="<input type='text' name='newMainProblemList["+MainProblemIndex+"].happendate' id='happendate"+MainProblemCount+"' Class='textInput' size='10' readonly='true'/>"+
 "<img  style='cursor:hand' onclick=\"calendar(this,document.getElementById('happendate"+MainProblemCount+"'),'yyyy-mm-dd');\" height=16 src='image/datetime.gif' alt='日期' width=16 border=0 >";
 cell1.innerHTML="<input type='text' name='newMainProblemList["+MainProblemIndex+"].solvedate' id='solvedate"+MainProblemCount+"' Class='textInput' size='10' readonly='true'/>"+
 "<img  style='cursor:hand' onclick=\"calendar(this,document.getElementById('solvedate"+MainProblemCount+"'),'yyyy-mm-dd');\" height=16 src='image/datetime.gif' alt='日期' width=16 border=0 >";
 cell2.innerHTML="<select name='newMainProblemList["+MainProblemIndex+"].problemname' id='familyMainProblem"+MainProblemCount+"'></select>";
 cell3.innerHTML=insertButton;
 var source = document.getElementById("MainProblem");
 var desc = document.getElementById("familyMainProblem"+MainProblemCount);
 desc.options.length=source.options.length;
 
 for (var i = 0; i < desc.options.length; i++) {
  desc.options[i].value = source.options[i].value;
  desc.options[i].text = source.options[i].text;
 }

}

function cTrim(sInputString)
{
 return sInputString.replace(/^\s+|\s+$/g, "");
}


//以下部分为地址做级联

 var countyInit = false;
 var streetInit = false;
 var villageInit = false;
 var groupInit = false;
 
 function setAddr() {
    
   var param = document.forms[0].elements("city").value;
   changeProvince(param);
 }
   
 function postProcessReadyStateChanged(httpRequest, param) {
  if (httpRequest.readyState == RS_COMPLETE) {
   if (param[0] == document.forms[0].elements("condition.city") && !countyInit) {
    countyInit = true;
    param = document.forms[0].elements("county").value;
    
    changeCity(param);
   }
   if (param[0] == document.forms[0].elements("condition.county") && !streetInit) {
    streetInit = true;
    param = document.forms[0].elements("street").value;
    
    changeCounty(param);
   }
   if (param[0] == document.forms[0].elements("condition.street") && !villageInit) {
    villageInit = true;
    param = document.forms[0].elements("village").value;
    
    changeStreet(param);
   }
   if (param[0] == document.forms[0].elements("condition.village") && !groupInit) {
    groupInit = true;
    
    param = document.forms[0].elements("group").value;
   
    changeVillage(param);
   }
  }
 }
   
 function changeProvince(param) {
  var desc = new Array();
  desc[0] = document.forms[0].elements("condition.city");
  desc[1] = document.forms[0].elements("condition.county");
  desc[2] = document.forms[0].elements("condition.street");
  desc[3] = document.forms[0].elements("condition.village");
  desc[4] = document.forms[0].elements("condition.addgroup");
  var sqlId = "selectAddr";
  var sqlParam = new Array();
  var sqlVal = document.forms[0].elements("condition.province").value;
  sqlVal= sqlVal == "" ? "AA" : sqlVal;
  sqlParam[0] = new SqlParam("parentCode",sqlVal );
  linkage(desc, sqlId, sqlParam,param);
 }
   
 function changeCity(param) {
  var desc = new Array();
  desc[0] = document.forms[0].elements("condition.county");
  desc[1] = document.forms[0].elements("condition.street");
  desc[2] = document.forms[0].elements("condition.village");
  desc[3] = document.forms[0].elements("condition.addgroup");
  var sqlId = "selectAddr";
  var sqlParam = new Array();
  var sqlVal = document.forms[0].elements("condition.city").value;
  sqlVal= sqlVal == "" ? "AA" : sqlVal;
  if(param =="undefined"){
   sqlVal=document.forms[0].elements("city").value;
  }
     sqlParam[0] = new SqlParam("parentCode", sqlVal);
  linkage(desc, sqlId, sqlParam,param);
 }
 function changeCounty(param) {
  var desc = new Array();
  desc[0] = document.forms[0].elements("condition.street");
  desc[1] = document.forms[0].elements("condition.village");
  desc[2] = document.forms[0].elements("condition.addgroup");
  var sqlId = "selectAddr";
  var sqlParam = new Array();
  var sqlVal = document.forms[0].elements("condition.county").value;
  sqlVal= sqlVal == "" ? "AA" : sqlVal;
  if(param =="undefined"){
   sqlVal=document.forms[0].elements("county").value;
  }
  sqlParam[0] = new SqlParam("parentCode",sqlVal );
  linkage(desc, sqlId, sqlParam,param);
 }
 function changeStreet(param) {
  var desc = new Array();
  desc[0] = document.forms[0].elements("condition.village");
  desc[1] = document.forms[0].elements("condition.addgroup");
  var sqlId = "selectAddr";
  var sqlParam = new Array();
  var sqlVal = document.forms[0].elements("condition.street").value;
  sqlVal= sqlVal == "" ? "AA" : sqlVal;
  if(param =="undefined"){
   sqlVal=document.forms[0].elements("street").value;
  }
  sqlParam[0] = new SqlParam("parentCode", sqlVal);
  linkage(desc, sqlId, sqlParam,param);
 }
 
 function changeVillage(param) {
  var desc = new Array();
  desc[0] = document.forms[0].elements("condition.addgroup");
  var sqlId = "selectAddr";
  var sqlParam = new Array();
  var sqlVal = document.forms[0].elements("condition.village").value;
  sqlVal= sqlVal == "" ? "AA" : sqlVal;
  if(param =="undefined"){
   sqlVal=document.forms[0].elements("street").value;
  }
  sqlParam[0] = new SqlParam("parentCode", sqlVal);
  linkage(desc, sqlId, sqlParam,param);
 }
 
 function getAddrCode(){
   
  province = document.forms[0].elements("condition.province").value;
  city = document.forms[0].elements("condition.city").value;
  county = document.forms[0].elements['condition.county'].value;
  street = document.forms[0].elements['condition.street'].value;
  village = document.forms[0].elements['condition.village'].value;
  group = document.forms[0].elements['condition.addgroup'].value;
  if(group!=""){
   document.forms[0].elements("condition.addrCode").value = group;
   return;
  }
  if(village!=""){
   document.forms[0].elements("condition.addrCode").value = village;
   return;
  }
  if(street!=""){
   document.forms[0].elements("condition.addrCode").value = street;
   return;
  }
  if(county!=""){
   document.forms[0].elements("condition.addrCode").value = county;
   return;
  }
  if(city!=""){
   document.forms[0].elements("condition.addrCode").value = city;
   return;
  }
  if(province!=""){
   document.forms[0].elements("condition.addrCode").value = "33";
   return;
  }else {
   document.forms[0].elements("condition.addrCode").value = "";
   return;
  }
 }


//JS for AJAX 应用于家庭成员的迁出
HTTPRequest = function () {
   var xmlhttp=null;
   try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (_e) {
      try {
         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
       } catch (_E) {
       xmlhttp = false;
       }
   }
   if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
     try {
        xmlhttp = new XMLHttpRequest();
     } catch (e) {
        xmlhttp = false;
   }  }
   return xmlhttp;
}

function moveoutFamilyMemberAjax(url) {
   var request_url = "/jxhealth/queryfamilymember.do?";
   request_url=request_url+url;
   var http = new HTTPRequest();
      http.open("GET", request_url, true);
   http.onreadystatechange = function (){ handleHttpResponse(http)};
   http.send();
}

function handleHttpResponse(http) {
}


/************************************/

<%@ page pageEncoding="GBK" contentType="text/html; charset=GBK"%>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld"%>
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld"%>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld"%>
<%@ taglib prefix="jxh" uri="/WEB-INF/jxhealth.tld"%>
<html>
<head>
<title>家庭档案-家庭成员添加</title>
  <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
  <link rel="stylesheet" href="<%=request.getContextPath()%>/image/style.css" type="text/css" />
<style type="text/css">
<!--
.TableStyle {
 height:30;
 text-align:center;
 border-top-style:none;
 border-bottom-style:none;
 border-left-style:none;
 border-right-color:#FFFFFF;
}
.TableStyle2 TR {
 background-color:expression((this.sectionRowIndex%2==0)?"#DDEEFF":"#FFFFFF")
}
.TableStyle_L {
 height:25;
 text-align:center;
 border-top-style:none;
 border-bottom-style:none; 
 border-right-color:#FFFFFF;
}
.TableStyle_R {
 height:25;
 text-align:center;
 border-top-style:none;
 border-bottom-style:none;
 border-left-style:none;
}
-->
</style>
<script src="<%=request.getContextPath()%>/familyinfo/familyinfo.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/linkage.js" type="text/javascript"></script>
<script language="javascript">

//查询家庭成员信息
function searchs()
{
 document.forms[0].processCategory.value = "queryFamilyMember";
 document.forms[0].submit();
}

function moveOutFamilyMember(familyno,pid,name)
{
 document.forms[0].processCategory.value = "moveOutFamilyMember";
 document.forms[0].elements("familymemberCondition.familyno").value = familyno;
 document.forms[0].elements("familymemberCondition.moveoutpid").value = pid;
 document.forms[0].elements("familymemberCondition.moveoutname").value = name;
 event.srcElement.disabled='disabled';
 document.forms[0].submit();
}
function addRowToMain(tablename,index,nflag)
{
 getRowValue(tablename,index,nflag);
 event.srcElement.disabled='disabled';
}

</script>
</head>

<body topmargin="0" leftmargin="0">

<html:form action="/queryfamilymember">

<html:hidden property="processCategory" />
<html:hidden property="familymemberCondition.familyno"/>
<html:hidden property="familymemberCondition.moveoutpid"/>
<html:hidden property="familymemberCondition.moveoutname"/>
<bean:define id="familyNoBean" name="FAMILYNO"></bean:define>
<table width="962" align="center" height="207"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="962" align="center" valign="top">
  <table width="99%" height="5"  border="0" cellspacing="0" cellpadding="0">
    <tr>
   <td></td>
    </tr>
  </table>
  <table width="100%" height="206"  border="0" cellpadding="0" cellspacing="0">
    <tr>
   <td>
    <table class="RightTop" border="0" cellspacing="0" cellpadding="0">
      <tr>
     <td class="l"></td>
     <td class="m" align="center"><a style="color:#FFFFFF; text-decoration:none">家庭成员查询</a></td>
     <td class="r"></td>
      </tr>
    </table>
    <table class="RightTOPT" width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
     <td class="l"><img src="<%=request.getContextPath()%>/image/Right_MM_L.gif" width="7" height="25"></td>
     <td class="m">&nbsp;</td>
     <td class="r"></td>
      </tr>
     </table>
    <table class="RightMiddle" width="100%"  border="0" cellspacing="0" cellpadding="0">     
      <tr>
     <td class="l"></td>
     <td height="100" align="center" valign="top" class="m">
     <table width="915" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <td class="msgFont" align="left" valign="bottom">
          <html:messages id="msgs" message="true">
        <LI><bean:write name="msgs" /></LI>
       </html:messages>
         </td>
        </tr>
     </table>
     <table width="915" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#31558c">
                      <tr>
                        <th width="907" colspan="9" ><table width="100%" align=center border="0" cellpadding="0" cellspacing="0"  style=" border-bottom:  hidden 0 PX solid ">
                            <tr>
                              <td width="120" height="30" align="center" style="color:#507dc2">姓名: </td>
                              <td width="197" align="left">
         <html:text name="FamilyMemberForm" property="familymemberCondition.name" size="18" maxlength="18" style="width:140px; height:15px" styleClass="textInput" errorStyle="background-color:red" />
         </td>
                              <td width="205" align="center" style="color:#507dc2">身份证号码:</td>
                              <td width="205" align="center">
         <html:text name="FamilyMemberForm" property="familymemberCondition.pid" size="18" maxlength="18" style="width:140px; height:15px" styleClass="textInput" errorStyle="background-color:red" />
         </td>
                              <td width="180" align="center">
                              <input type="button" name="submitbtn" value="查询"  class="btnSet" onClick="searchs();"/>
                              <input type="button" name="closebtn" value="关闭"  class="btnSet" onClick="window.close();"/>
                              </td>
                            </tr>
       <tr>
                              <td width="120" height="10" align="center" style="color:#507dc2"></td>
                              <td width="197" align="left"></td>
                              <td width="205" align="center" style="color:#507dc2"></td>
                              <td width="205" align="center"></td>
                              <td width="180" align="center"></td>
                            </tr>       
       <tr>
         <td colspan="5">
        
<logic:greaterThan name="FamilyMemberForm" property="pageInfo.totalPage" value="0">

            <table width="884" border="0" align="center" cellpadding="3" cellspacing="0" bordercolor="#31558c">
          <tr>
            <td width="170" height="30" align="left" style="color:#507dc2"><strong>家庭成员信息一览表</strong></td>
            <td width="702" colspan="6" align="right" style="color:#507dc2"><span class="f14 alignright mt5">每页
 <html:select property="pageInfo.pageSize">
 <html:option value="10"> 10 </html:option>
 <html:option value="30"> 30 </html:option>
 <html:option value="50"> 50 </html:option>
 <html:option value="100"> 100 </html:option>
 </html:select>
条记录
          &nbsp;排序方式
                                  <label>
<html:select property="sortKey">
<html:option value="name">姓名</html:option>
<html:option value="pid">身份证号</html:option>
</html:select>
                                  <input type="button" name="SubmitShow" class="btnSet" value="再显示" onClick="searchs();"/>
                                  </label>
            </span></td>
            </tr>
          <tr>
                              <td height="30" align="left" style="color:#507dc2" colspan="9">
<table id="FamilyMemberList" width="873" border="1" align="center" cellpadding="3" cellspacing="0" class="TableStyle2">
                      <tr style="font-size:12px;background-color:#507dc2">
                        <th width="77" height="30" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF;border-bottom-style:none">姓名</th>
                        <th width="106" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">身份证号</th>
                        <th width="108" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">家庭编号</th>
                        <th width="30" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">性别</th>
                        <th width="98" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">出生日期</th>
                        <th width="77" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">文化程度</th>
                        <th width="77" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">职业</th>
                        <th width="40" align="center" style="color:#FFFFFF; border-right-color: #A6BEFF; border-bottom-style:none; border-left-style:none">婚姻</th>
                        <th width="102" align="center" style="color:#FFFFFF;border-bottom-style:none; border-left-style:none">&nbsp;</th>
                      </tr>
      
<logic:iterate id="element" name="FamilyMemberForm" property="familymemberList" indexId="index">
      
                      <tr>
                        <td height="25" align="center" class="TableStyle_L">
<bean:write name="element" property="name" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="pid" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="familyno" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="sex" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="birthday" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="education" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="vocational" />
      </td>
                        <td height="25" align="center" class="TableStyle">
<bean:write name="element" property="marriage" />
      </td>
                        <td height="25" align="center" class="TableStyle_R">
<logic:notEqual name="element" property="familyno" value="<%=(String)familyNoBean %>">
<logic:empty name="element" property="familyno">
<input type="button" name="Submit32224" value="添加" onClick="addRowToMain('FamilyMemberList',this.parentNode.parentNode.rowIndex,'<bean:write name="element" property="nflag" />');"/>
</logic:empty>
<logic:notEmpty name="element" property="familyno">
<logic:notEqual name="element" property="mflag" value="1">
<input type="button" name="Submit32224" value="添加" disabled="disabled"/>
</logic:notEqual>
<logic:equal name="element" property="mflag" value="1">
<input type="button" name="Submit32224" value="添加" onClick="addRowToMain('FamilyMemberList',this.parentNode.parentNode.rowIndex,'<bean:write name="element" property="nflag" />');"/>
</logic:equal>
</logic:notEmpty>
<logic:empty name="element" property="familyno">
<input type="button" name="Submit32223" value="迁出" disabled="disabled"/>
</logic:empty>
<logic:notEmpty name="element" property="familyno">
<logic:equal name="element" property="relationcode" value="01">
<input type="button" name="Submit32223" value="迁出" onClick="javascript:alert('此人是户主 不能迁出');"/>
</logic:equal>
<logic:notEqual name="element" property="relationcode" value="01">
<logic:equal name="element" property="mflag" value="1">
<input type="button" name="Submit32223" value="迁出" disabled="disabled"/>
</logic:equal>
<logic:notEqual name="element" property="mflag" value="1">
<input type="button" name="Submit32223" value="迁出"
onClick="moveOutFamilyMember('<bean:write name="element" property="familyno" />','<bean:write name="element" property="pid" />','<bean:write name="element" property="name" />');"/>
</logic:notEqual>
</logic:notEqual>
</logic:notEmpty>
</logic:notEqual>

<logic:equal name="element" property="familyno" value="<%=(String)familyNoBean %>">
<logic:equal name="element" property="mflag" value="1">
<input type="button" name="Submit32224" value="添加" onClick="addRowToMain('FamilyMemberList',this.parentNode.parentNode.rowIndex,'<bean:write name="element" property="nflag" />');"/>
</logic:equal>
<logic:notEqual name="element" property="mflag" value="1">
<input type="button" name="Submit32224" value="添加" disabled="disabled"/>
</logic:notEqual>
<input type="button" name="Submit32223" value="迁出" disabled="disabled"/>
</logic:equal>
      </td>
                      </tr>
      
</logic:iterate>

            </table>
         <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
             <tr>
               <td align="right" style="color:#31558c;font-size:12px" height="30">
                 <jxh:pageInfo formIndex="0" />
                 </td>
             </tr>
           </table>
         </td>
                            </tr>
         
          </table>
         
</logic:greaterThan>
         
         </td>
       </tr>
                        </table></th>
                      </tr>
                    </table>
     </td>
     <td class="r"></td>
      </tr>
    </table>
    <table class="RightDOWN" width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
     <td class="l"></td>
     <td class="m"><img src="<%=request.getContextPath()%>/image/Right_D_C.gif" width="3" height="6"></td>
     <td class="r"></td>
      </tr>
    </table>
   </td>
    </tr>
   </table>
 </td>
  </tr>
</table>

</html:form>

</body>
</html>

posted on 2007-02-12 12:37 天外飞仙 阅读(849) 评论(0)  编辑  收藏 所属分类: javaScript

只有注册用户登录后才能发表评论。


网站导航: