<tr>
    <td>
        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

            {if $inv->esr.hour1 != Null && $inv->esr.hour1 != ''}  
            <tr style="line-height: 30px; ">
                <td class="wds25"><ul><li style="list-style: disc;">First Hour <span style="float: right">:</span>  </li> </ul>  </td>

                <td class="wds25" style="text-align: center;"> 
                    {if ($inv->esr.hour1_range_txt == Null || $inv->esr.hour1_range_txt  == '' ) &&    ($inv->esr.hour1_low == 1 ||  $inv->esr.hour1_high == 1 )}    
                    <div class=" wds50 bg-grey "   style="margin-left: 25%  ;   line-height: 150%;">
                        {else}
                        <div class=" wds50"   style="margin-left: 25%  ;   line-height: 150%;">
                            {/if}

                            {$inv->esr.hour1_value}
                        </div>  

                </td>

                <td class="wds15">
                    {if $inv->esr.hour1_range_txt == Null || $inv->esr.hour1_range_txt  == ''}  
                    {if $inv->esr.hour1_low == 1 }Low  {else if $inv->esr.hour1_high == 1 } High   {/if}
                    {/if}
                </td>

                <td>
                    Normal : 

                    {if $inv->esr.hour1_range_txt != Null && $inv->esr.hour1_range_txt  != ''}  
                    {$inv->esr.hour1_range_txt}
                    {else}

                    {if $inv->esr.hour1_range_low >= 0 && $inv->esr.hour1_range_low != Null    }  
                    {$inv->esr.hour1_range_low}
                    {/if}  

                    {if $inv->esr.hour1_range_high >= 0 &&  $inv->esr.hour1_range_high != Null   }  
                    -    {$inv->esr.hour1_range_high}
                    {/if}  

                    {if $inv->esr.hour1_invest_units &&  $inv->esr.hour1_invest_units != Null   }  
                    {$inv->esr.hour1_invest_units}
                    {/if}  
                    {/if}  
                </td>
            </tr>
            {/if}  


            {if $inv->esr.hour2 != Null && $inv->esr.hour2 != ''}  
            <tr style="line-height: 30px; ">
                <td class="wds25"><ul> <li style="list-style: disc;">Second Hour <span style="float: right">:</span> </li> </ul> </td>

                <td class="wds25" style="text-align: center;"> 
                    {if ($inv->esr.hour2_range_txt == Null || $inv->esr.hour2_range_txt  == '' ) &&    ($inv->esr.hour2_low == 1 ||  $inv->esr.hour2_high == 1 )}    
                    <div class=" wds50 bg-grey "   style="margin-left: 25% ;   line-height: 150%;">
                        {else}
                        <div class=" wds50"   style="margin-left: 25% ;   line-height: 150%;">
                            {/if}

                            {$inv->esr.hour2_value}
                        </div>  

                </td>

                <td class="wds15">
                    {if $inv->esr.hour2_range_txt == Null || $inv->esr.hour2_range_txt  == ''}  
                    {if $inv->esr.hour2_low == 1 } Low  {else if $inv->esr.hour2_high == 1 } High   {/if}
                    {/if}
                </td>

                <td>
                    Normal : 
                    {if $inv->esr.hour2_range_txt != Null && $inv->esr.hour2_range_txt  != ''}  
                    {$inv->esr.hour2_range_txt}
                    {else}

                    {if $inv->esr.hour2_range_low >= 0 && $inv->esr.hour2_range_low != Null    }  
                    {$inv->esr.hour2_range_low}
                    {/if}  

                    {if $inv->esr.hour2_range_high >= 0 &&  $inv->esr.hour2_range_high != Null   }  
                    -    {$inv->esr.hour2_range_high}
                    {/if}  

                    {if $inv->esr.hour2_invest_units &&  $inv->esr.hour2_invest_units != Null   }  
                    {$inv->esr.hour2_invest_units}
                    {/if}  
                    {/if}  
                </td>
            </tr>
            {/if}  
        </table>

    </td>
</tr>