

{assign var="d" value="1"}
{foreach from=$result key=myId item=i}

<table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
    <tr>
        {if $d == 1}

        <td style="width: 70%;">
            <h4 class="catName" style="text-decoration: underline;font-weight: bold;">{$myId} Report </h4>    
        </td>

        <td style="width: 30%;">
            <h4  style="text-decoration: underline;font-weight: bold;">Reference Range</h4>    
        </td>

        {else}
        <td style="width: 100%;">
            <h4 class="catName" style="text-decoration: underline;font-weight: bold;">{$myId} Report </h4>    
        </td>
        {/if}
    </tr>
</table>

{foreach $i as $inv}

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


    {if $inv->special_inv_type == 2  }  

    <tr>
        <td>
            <ul>
                <li style="list-style: none;">
                    <span style="text-decoration: underline;font-weight: bold;">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>

    <tr>
        <td>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Physical Examination :  </li> </ul></td>

                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                {if $inv->urine.volume != Null && $inv->urine.volume != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Volume  <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;"> 
                        {if   $inv->urine.volume_low == 1 ||  $inv->urine.volume_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->urine.volume}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.volume_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.volume_low == 1 } L  {else if $inv->urine.volume_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.volume_range_txt != Null && $inv->urine.volume_range_txt  != ''}  
                        {$inv->urine.volume_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.color != Null && $inv->urine.color != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Color <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25"  style="text-align: center;"> 
                        {if $inv->urine.color_low == 1 ||  $inv->urine.color_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->urine.color}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.color_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.color_low == 1 } L  {else if $inv->urine.color_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.color_range_txt != Null && $inv->urine.color_range_txt  != ''}  
                        {$inv->urine.color_range_txt}
                        {/if}  
                    </td>
                </tr>
                {/if}  

                {if $inv->urine.odor != Null && $inv->urine.odor != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Odor <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25"  style="text-align: center;"> 
                        {if $inv->urine.odor_low == 1 ||  $inv->urine.odor_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->urine.odor}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.odor_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.odor_low == 1 } L  {else if $inv->urine.odor_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.odor_range_txt != Null && $inv->urine.odor_range_txt  != ''}  
                        {$inv->urine.odor_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.aspect != Null && $inv->urine.aspect != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Aspect <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25"  style="text-align: center;"> 
                        {if $inv->urine.aspect_low == 1 ||  $inv->urine.aspect_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->urine.aspect}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.aspect_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.aspect_low == 1 } L  {else if $inv->urine.aspect_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.aspect_range_txt != Null && $inv->urine.aspect_range_txt  != ''}  
                        {$inv->urine.aspect_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.deposit != Null && $inv->urine.deposit != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Deposit <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.deposit_low == 1 ||  $inv->urine.deposit_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->urine.deposit}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.deposit_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.deposit_low == 1 } L  {else if $inv->urine.deposit_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.deposit_range_txt != Null && $inv->urine.deposit_range_txt  != ''}  
                        {$inv->urine.deposit_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Chemical Examination :  </li> </ul></td>
                    <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                </tr>
            </table>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                {if $inv->urine.reaction != Null && $inv->urine.reaction != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Reaction <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25"  style="text-align: center;"> 
                        {if $inv->urine.reaction_low == 1 ||  $inv->urine.reaction_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->urine.reaction}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.reaction_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.reaction_low == 1 } L  {else if $inv->urine.reaction_high == 1 } H   {/if}
                    </td>
                    <td class="wds35">

                        {if $inv->urine.reaction_range_txt != Null && $inv->urine.reaction_range_txt  != ''}  
                        {$inv->urine.reaction_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.protein != Null && $inv->urine.protein != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Protein <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.protein_low == 1 ||  $inv->urine.protein_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->urine.protein}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.protein_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.protein_low == 1 } L  {else if $inv->urine.protein_high == 1 } H   {/if}
                    </td>
                    <td >

                        {if $inv->urine.protein_range_txt != Null && $inv->urine.protein_range_txt  != ''}  
                        {$inv->urine.protein_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.sugar != Null && $inv->urine.sugar != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Sugar <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.sugar_low == 1 ||  $inv->urine.sugar_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->urine.sugar}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.sugar_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.sugar_low == 1 } L  {else if $inv->urine.sugar_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.sugar_range_txt != Null && $inv->urine.sugar_range_txt  != ''}  
                        {$inv->urine.sugar_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.acetone != Null && $inv->urine.acetone != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Acetone <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.acetone_low == 1 ||  $inv->urine.acetone_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->urine.acetone}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.acetone_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.acetone_low == 1 } L  {else if $inv->urine.acetone_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.acetone_range_txt != Null && $inv->urine.acetone_range_txt  != ''}  
                        {$inv->urine.acetone_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.nitrite != Null && $inv->urine.nitrite != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Nitrite <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.nitrite_low == 1 ||  $inv->urine.nitrite_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->urine.nitrite}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.nitrite_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.nitrite_low == 1 } L  {else if $inv->urine.nitrite_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.nitrite_range_txt != Null && $inv->urine.nitrite_range_txt  != ''}  
                        {$inv->urine.nitrite_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.gravity != Null && $inv->urine.gravity != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Specific Gravity <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.gravity_low == 1 ||  $inv->urine.gravity_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->urine.gravity}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.gravity_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.gravity_low == 1 } L  {else if $inv->urine.gravity_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.gravity_range_txt != Null && $inv->urine.gravity_range_txt  != ''}  
                        {$inv->urine.gravity_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.bilirubin != Null && $inv->urine.bilirubin != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Bilirubin <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.bilirubin_low == 1 ||  $inv->urine.bilirubin_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->urine.bilirubin}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.bilirubin_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.bilirubin_low == 1 } L  {else if $inv->urine.bilirubin_high == 1 } H   {/if}
                    </td>
                    <td>
                        {if $inv->urine.bilirubin_range_txt != Null && $inv->urine.bilirubin_range_txt  != ''}  
                        {$inv->urine.bilirubin_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.urobilinigen != Null && $inv->urine.urobilinigen != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Urobilinigen <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.urobilinigen_low == 1 ||  $inv->urine.urobilinigen_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->urine.urobilinigen}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.urobilinigen_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.urobilinigen_low == 1 } L  {else if $inv->urine.urobilinigen_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.urobilinigen_range_txt != Null && $inv->urine.urobilinigen_range_txt  != ''}  
                        {$inv->urine.urobilinigen_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.leucocytes != Null && $inv->urine.leucocytes != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Leucocytes <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.leucocytes_low == 1 ||  $inv->urine.leucocytes_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->urine.leucocytes}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.leucocytes_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.leucocytes_low == 1 } L  {else if $inv->urine.leucocytes_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.leucocytes_range_txt != Null && $inv->urine.leucocytes_range_txt  != ''}  
                        {$inv->urine.leucocytes_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.blood != Null && $inv->urine.blood != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Blood <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.blood_low == 1 ||  $inv->urine.blood_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->urine.blood}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.blood_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.blood_low == 1 } L  {else if $inv->urine.blood_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.blood_range_txt != Null && $inv->urine.blood_range_txt  != ''}  
                        {$inv->urine.blood_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

            </table>


        </td>
    </tr>
    <tr>
        <td>

            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Microscopic Examination :  </li> </ul></td>
                    <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                </tr>
            </table>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">

                {if $inv->urine.pus != Null && $inv->urine.pus != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Pus Cells <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25"  style="text-align: center;"> 
                        {if $inv->urine.pus_low == 1 ||  $inv->urine.pus_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->urine.pus}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.pus_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.pus_low == 1 } L  {else if $inv->urine.pus_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.pus_range_txt != Null && $inv->urine.pus_range_txt  != ''}  
                        {$inv->urine.pus_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.pbcs != Null && $inv->urine.pbcs != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">R.B.Cs <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.pbcs_low == 1 ||  $inv->urine.pbcs_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->urine.pbcs}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.pbcs_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.pbcs_low == 1 } L  {else if $inv->urine.pbcs_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.pbcs_range_txt != Null && $inv->urine.pbcs_range_txt  != ''}  
                        {$inv->urine.pbcs_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.epithelial != Null && $inv->urine.epithelial != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Epithelial Cells <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.epithelial_low == 1 ||  $inv->urine.epithelial_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->urine.epithelial}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.epithelial_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.epithelial_low == 1 } L  {else if $inv->urine.epithelial_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.epithelial_range_txt != Null && $inv->urine.epithelial_range_txt  != ''}  
                        {$inv->urine.epithelial_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.casts != Null && $inv->urine.casts != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Casts <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.casts_low == 1 ||  $inv->urine.casts_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->urine.casts}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.casts_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->urine.casts2 != Null && $inv->urine.casts2 != ''}  
                        {$inv->urine.casts2}
                        {else}
                        {if $inv->urine.casts_low == 1 } L  {else if $inv->urine.casts_high == 1 } H   {/if}
                        {/if}
                    </td>
                    <td>

                        {if $inv->urine.casts_range_txt != Null && $inv->urine.casts_range_txt  != ''}  
                        {$inv->urine.casts_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.crystal != Null && $inv->urine.crystal != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Crystal <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.crystal_low == 1 ||  $inv->urine.crystal_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->urine.crystal}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.crystal_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->urine.crystal2 != Null && $inv->urine.crystal2 != ''}  
                        {$inv->urine.crystal2}
                        {else}
                        {if $inv->urine.crystal_low == 1 } L  {else if $inv->urine.crystal_high == 1 } H   {/if}
                        {/if}
                    </td>
                    <td>

                        {if $inv->urine.crystal_range_txt != Null && $inv->urine.crystal_range_txt  != ''}  
                        {$inv->urine.crystal_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.amorphous != Null && $inv->urine.amorphous != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Amorphous <span style="float: right">:</span> </li> </ul> </td>
                    <td  class="wds25" style="text-align: center;"> 
                        {if $inv->urine.amorphous_low == 1 ||  $inv->urine.amorphous_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->urine.amorphous}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.amorphous_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.amorphous2 != Null && $inv->urine.amorphous2 != ''}  
                        {$inv->urine.amorphous2}
                        {else}
                        {if $inv->urine.amorphous_low == 1 } L  {else if $inv->urine.amorphous_high == 1 } H   {/if}
                        {/if}
                    </td>
                    <td>

                        {if $inv->urine.amorphous_range_txt != Null && $inv->urine.amorphous_range_txt  != ''}  
                        {$inv->urine.amorphous_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.ova != Null && $inv->urine.ova != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Ova <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.ova_low == 1 ||  $inv->urine.ova_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->urine.ova}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.ova_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.ova_low == 1 } L  {else if $inv->urine.ova_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.ova_range_txt != Null && $inv->urine.ova_range_txt  != ''}  
                        {$inv->urine.ova_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.trophazite != Null && $inv->urine.trophazite != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Trophazite <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.trophazite_low == 1 ||  $inv->urine.trophazite_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->urine.trophazite}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.trophazite_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.trophazite_low == 1 } L  {else if $inv->urine.trophazite_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.trophazite_range_txt != Null && $inv->urine.trophazite_range_txt  != ''}  
                        {$inv->urine.trophazite_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.mucus != Null && $inv->urine.mucus != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Mucus <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.mucus_low == 1 ||  $inv->urine.mucus_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->urine.mucus}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.mucus_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.mucus_low == 1 } L  {else if $inv->urine.mucus_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.mucus_range_txt != Null && $inv->urine.mucus_range_txt  != ''}  
                        {$inv->urine.mucus_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.artifacts != Null && $inv->urine.artifacts != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Urine Artifacts <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.artifacts_low == 1 ||  $inv->urine.artifacts_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->urine.artifacts}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.artifacts_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.artifacts_low == 1 } L  {else if $inv->urine.artifacts_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.artifacts_range_txt != Null && $inv->urine.artifacts_range_txt  != ''}  
                        {$inv->urine.artifacts_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  

                {if $inv->urine.fungi != Null && $inv->urine.fungi != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Fungi <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.fungi_low == 1 ||  $inv->urine.fungi_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->urine.fungi}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.fungi_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.fungi_low == 1 } L  {else if $inv->urine.fungi_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->urine.fungi_range_txt != Null && $inv->urine.fungi_range_txt  != ''}  
                        {$inv->urine.fungi_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}  

                {if $inv->urine.bacteria != Null && $inv->urine.bacteria != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds25" style="vertical-align: top;"><ul> <li style="list-style: disc;">Bacteria <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->urine.bacteria_low == 1 ||  $inv->urine.bacteria_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->urine.bacteria}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->urine.bacteria_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->urine.bacteria2 != Null && $inv->urine.bacteria2 != ''}  
                        {$inv->urine.bacteria2}
                        {else}

                        {if $inv->urine.bacteria_low == 1 } L  {else if $inv->urine.bacteria_high == 1 } H   {/if}
                        {/if}

                    </td>
                    <td>

                        {if $inv->urine.bacteria_range_txt != Null && $inv->urine.bacteria_range_txt  != ''}  
                        {$inv->urine.bacteria_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}  


            </table>

        </td>
    </tr>

    {if $inv->urine.comment != Null && $inv->urine.comment != ''}  
    <tr style="line-height: 25px; ">
        <td colsan="4">
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                    <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                </tr>
            </table>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td class="wds65" style="padding-left: 5%;" > 
                        {$inv->urine.comment}
                    </td>
                </tr>
            </table>

        </td>
    </tr>
    {/if}  


    {else if $inv->special_inv_type == 3  }  
    <tr>
        <td>
            <ul>
                <li style="list-style: none;">
                    <span style="text-decoration: underline;font-weight: bold;">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

        </td>
    </tr>
    <tr>
        <td>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Physical Examination :  </li> </ul></td>

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

                {if $inv->stool.color != Null && $inv->stool.color != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Color <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;"> 
                        {if $inv->stool.color_low == 1 ||  $inv->stool.color_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->stool.color}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.color_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.color_low == 1 } L  {else if $inv->stool.color_high == 1 } H   {/if}
                    </td>
                    <td>

                        {if $inv->stool.color_range_txt != Null && $inv->stool.color_range_txt  != ''}  
                        {$inv->stool.color_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.reaction != Null && $inv->stool.reaction != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Reaction <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.reaction_low == 1 ||  $inv->stool.reaction_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->stool.reaction}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.reaction_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.reaction_low == 1 } L  {else if $inv->stool.reaction_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.reaction_range_txt != Null && $inv->stool.reaction_range_txt  != ''}  
                        {$inv->stool.reaction_range_txt}
                        {/if}  


                    </td>

                </tr>
                {/if}

                {if $inv->stool.odor != Null && $inv->stool.odor != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Odor <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.odor_low == 1 ||  $inv->stool.odor_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->stool.odor}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.odor_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.odor_low == 1 } L  {else if $inv->stool.odor_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.odor_range_txt != Null && $inv->stool.odor_range_txt  != ''}  
                        {$inv->stool.odor_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.mucus != Null && $inv->stool.mucus != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Mucus <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.mucus_low == 1 ||  $inv->stool.mucus_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->stool.mucus}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.mucus_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.mucus_low == 1 } L  {else if $inv->stool.mucus_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.mucus_range_txt != Null && $inv->stool.mucus_range_txt  != ''}  
                        {$inv->stool.mucus_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}

                {if $inv->stool.consistency != Null && $inv->stool.consistency != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Consistency <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.consistency_low == 1 ||  $inv->stool.consistency_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->stool.consistency}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.consistency_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.consistency_low == 1 } L  {else if $inv->stool.consistency_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.consistency_range_txt != Null && $inv->stool.consistency_range_txt  != ''}  
                        {$inv->stool.consistency_range_txt}
                        {/if}  
                    </td>

                </tr>
                {/if}

                {if $inv->stool.food != Null && $inv->stool.food != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Food Particles <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.food_low == 1 ||  $inv->stool.food_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->stool.food}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.food_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.food_low == 1 } L  {else if $inv->stool.food_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.food_range_txt != Null && $inv->stool.food_range_txt  != ''}  
                        {$inv->stool.food_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.blood != Null && $inv->stool.blood != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Blood <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.blood_low == 1 ||  $inv->stool.blood_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->stool.blood}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.blood_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.blood_low == 1 } L  {else if $inv->stool.blood_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.blood_range_txt != Null && $inv->stool.blood_range_txt  != ''}  
                        {$inv->stool.blood_range_txt}
                        {/if}  


                    </td>

                </tr>
                {/if}

            </table>
        </td>
    </tr>

    <tr>
        <td>

            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">Microscopic Examination :  </li> </ul></td>
                    <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                </tr>
            </table>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">


                {if $inv->stool.wbc != Null && $inv->stool.wbc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">WBCs <span style="float: right">:</span> </li> </ul> </td>
                    <td  class="wds30" style="text-align: center;vertical-align: top;"> 
                        {if $inv->stool.wbc_low == 1 ||  $inv->stool.wbc_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->stool.wbc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.wbc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.wbc_low == 1 } L  {else if $inv->stool.wbc_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.wbc_range_txt != Null && $inv->stool.wbc_range_txt  != ''}  
                        {$inv->stool.wbc_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.rbc != Null && $inv->stool.rbc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">RBCs <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.rbc_low == 1 ||  $inv->stool.rbc_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->stool.rbc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.rbc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.rbc_low == 1 } L  {else if $inv->stool.rbc_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.rbc_range_txt != Null && $inv->stool.rbc_range_txt  != ''}  
                        {$inv->stool.rbc_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.trophozoite != Null && $inv->stool.trophozoite != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Trophozoite <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.trophozoite_low == 1 ||  $inv->stool.trophozoite_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->stool.trophozoite}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.trophozoite_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.trophozoite2 != Null && $inv->stool.trophozoite2 != ''}  
                        {$inv->stool.trophozoite2}
                        {/if}

                        {if $inv->stool.trophozoite3 != Null && $inv->stool.trophozoite3 != ''}  
                        {$inv->stool.trophozoite3}
                        {/if}


                        {if $inv->stool.trophozoite_low == 1 } L  {else if $inv->stool.trophozoite_high == 1 } H   {/if}


                    </td>
                    <td>

                        {if $inv->stool.trophozoite_range_txt != Null && $inv->stool.trophozoite_range_txt  != ''}  
                        {$inv->stool.trophozoite_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.cysts != Null && $inv->stool.cysts != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Cysts <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.cysts_low == 1 ||  $inv->stool.cysts_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->stool.cysts}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.cysts_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.cysts2 != Null && $inv->stool.cysts2 != ''}  
                        {$inv->stool.cysts2}
                        {/if}

                        {if $inv->stool.cysts_low == 1 } L  {else if $inv->stool.cysts_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.cysts_range_txt != Null && $inv->stool.cysts_range_txt  != ''}  
                        {$inv->stool.cysts_range_txt}
                        {/if}  


                    </td>

                </tr>
                {/if}

                {if $inv->stool.ova != Null && $inv->stool.ova != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Ova <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.ova_low == 1 ||  $inv->stool.ova_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->stool.ova}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.ova_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.ova2 != Null && $inv->stool.ova2 != ''}  
                        {$inv->stool.ova2}
                        {/if}

                        {if $inv->stool.ova_low == 1 } L  {else if $inv->stool.ova_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.ova_range_txt != Null && $inv->stool.ova_range_txt  != ''}  
                        {$inv->stool.ova_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.larva != Null && $inv->stool.larva != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Larva <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.larva_low == 1 ||  $inv->stool.larva_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->stool.larva}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.larva_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.larva2 != Null && $inv->stool.larva2 != ''}  
                        {$inv->stool.larva2}
                        {/if}

                        {if $inv->stool.larva_low == 1 } L  {else if $inv->stool.larva_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.larva_range_txt != Null && $inv->stool.larva_range_txt  != ''}  
                        {$inv->stool.larva_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.prog != Null && $inv->stool.prog != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Proglottids <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.prog_low == 1 ||  $inv->stool.prog_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->stool.prog}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.prog_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.prog2 != Null && $inv->stool.prog2 != ''}  
                        {$inv->stool.prog2}
                        {/if}

                        {if $inv->stool.prog_low == 1 } L  {else if $inv->stool.prog_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.prog_range_txt != Null && $inv->stool.prog_range_txt  != ''}  
                        {$inv->stool.prog_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}



                {if $inv->stool.flagellates != Null && $inv->stool.flagellates != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Flagellates <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.flagellates_low == 1 ||  $inv->stool.flagellates_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->stool.flagellates}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.flagellates_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->stool.flagellates2 != Null && $inv->stool.flagellates2 != ''}  
                        {$inv->stool.flagellates2}
                        {/if}



                        {if $inv->stool.flagellates_low == 1 } L  {else if $inv->stool.flagellates_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.flagellates_range_txt != Null && $inv->stool.flagellates_range_txt  != ''}  
                        {$inv->stool.flagellates_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

                {if $inv->stool.ciliate != Null && $inv->stool.ciliate != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Ciliate <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.ciliate_low == 1 ||  $inv->stool.ciliate_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->stool.ciliate}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.ciliate_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >


                        {if $inv->stool.ciliate_low == 1 } L  {else if $inv->stool.ciliate_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.ciliate_range_txt != Null && $inv->stool.ciliate_range_txt  != ''}  
                        {$inv->stool.ciliate_range_txt}
                        {/if}  


                    </td>

                </tr>
                {/if}

                {if $inv->stool.undigested != Null && $inv->stool.undigested != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Undigested Food <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.undigested_low == 1 ||  $inv->stool.undigested_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->stool.undigested}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.undigested_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->stool.undigested2 != Null && $inv->stool.undigested2 != ''}  
                        {$inv->stool.undigested2}
                        {/if}


                        {if $inv->stool.undigested_low == 1 } L  {else if $inv->stool.undigested_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.undigested_range_txt != Null && $inv->stool.undigested_range_txt  != ''}  
                        {$inv->stool.undigested_range_txt}
                        {/if}  



                    </td>

                </tr>
                {/if}

                {if $inv->stool.parasitology != Null && $inv->stool.parasitology != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Parasitology Artifacts <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds30" style="text-align: center;vertical-align: top;">  
                        {if $inv->stool.parasitology_low == 1 ||  $inv->stool.parasitology_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->stool.parasitology}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->stool.parasitology_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >
                        {if $inv->stool.parasitology2 != Null && $inv->stool.parasitology2 != ''}  
                        {$inv->stool.parasitology2}
                        {/if}

                        {if $inv->stool.parasitology_low == 1 } L  {else if $inv->stool.parasitology_high == 1 } H   {/if}

                    </td>
                    <td>

                        {if $inv->stool.parasitology_range_txt != Null && $inv->stool.parasitology_range_txt  != ''}  
                        {$inv->stool.parasitology_range_txt}
                        {/if}  

                    </td>

                </tr>
                {/if}

            </table>



        </td>
    </tr>

    {if $inv->stool.comment != Null && $inv->stool.comment != ''}  
    <tr style="line-height: 25px; ">
        <td colsan="4">
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                    <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                </tr>
            </table>
            <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                <tr>
                    <td class="wds65" style="padding-left: 5%;" > 
                        {$inv->stool.comment}
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    {/if}  


    {else if $inv->special_inv_type == 1  }  
    <tr>
        <td>
            <ul>
                <li style="list-style: none;">
                    <span style="text-decoration: underline;font-weight: bold;">
                        {$inv->invname} 
                    </span>
                </li>
            </ul>

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

                </tr>
            </table>
        </td>
    </tr>

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


                {if $inv->blood->hgb != Null && $inv->blood->hgb != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Hgb (Hemoglobin)  <span style="float: right">:</span></li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->hgb_low == 1 ||  $inv->blood->hgb_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->blood->hgb}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->hgb_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->hgb_low == 1 } L  {else if $inv->blood->hgb_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->hgb_range_txt != Null && $inv->blood->hgb_range_txt  != ''}  
                        {$inv->blood->hgb_range_txt}
                        {/if}  


                    </td>
                </tr>
                {/if}

                {if $inv->blood->rbc != Null && $inv->blood->rbc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">RBCs ( Red Blood Cells) <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->rbc_low == 1 ||  $inv->blood->rbc_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->blood->rbc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->rbc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->rbc_low == 1 } L  {else if $inv->blood->rbc_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->rbc_range_txt != Null && $inv->blood->rbc_range_txt  != ''}  
                        {$inv->blood->rbc_range_txt}
                        {/if}  


                    </td>
                </tr>
                {/if}

                {if $inv->blood->hct != Null && $inv->blood->hct != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Hct ( Hematocrit) <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->hct_low == 1 ||  $inv->blood->hct_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->blood->hct}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->hct_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->hct_low == 1 } L  {else if $inv->blood->hct_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->hct_range_txt != Null && $inv->blood->hct_range_txt  != ''}  
                        {$inv->blood->hct_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}

                {if $inv->blood->hgbpercent != Null && $inv->blood->hgbpercent != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Hgb % <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->hgbpercent_low == 1 ||  $inv->blood->hgbpercent_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->blood->hgbpercent}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->hgbpercent_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->hgbpercent_low == 1 } L  {else if $inv->blood->hgbpercent_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->hgbpercent_range_txt != Null && $inv->blood->hgbpercent_range_txt  != ''}  
                        {$inv->blood->hgbpercent_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}

                {if $inv->blood->mcv_calc != Null && $inv->blood->mcv_calc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">MCV <span style="float: right">:</span></li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->mcv_calc_low == 1 ||  $inv->blood->mcv_calc_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->blood->mcv_calc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->mcv_calc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->mcv_calc_low == 1 } L  {else if $inv->blood->mcv_calc_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->mcv_calc_range_txt != Null && $inv->blood->mcv_calc_range_txt  != ''}  
                        {$inv->blood->mcv_calc_range_txt}
                        {/if}  


                    </td>
                </tr>
                {/if}

                {if $inv->blood->mch_calc != Null && $inv->blood->mch_calc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">MCH <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->mch_calc_low == 1 ||  $inv->blood->mch_calc_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->blood->mch_calc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->mch_calc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->mch_calc_low == 1 } L  {else if $inv->blood->mch_calc_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->mch_calc_range_txt != Null && $inv->blood->mch_calc_range_txt  != ''}  
                        {$inv->blood->mch_calc_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}

                {if $inv->blood->mchc_calc != Null && $inv->blood->mchc_calc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">MCHC <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->mchc_calc_low == 1 ||  $inv->blood->mchc_calc_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->blood->mchc_calc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->mchc_calc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->mchc_calc_low == 1 } L  {else if $inv->blood->mchc_calc_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->mchc_calc_range_txt != Null && $inv->blood->mchc_calc_range_txt  != ''}  
                        {$inv->blood->mchc_calc_range_txt}
                        {/if}  


                    </td>
                </tr>
                {/if}

                {if $inv->blood->rdw != Null && $inv->blood->rdw != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">RDW <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->rdw_low == 1 ||  $inv->blood->rdw_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->blood->rdw}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->rdw_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->rdw_low == 1 } L  {else if $inv->blood->rdw_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->rdw_range_txt != Null && $inv->blood->rdw_range_txt  != ''}  
                        {$inv->blood->rdw_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}

                {if $inv->blood->plt != Null && $inv->blood->plt != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Plt (Platelet) <span style="float: right">:</span> </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->plt_low == 1 ||  $inv->blood->plt_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->blood->plt}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->plt_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->plt_low == 1 } L  {else if $inv->blood->plt_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->plt_range_txt != Null && $inv->blood->plt_range_txt  != ''}  
                        {$inv->blood->plt_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}

                {if $inv->blood->wbc != Null && $inv->blood->wbc != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">WBCs (Leukocytes) <span style="float: right">:</span>  </li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->wbc_low == 1 ||  $inv->blood->wbc_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->blood->wbc}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->wbc_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->wbc_low == 1 } L  {else if $inv->blood->wbc_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->wbc_range_txt != Null && $inv->blood->wbc_range_txt  != ''}  
                        {$inv->blood->wbc_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}


                {if $inv->blood->mindex != Null && $inv->blood->mindex != ''}  
                <tr style="line-height: 25px; ">
                    <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;">Mentzer Index  <span style="float: right">:</span></li> </ul> </td>
                    <td class="wds25" style="text-align: center;vertical-align: top;">  
                        {if $inv->blood->mindex_low == 1 ||  $inv->blood->mindex_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->blood->mindex}
                            </div>  
                    </td>
                    <td class="wds10" style="vertical-align: top;" >
                        {$inv->blood->mindex_invest_units}
                    </td>
                    <td class="wds5" style="vertical-align: top;" >

                        {if $inv->blood->mindex_low == 1 } L  {else if $inv->blood->mindex_high == 1 } H   {/if}

                    </td>
                    <td>
                        {if $inv->blood->mindex_range_txt != Null && $inv->blood->mindex_range_txt  != ''}  
                        {$inv->blood->mindex_range_txt}
                        {/if}  

                    </td>
                </tr>
                {/if}


                <!--------------------------------------------------------------------------->

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

                            <tr>
                                <td class="wds25 bold"> Test </td>
                                <td class="wds35 bold txtl" colspan="2"><ul style="margin-left: -2%;"> <li>Relative Counts % </li> </ul></td>
                                <td class="bold txtl" colspan="2"><ul style="margin-left: -8%;"> <li>Absolute Counts k/ul  </li> </ul></td>
                            </tr>


                            <tr style="line-height: 25px; ">
                                <td style="vertical-align: top;width: 25%;"><ul> <li style="list-style: disc;">Neutrophil <span style="float: right">:</span> </li> </ul> </td>
                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->neutrophil_r_low == 1 ||  $inv->blood->neutrophil_r_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->neutrophil_r}
                                        </div>  

                                        {if $inv->blood->neutrophil_r_low == 1 } L  {else if $inv->blood->neutrophil_r_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;width: 20%;vertical-align: top;" >  
                                    {if $inv->blood->neutrophil_r_range_txt != Null && $inv->blood->neutrophil_r_range_txt  != ''}  
                                    {$inv->blood->neutrophil_r_range_txt}
                                    {/if}  

                                </td>

                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->neutrophil_abs_low == 1 ||  $inv->blood->neutrophil_abs_high == 1 }    
                                    <div class=" wds50 bg-grey "   style="margin-right:  10%;  line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style="margin-right:  10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->neutrophil_abs}
                                        </div>  

                                        {if $inv->blood->neutrophil_abs_low == 1 } L  {else if $inv->blood->neutrophil_abs_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;vertical-align: top;" >  
                                    {if $inv->blood->neutrophil_abs_range_txt != Null && $inv->blood->neutrophil_abs_range_txt  != ''}  
                                    {$inv->blood->neutrophil_abs_range_txt}
                                    {/if}  

                                </td>

                            </tr>


                            <tr style="line-height: 25px; ">
                                <td style="vertical-align: top;width: 25%;"><ul> <li style="list-style: disc;">Lymphocytes <span style="float: right">:</span> </li> </ul> </td>
                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->lymphocytes_r_low == 1 ||  $inv->blood->lymphocytes_r_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->lymphocytes_r}
                                        </div>  

                                        {if $inv->blood->lymphocytes_r_low == 1 } L  {else if $inv->blood->lymphocytes_r_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;vertical-align: top;width: 20%" >  
                                    {if $inv->blood->lymphocytes_r_range_txt != Null && $inv->blood->lymphocytes_r_range_txt  != ''}  
                                    {$inv->blood->lymphocytes_r_range_txt}
                                    {/if}  
                                </td>

                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->lymphocytes_abs_low == 1 ||  $inv->blood->lymphocytes_abs_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-right:  10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->lymphocytes_abs}
                                        </div>  

                                        {if $inv->blood->lymphocytes_abs_low == 1 } L  {else if $inv->blood->lymphocytes_abs_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;" >  
                                    {if $inv->blood->lymphocytes_abs_range_txt != Null && $inv->blood->lymphocytes_abs_range_txt  != ''}  
                                    {$inv->blood->lymphocytes_abs_range_txt}
                                    {/if}  

                                </td>

                            </tr>


                            <tr style="line-height: 25px; ">
                                <td style="vertical-align: top;width: 25%;"><ul> <li style="list-style: disc;">Monocytes <span style="float: right">:</span> </li> </ul> </td>
                                <td style="text-align: center;vertical-align: top;width: 15%" >  
                                    {if $inv->blood->monocytes_r_low == 1 ||  $inv->blood->monocytes_r_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->monocytes_r}
                                        </div>  

                                        {if $inv->blood->monocytes_r_low == 1 } L  {else if $inv->blood->monocytes_r_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;vertical-align: top;width: 20%" >  
                                    {if $inv->blood->monocytes_r_range_txt != Null && $inv->blood->monocytes_r_range_txt  != ''}  
                                    {$inv->blood->monocytes_r_range_txt}
                                    {/if}  

                                </td>

                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->monocytes_abs_low == 1 ||  $inv->blood->monocytes_abs_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->monocytes_abs}
                                        </div>  

                                        {if $inv->blood->monocytes_abs_low == 1 } L  {else if $inv->blood->monocytes_abs_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;" >  
                                    {if $inv->blood->monocytes_abs_range_txt != Null && $inv->blood->monocytes_abs_range_txt  != ''}  
                                    {$inv->blood->monocytes_abs_range_txt}
                                    {/if}  

                                </td>

                            </tr>


                            <tr style="line-height: 25px; ">
                                <td style="vertical-align: top;width: 25%;"><ul> <li style="list-style: disc;">Eosinophils <span style="float: right">:</span> </li> </ul> </td>
                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->eosinophils_r_low == 1 ||  $inv->blood->eosinophils_r_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->eosinophils_r}
                                        </div>  

                                        {if $inv->blood->eosinophils_r_low == 1 } L  {else if $inv->blood->eosinophils_r_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;vertical-align: top;width: 20%" >
                                    {if $inv->blood->eosinophils_r_range_txt != Null && $inv->blood->eosinophils_r_range_txt  != ''}  
                                    {$inv->blood->eosinophils_r_range_txt}
                                    {/if}  


                                </td>

                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->eosinophils_abs_low == 1 ||  $inv->blood->eosinophils_abs_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->eosinophils_abs}
                                        </div>  

                                        {if $inv->blood->eosinophils_abs_low == 1 } L  {else if $inv->blood->eosinophils_abs_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;" >  
                                    {if $inv->blood->eosinophils_abs_range_txt != Null && $inv->blood->eosinophils_abs_range_txt  != ''}  
                                    {$inv->blood->eosinophils_abs_range_txt}
                                    {/if}  

                                </td>

                            </tr>


                            <tr style="line-height: 25px; ">
                                <td style="vertical-align: top;width: 25%;"><ul> <li style="list-style: disc;">Basophils <span style="float: right">:</span> </li> </ul> </td>
                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->basophils_r_low == 1 ||  $inv->blood->basophils_r_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->basophils_r}
                                        </div>  

                                        {if $inv->blood->basophils_r_low == 1 } L  {else if $inv->blood->basophils_r_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;vertical-align: top;width: 20%" >
                                    {if $inv->blood->basophils_r_range_txt != Null && $inv->blood->basophils_r_range_txt  != ''}  
                                    {$inv->blood->basophils_r_range_txt}
                                    {/if}  


                                </td>

                                <td style="text-align: center;vertical-align: top;width: 15%" >
                                    {if $inv->blood->basophils_abs_low == 1 ||  $inv->blood->basophils_abs_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                        {else}
                                        <div class=" wds50"   style=" margin-right: 10%; line-height: 150%;display: inline-block;">
                                            {/if}
                                            {$inv->blood->basophils_abs}
                                        </div>  

                                        {if $inv->blood->basophils_abs_low == 1 } L  {else if $inv->blood->basophils_abs_high == 1 } H   {/if}

                                </td>  
                                <td style="text-align: center;" >  
                                    {if $inv->blood->basophils_abs_range_txt != Null && $inv->blood->basophils_abs_range_txt  != ''}  
                                    {$inv->blood->basophils_abs_range_txt}
                                    {/if}  



                                </td>

                            </tr>


                            <!------------------------------------------------------------------------------------------------------------->
                        </table>
                    </td>
                </tr>





                {if $inv->blood->comment != Null && $inv->blood->comment != ''}  
                <tr style="line-height: 25px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->blood->comment}
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                {/if}  

                {else if $inv->special_inv_type == 4  }  
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;"> Culture :   </li> </ul></td>

                            </tr>
                        </table>
                    </td>
                </tr>

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

                            {if $inv->culture.sample != Null && $inv->culture.sample != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Sample <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.sample_value}
                                </td>
                            </tr>
                            {/if}  


                            {if $inv->culture.organism_a != Null && $inv->culture.organism_a != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Organism A <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.organism_a_value}
                                </td>
                            </tr>
                            {/if}  

                            {if $inv->culture.organism_b != Null && $inv->culture.organism_b != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Organism B <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.organism_b_value}
                                </td>
                            </tr>
                            {/if}  

                            {if $inv->culture.organism_c != Null && $inv->culture.organism_c != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Organism C <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.organism_c_value}
                                </td>
                            </tr>
                            {/if}  


                            {if $inv->culture.condition != Null && $inv->culture.condition != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Culture Condition <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.condition_value}
                                </td>
                            </tr>
                            {/if}  

                            {if $inv->culture.condition1 != Null && $inv->culture.condition1 != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"> </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.condition1_value}
                                </td>
                            </tr>
                            {/if}  

                            {if $inv->culture.colony_count != Null && $inv->culture.colony_count != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30"><ul><li style="list-style: disc;">Colony Count <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5px;"> 
                                    {$inv->culture.colony_count_value}
                                </td>
                            </tr>
                            {/if}  

                        </table>
                    </td>
                </tr>

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds60"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;"> Sensitivity :   </li> </ul></td>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                </tr>

                {if $investigationresults_culture_hsCount > 0 ||   $investigationresults_culture_msCount > 0  ||  $investigationresults_culture_lsCount > 0 ||  $investigationresults_culture_rsCount > 0 }  
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            {if $investigationresults_culture_hsCount > 0}  
                            <tr style="line-height: 25px; ">
                                <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                            Highly {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                <th class="wds25"> Sensitive</th>
                                <th class="wds25"> Commercial Name </th>
                            </tr>

                            {assign var=i value=1}
                            {foreach $investigationresults_culture_hs as $data}

                            <tr style="line-height: 25px; ">
                                <td> 
                                    <div  style=" margin-left: 5%;">
                                        {$i}  -   {$data.scientific_name}  
                                    </div>
                                </td>
                                <td>  {$data.sensitivity}  </td>
                                <td>    </td>
                            </tr>

                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                            {/if}  

                            {if $investigationresults_culture_msCount > 0}  
                            <tr style="line-height: 25px; ">
                                <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                            Moderate {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                <th class="wds25"> Sensitive</th>
                                <th class="wds25"> Commercial Name </th>
                            </tr>

                            {assign var=i value=1}
                            {foreach $investigationresults_culture_ms as $data}

                            <tr style="line-height: 25px; ">
                                <td> 
                                    <div  style=" margin-left: 5%;">
                                        {$i}  -   {$data.scientific_name}  
                                    </div>
                                </td>
                                <td>  {$data.sensitivity}  </td>
                                <td>    </td>
                            </tr>

                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                            {/if}  

                            {if $investigationresults_culture_lsCount > 0}  
                            <tr style="line-height: 25px; ">
                                <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                            Low {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                <th class="wds25"> Sensitive</th>
                                <th class="wds25"> Commercial Name </th>
                            </tr>

                            {assign var=i value=1}
                            {foreach $investigationresults_culture_ls as $data}

                            <tr style="line-height: 25px; ">
                                <td> 
                                    <div  style=" margin-left: 5%;">
                                        {$i}  -   {$data.scientific_name}  
                                    </div>
                                </td>
                                <td>  {$data.sensitivity}  </td>
                                <td>    </td>
                            </tr>

                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                            {/if}  

                            {if $investigationresults_culture_rsCount > 0}  
                            <tr style="line-height: 25px; ">
                                <td class="wds50 bold"><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">
                                            Resistant {$inv->culture.sensitivity_cat_value} For  :   </li> </ul></td>
                                <th class="wds25"> Sensitive</th>
                                <th class="wds25"> Commercial Name </th>
                            </tr>

                            {assign var=i value=1}
                            {foreach $investigationresults_culture_rs as $data}

                            <tr style="line-height: 25px; ">
                                <td> 
                                    <div  style=" margin-left: 5%;">
                                        {$i}  -   {$data.scientific_name}  
                                    </div>
                                </td>
                                <td>  {$data.sensitivity}  </td>
                                <td>    </td>
                            </tr>

                            {capture assign=i}{$i+1}{/capture}
                            {/foreach}
                            {/if}  
                        </table>
                    </td>
                    <td>

                    </td>
                </tr>
                {/if}  


                {else if $inv->special_inv_type == 5  }  
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: disc;text-decoration: underline;font-weight: bold;margin-left: -6%;">  </li> </ul></td>

                            </tr>
                        </table>
                    </td>
                </tr>


                <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: 25px; ">
                                <td class="wds25" style="vertical-align: top;"><ul><li style="list-style: disc;">First Hour <span style="float: right">:</span>  </li> </ul>  </td>

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

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

                                </td>

                                <td class="wds8" style="vertical-align: top;" >
                                    {$inv->esr.hour1_invest_units}
                                </td>
                                <td class="wds7" style="vertical-align: top;" >
                                    {if $inv->esr.hour1_low == 1 }L  {else if $inv->esr.hour1_high == 1 } H   {/if}
                                </td>

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


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

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

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

                                </td>

                                <td class="wds8" style="vertical-align: top; " >
                                    {$inv->esr.hour2_invest_units}
                                </td>
                                <td class="wds7" style="vertical-align: top;" >

                                    {if $inv->esr.hour2_low == 1 } L  {else if $inv->esr.hour2_high == 1 } H   {/if}

                                </td>

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

                                </td>
                            </tr>
                            {/if}  
                        </table>

                    </td>
                </tr>

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

                <tr style="line-height: 25px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>
                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->esr.comment}
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                {/if} 


                {else if $inv->special_inv_type == 6  }  
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

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


                            <tr style="line-height: 25px; ">
                                <td class="wds25"><ul><li style="list-style: disc;font-weight: bold;">The Patient <span style="float: right">:</span>  </li> </ul>  </td>

                                <td style="text-align: left; padding-left: 5%;"> 
                                    {if $inv->cross.abo > 0 }   {$inv->cross.abo_value}  {/if}     
                                    {if $inv->cross.rh > 0 }   {$inv->cross.rh_value}  {/if}  
                                </td>
                            </tr>

                        </table>

                    </td>
                </tr>

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr style="line-height: 25px; ">
                                <td class="wds25"><ul><li style="list-style: disc;font-weight: bold;">The Donors  <span style="float: right">:</span>  </li> </ul>  </td>

                                <td class="wds25"> </td>
                                <td style="text-decoration:underline;font-weight: bold;">Viral Screen </td>
                            </tr>
                        </table>

                    </td>
                </tr>

                {if $inv->cross.donnersItr > 0 }

                <tr>
                    <td>
                        <table style="float: left;" cellpadding="2" class="noborder wds54">
                            <tr style="line-height: 25px; " class="bg-grey">
                                <th class="wds50 txtc">Donor Name</th>
                                <th class="wds25 txtc"> Result  </th>
                                <th class="wds25">   </th>
                            </tr>

                            {foreach $inv->cross.donners as $donner}
                            {if $donner.name != Null && $donner.name != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds50 txtc ">
                                    <ul><li style="list-style: disc;">{$donner.name}  <span style="float: right">:</span>  </li> </ul> 
                                </td>
                                <td class="wds25 txtc">
                                    {if $donner.abo > 0 }   {$donner.abo_value}  {/if}     
                                    {if $donner.rh > 0 }   {$donner.rh_value}  {/if}  
                                </td>
                                <td class="wds25 txtc">
                                    {if $donner.compatibility > 0 }   {$donner.compatibility_value}  {/if}     
                                </td>
                            </tr>
                            {/if}     
                            {/foreach}

                        </table>


                        <table style="float: right;" cellpadding="2" class="noborder wds44">
                            <tr style="line-height: 25px; " class="bg-grey">
                                <th class="wds33 txtc"> HCV  </th>
                                <th class="wds33 txtc"> HBsAg  </th>
                                <th class="wds34 txtc"> HV  </th>
                            </tr>

                            {foreach $inv->cross.donners as $donner}
                            {if $donner.name != Null && $donner.name != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds33 txtc ">
                                    {if $donner.hcv > 0 }   {$donner.hcv_value}  {/if}     
                                </td>
                                <td class="wds33 txtc">
                                    {if $donner.hbsag > 0 }   {$donner.hbsag_value}  {/if}     
                                </td>
                                <td class="wds34 txtc">
                                    {if $donner.hv > 0 }   {$donner.hv_value}  {/if}     
                                </td>
                            </tr>
                            {/if}     
                            {/foreach}

                        </table>



                    </td>
                </tr>


                {/if}  

                {if $inv->cross.comment != Null && $inv->cross.comment != ''}  

                <tr style="line-height: 25px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>

                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->cross.comment}
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                {/if} 






                {else if $inv->special_inv_type == 7  }  
                {else if $inv->special_inv_type == 8  }  
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

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

                            </tr>
                        </table>
                    </td>
                </tr>

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


                            {if $inv->clothing->bleeding != Null && $inv->clothing->bleeding != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;font-weight: bold;">Bleeding Time ( BT )  <span style="float: right">:</span></li> </ul> </td>
                                <td class="wds20" style="text-align: center;vertical-align: top;"> 
                                    {if   $inv->clothing->bleeding_low == 1 ||  $inv->clothing->bleeding_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                            {/if}
                                            {$inv->clothing->bleeding} :  {$inv->clothing->bleeding_sec} 
                                        </div>  
                                </td>
                                <td class="wds10" style="vertical-align: top;">
                                    {if $inv->clothing->bleeding_invest_units &&  $inv->clothing->bleeding_invest_units != Null   }  
                                    {$inv->clothing->bleeding_invest_units}
                                    {/if}  
                                </td>
                                <td class="wds10" style="vertical-align: top;">
                                    {if $inv->clothing->bleeding_low == 1 } Low  {else if $inv->clothing->bleeding_high == 1 } High   {/if}
                                </td>
                                <td>
                                    {if $inv->clothing->bleeding_range_txt != Null && $inv->clothing->bleeding_range_txt  != ''}  
                                    {$inv->clothing->bleeding_range_txt}
                                    {/if}  

                                </td>
                            </tr>
                            {/if}

                            {if $inv->clothing->clothing != Null && $inv->clothing->clothing != ''}  
                            <tr style="line-height: 25px; ">
                                <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;font-weight: bold;">Clothing Time ( CT )  <span style="float: right">:</span></li> </ul> </td>
                                <td class="wds20" style="text-align: center;vertical-align: top;"> 
                                    {if   $inv->clothing->clothing_low == 1 ||  $inv->clothing->clothing_high == 1 }    
                                    <div class=" wds50 bg-grey "   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                        {else}
                                        <div class=" wds50"   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                            {/if}
                                            {$inv->clothing->clothing} :  {$inv->clothing->clothing_sec} 
                                        </div>  
                                </td>
                                <td class="wds10" style="vertical-align: top;">
                                    {if $inv->clothing->clothing_invest_units &&  $inv->clothing->clothing_invest_units != Null   }  
                                    {$inv->clothing->clothing_invest_units}
                                    {/if}  
                                </td>
                                <td class="wds10" style="vertical-align: top;">
                                    {if $inv->clothing->clothing_low == 1 } Low  {else if $inv->clothing->clothing_high == 1 } High   {/if}
                                </td>
                                <td>
                                    {if $inv->clothing->clothing_range_txt != Null && $inv->clothing->clothing_range_txt  != ''}  
                                    {$inv->clothing->clothing_range_txt}
                                    {/if}  

                                </td>
                            </tr>
                            {/if}



                            {if $inv->clothing->comment != Null && $inv->clothing->comment != ''}  

                            <tr style="line-height: 25px; ">
                                <td colsan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>

                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                                        </tr>
                                    </table>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds65" style="padding-left: 5%;" > 
                                                {$inv->clothing->comment}
                                            </td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            {/if} 

                            <!------------------------------------------------------------------------------------------------------------->
                        </table>
                    </td>
                </tr>





                {else if $inv->special_inv_type == 9  }  
                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

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

                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">  
                            <tr style="line-height: 50px; ">
                                <td colsan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds30" ><ul> <li style="list-style: disc;font-weight: bold;margin-left: -6%;">PT ( Prothrombin Time ) :  </li> </ul></td>

                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                                        </tr>
                                        <tr>
                                            <td colsan="2" class="wds100">
                                                <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                                    {if $inv->pt->patient_time != Null && $inv->pt->patient_time != ''}  
                                                    <tr style="line-height: 40px; ">
                                                        <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;font-weight: bold;">Patient's Time <span style="float: right">:</span></li> </ul> </td>
                                                        <td class="wds20" style="text-align: center;vertical-align: top;"> 
                                                            {if   $inv->pt->patient_time_low == 1 ||  $inv->pt->patient_time_high == 1 }    
                                                            <div class=" wds50 bg-grey "   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                {else}
                                                                <div class=" wds50"   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                    {/if}
                                                                    {$inv->pt->patient_time}
                                                                </div>  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->patient_time_invest_units &&  $inv->pt->patient_time_invest_units != Null   }  
                                                            {$inv->pt->patient_time_invest_units}
                                                            {/if}  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->patient_time_low == 1 } Low  {else if $inv->pt->patient_time_high == 1 } High   {/if}
                                                        </td>
                                                        <td>
                                                            {if $inv->pt->patient_time_range_txt != Null && $inv->pt->patient_time_range_txt  != ''}  
                                                            {$inv->pt->patient_time_range_txt}
                                                            {/if}  

                                                        </td>
                                                    </tr>
                                                    {/if}

                                                    {if $inv->pt->concentration != Null && $inv->pt->concentration != ''}  
                                                    <tr style="line-height: 40px; ">
                                                        <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;font-weight: bold;">Concentration <span style="float: right">:</span></li> </ul> </td>
                                                        <td class="wds20" style="text-align: center;vertical-align: top;"> 
                                                            {if   $inv->pt->concentration_low == 1 ||  $inv->pt->concentration_high == 1 }    
                                                            <div class=" wds50 bg-grey "   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                {else}
                                                                <div class=" wds50"   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                    {/if}
                                                                    {$inv->pt->concentration}
                                                                </div>  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->concentration_invest_units &&  $inv->pt->concentration_invest_units != Null   }  
                                                            {$inv->pt->concentration_invest_units}
                                                            {/if}  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->concentration_low == 1 } Low  {else if $inv->pt->concentration_high == 1 } High   {/if}
                                                        </td>
                                                        <td>
                                                            {if $inv->pt->concentration_range_txt != Null && $inv->pt->concentration_range_txt  != ''}  
                                                            {$inv->pt->concentration_range_txt}
                                                            {/if}  

                                                        </td>
                                                    </tr>
                                                    {/if}


                                                    {if $inv->pt->inr != Null && $inv->pt->inr != ''}  
                                                    <tr style="line-height: 40px; ">
                                                        <td class="wds30" style="vertical-align: top;"><ul> <li style="list-style: disc;font-weight: bold;">I.N.R <span style="float: right">:</span></li> </ul> </td>
                                                        <td class="wds20" style="text-align: center;vertical-align: top;"> 
                                                            {if   $inv->pt->inr_low == 1 ||  $inv->pt->inr_high == 1 }    
                                                            <div class=" wds50 bg-grey "   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                {else}
                                                                <div class=" wds50"   style=" margin-left: 20%; line-height: 150%;margin-top: 5%;">
                                                                    {/if}
                                                                    {$inv->pt->inr}
                                                                </div>  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->inr_invest_units &&  $inv->pt->inr_invest_units != Null   }  
                                                            {$inv->pt->inr_invest_units}
                                                            {/if}  
                                                        </td>
                                                        <td class="wds10" style="vertical-align: top;">
                                                            {if $inv->pt->inr_low == 1 } Low  {else if $inv->pt->inr_high == 1 } High   {/if}
                                                        </td>
                                                        <td>
                                                            {if $inv->pt->inr_range_txt != Null && $inv->pt->inr_range_txt  != ''}  
                                                            {$inv->pt->inr_range_txt}
                                                            {/if}  

                                                        </td>
                                                    </tr>
                                                    {/if}


                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            {if $inv->pt->comment != Null && $inv->pt->comment != ''}  
                            <tr style="line-height: 50px; ">
                                <td colsan="4">
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td><ul> <li style="list-style: disc;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>

                                            <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                                        </tr>
                                    </table>
                                    <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                                        <tr>
                                            <td class="wds65" style="padding-left: 5%;" > 
                                                {$inv->pt->comment}
                                            </td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            {/if} 

                            <!------------------------------------------------------------------------------------------------------------->
                        </table>
                    </td>
                </tr>

                {else if $inv->special_inv_type == 10  }  


                <tr>
                    <td>
                        <ul>
                            <li style="list-style: none;">
                                <span style="text-decoration: underline;font-weight: bold;">
                                    {$inv->invname} 
                                </span>
                            </li>
                        </ul>

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


                            <tr style="line-height: 35px; ">
                                <td class="wds25">
                                    <ul>
                                        <li style="list-style: disc;font-weight: bold;">ABO System <span style="float: right">:</span>  </li>
                                    </ul> 
                                </td>

                                <td style="text-align: left; padding-left: 5%;"> 
                                    {if $inv->aborh.abo > 0 }   {$inv->aborh.abo_value}  {/if}     
                                </td>
                            </tr>

                            <tr style="line-height: 35px; ">
                                <td class="wds25">
                                    <ul>
                                        <li style="list-style: disc;font-weight: bold;">Blood Rh <span style="float: right">:</span>  </li>
                                    </ul> 
                                </td>

                                <td style="text-align: left; padding-left: 5%;"> 
                                    {if $inv->aborh.rh > 0 }   {$inv->aborh.rh_value}  {/if}  
                                </td>
                            </tr>

                        </table>

                    </td>
                </tr>


                {if $inv->aborh.comment != Null && $inv->aborh.comment != ''}  

                <tr style="line-height: 25px; ">
                    <td colsan="4">
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>

                                <td><ul> <li style="text-decoration: underline;font-weight: bold;">  </li> </ul></td>
                            </tr>
                        </table>
                        <table style="width: 98%;margin: 5px auto;margin-left: 5%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds65" style="padding-left: 5%;" > 
                                    {$inv->aborh.comment}
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
                {/if} 


                {else if $inv->special_inv_type == 11  }  

                {foreach  $inv->elements  as $data}
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                            <tr style="line-height: 25px; ">
                                <td class="wds30" style="vertical-align: top;" >
                                    <ul> 
                                        <li style="list-style: disc;font-weight: bold;"> {$data->show_name}   <span style="float: right">:</span> </li>
                                    </ul> 
                                </td>

                                <td class="wds25" style="text-align: center; vertical-align: top;"> 
                                    <div class=" wds50   {if   $data->element_text_low == 1 ||  $data->element_text_high == 1}     bg-grey  {/if}" style=" margin-left: 25%; ">
                                        <span style="float: left;"> {$data->content->element_select_text} </span>
                                        <span style="float: right;">{$data->content->element_text}</span>
                                    </div>  

                                </td>
                                <td class="wds10" style="vertical-align: top;" >
                                    {$data->content->element_text_unit}
                                </td>

                                <td class="wds5" style="vertical-align: top;" >
                                    {if $data->content->element_text_low == 1 } L  {else if $data->content->element_text_high == 1 } H   {/if}
                                </td>
                                <td style="vertical-align: top;" >  
                                    {if $data->content->element_text_range_txt != Null && $data->content->element_text_range_txt  != ''}  
                                    {$data->content->element_text_range_txt}
                                    {/if}  
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>

                {/foreach}
                {if $inv->comment != Null && $inv->comment != ''}  

                <tr>
                    <td>
                        <table style="width: 98%;margin-left: 3%;" cellpadding="2" class="noborder">
                            <tr>
                                <td class="wds17" style="vertical-align: top;"><ul> <li style="list-style: none;font-weight: bold;margin-left: -6%;">Comment :  </li> </ul></td>

                                <td><ul> <li>    {$inv->comment}</li> </ul></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                {/if} 


                {else}  
                <tr>
                    <td>
                        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
                            <tr style="line-height: 30px; ">
                                <td class="wds40" style="vertical-align: top;" >
                                    <ul> 
                                        <li style="list-style: disc;font-weight: bold;">  {$inv->invname}  <span style="float: right">:</span> </li>
                                    </ul> 
                                </td>

                                <td class="wds20" style="text-align: center; vertical-align: top;"> 
                                    <div class=" wds50 {if $inv->low == 1 || $inv->high == 1 } bg-grey  {/if}" style=" margin-left: 25%; ">
                                        {$inv->investresult}  
                                    </div>  

                                </td>
                                <td class="wds10" style="vertical-align: top;" >
                                    {$inv->range->invest_units}
                                </td>

                                <td class="wds5" style="vertical-align: top;" >
                                    {if $inv->low == 1 } L  {else if $inv->high == 1 } H   {/if}
                                </td>
                                <td style="vertical-align: top;" >  
                                    {if $inv->range->range_txt != Null && $inv->range->range_txt  != ''}  
                                    {$inv->range->range_txt}
                                    {/if}  

                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>

                {/if}

            </table>
            {/foreach}


            {assign var="d" value={$d+1}}
            {/foreach}
