Saturday, March 29, 2014

ACO for iterator Row color by odd and even



<%@taglib prefix="s" uri="/struts-tags"%>
<div  id="pageNavPosition" style="padding-bottom: 2px;" align="left">
</div>
<div id="displayDataDiv"  style="float:left;width:584px;height:auto;overflow:auto;overflow-x:scroll;">

<table id="tablepaging" class="yui" align="center">
<tr bordercolor="#FFFFFF" >
       
 <th>Search</th>        
          <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
          <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
          <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
          <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
          <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
 <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
 <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
 <th><input name="filter" size="8" onkeyup="Table.filter(this,this)"></th>
       </tr>
       <tr>      
 <th  scope="col">HTN Rank</th>
          <th  scope="col">Confirmation</th>
          <th  scope="col">Not Qualified Reason</th>
          <th  scope="col">Not Qualified Date</th>
          <th  scope="col">Recent BP</th>
          <th  scope="col">BP Date</th>
          <th  scope="col">Systolic</th>
 <th  scope="col">Diastolic</th>
 <th  scope="col">Comments</th>
       </tr>
 
      <s:iterator value="hypertensionList" status="acd">
     
     <s:if test="#acd.odd==true">
<tr class="odd" >
         
          <td align="center"><s:property value="htn_rank"/></td>
          <td align="center"><s:property value="htn_confirmed"/></td>
          <td align="center"><s:property value="htn_not_qualified_reason"/></td>
          <td align="center"><s:property value="htn_not_qualified_date"/></td>
          <td align="center"><s:property value="htn_recent_bp"/></td>
          <td align="center"><s:property value="htn_bp_date"/></td>
          <td align="center"><s:property value="htn_bp_systolic"/></td>
 <td align="center"><s:property value="htn_bp_diastolic"/></td>
 <td align="center"><s:property value="htn_comments"/></td>
          </tr>
          </s:if>
          <s:else>
           <tr class="even" >
         
          <td align="center"><s:property value="htn_rank"/></td>
          <td align="center"><s:property value="htn_confirmed"/></td>
          <td align="center"><s:property value="htn_not_qualified_reason"/></td>
          <td align="center"><s:property value="htn_not_qualified_date"/></td>
          <td align="center"><s:property value="htn_recent_bp"/></td>
          <td align="center"><s:property value="htn_bp_date"/></td>
          <td align="center"><s:property value="htn_bp_systolic"/></td>
 <td align="center"><s:property value="htn_bp_diastolic"/></td>
 <td align="center"><s:property value="htn_comments"/></td>
          </tr>
          </s:else>
</s:iterator>
     
      </table>
 

</div>


No comments:

Post a Comment