<table>
    <caption>
        Semen analysis    <button type="button" class="btn btn-xs blue addInvRow" id="invsemen" data-tableName="semen" 
                                  data-hus="1" data-itr="{$semen_husCount}"><i class="fa fa-plus"></i> </button>
    </caption>
    <tbody id="semenHusDiv">
        {if $semen_husCount > 0 }   
        <tr>
            <th class="wds8" rowspan="2"> Date  </th>  
            <th class="wds8" rowspan="2"> Total count </th>
            <th class="wds8" rowspan="2"> Concentration  </th>  
            <th class="wds16" colspan="2"> Mobility  </th>  
            <th class="wds8" rowspan="2"> Normal  Forms  </th> 
            <th class="wds8" rowspan="2"> Abnormal Forms  </th> 
            <th class="wds2" rowspan="2">   </th> 
        </tr>
        <tr>
            <th class="wds8"> Total  </th>  
            <th class="wds8"> Progressive  </th>  
        </tr>
        {/if}

        {foreach $semen_hus as $semen}
        <tr> 
            <td>
                <input type="text" class="form-control datepicker updateElement txtc" 
                       data-tableName="semen" data-colName="sdate" data-id="{$semen->id}" value="{$semen->sdate}"/>
            </td> 
            <td>
                <input type="text" class="form-control updateElement" 
                       data-tableName="semen" data-colName="count" data-id="{$semen->id}" value="{$semen->count}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="semen"
                       data-colName="concentration" data-id="{$semen->id}" value="{$semen->concentration}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="semen"
                       data-colName="motilityab" data-id="{$semen->id}" value="{$semen->motilityab}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="semen"
                       data-colName="motilitya" data-id="{$semen->id}" value="{$semen->motilitya}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="semen"
                       data-colName="normal" data-id="{$semen->id}" value="{$semen->normal}"/>
            </td>
            <td>
                <input type="text" class="form-control updateElement"  data-tableName="semen"
                       data-colName="abnormal" data-id="{$semen->id}" value="{$semen->abnormal}"/>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$semen->id}" 
                   data-link="{$controllname}"  data-fn="del" data-tableName="semen" data-colName="del">
                    <i class="fa fa-times"></i> </a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
