{if $type == "diadnosis"}
    <tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName="infertilitydiagnosis" value="{$record->date}" readonly/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="2" data-id="{$record->id}" data-colName="diagnosiswife" data-tableName="infertilitydiagnosis" placeholder="Enter more text">{$record->diagnosiswife}</textarea>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="2" data-id="{$record->id}" data-colName="diagnosishusband" data-tableName="infertilitydiagnosis" placeholder="Enter more text">{$record->diagnosishusband}</textarea>
                                    </td>

                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$record->id}" data-tableName="infertilitydiagnosis" style=" float: left;" href="#" data-link="infertility" data-fn="del">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr>
{else if $type == "lmp"}
    <tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName="infertilitylmp" value="{$record->date}" readonly/>
                                    </td>
                                </tr>
{else if $type == "gyna"}

<tr class="gyna{$record->id}">
    <td style="width: 6%; background-color: #ddd;display: none;">
        Date
    </td>
    <td colspan="2" style="width: 12%; display: none;">
        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName="infertilitygyna" value="{$record->date}" readonly/>
    </td>
    <td colspan="2" style="width: 8%;">
        Vagina
    </td>
    <td colspan="14" style="width: 92%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilitygyna" data-colName="vagina" data-id="{$record->id}" value="{$record->vagina}"/>
    </td>
</tr>
<tr class="gyna{$record->id}">
    <td colspan="2" style="width: 8%;">
        Uterus
    </td>
    <td colspan="5" style="width: 39%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilitygyna" data-colName="exam" data-id="{$record->id}" value="{$record->exam}"/>
    </td>
    <td colspan="3" style="width: 14%;">
        Uterus (Cervix)
    </td>
    <td colspan="6" style="width: 39%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilitygyna" data-colName="sounding" data-id="{$record->id}" value="{$record->sounding}"/>
    </td>
</tr>
<tr class="gyna{$record->id}">
    <td colspan="2" style="width: 8%;">
        Adenxae
    </td>
    <td colspan="13" style="width: 90%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilitygyna" data-colName="adenxae" data-id="{$record->id}" value="{$record->adenxae}"/>
    </td>
    <td style="width: 2%;">
        <a class="btn grey-cascade btn-xs deletemsgEXDiv" data-divName="gyna{$record->id}" data-id="{$record->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="infertilitygyna">
            <i class="fa fa-close"></i>
        </a>
    </td>

</tr>
{else if $type == "invest"}
<tr class="invest{$record->id}">
    <td style="width: 6%; background-color: #ddd;">
        Date
    </td>
    <td colspan="2" style="width: 12%;">
        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName="infertilityinvest" value="{$record->date}" readonly/>
    </td>
    <td style="width: 6%;">
        Semen
    </td>
    <td colspan="12" style="width: 76%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="semen" data-id="{$record->id}" value="{$record->semen}"/>
    </td>

</tr>

<tr class="invest{$record->id}">
    <td style="width: 6%;">
        FSH
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="fsh" data-id="{$record->id}" value="{$record->fsh}"/>
    </td>

    <td style="width: 6%;">
        ANH
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="pct" data-id="{$record->id}" value="{$record->pct}"/>
    </td>

</tr>

<tr class="invest{$record->id}">
    <td style="width: 6%;">
        LH
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="lh" data-id="{$record->id}" value="{$record->lh}"/>
    </td>

    <td style="width: 6%;">
        F.Tests
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="us" data-id="{$record->id}" value="{$record->us}"/>
    </td>


</tr>

<tr class="invest{$record->id}">
    <td style="width: 6%;">
        Prolact.
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="prolactin" data-id="{$record->id}" value="{$record->prolactin}"/>
    </td>

    <td style="width: 6%;">
        T.Tests
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="thyr" data-id="{$record->id}" value="{$record->thyr}"/>
    </td>

</tr>
<tr class="invest{$record->id}">
    <td style="width: 6%;">
        TSH
    </td>
    <td  colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="peg" data-id="{$record->id}" value="{$record->peg}"/>
    </td>
    <td style="width: 6%;">
        HSG
    </td>
    <td colspan="7" style="width: 44%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="hsg" data-id="{$record->id}" value="{$record->hsg}"/>
    </td>

</tr>

<tr class="invest{$record->id}">
    <td  colspan="2"style="width: 11%;">
        Others
    </td>
    <td colspan="14" style="width: 89%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="others" data-id="{$record->id}" value="{$record->others}"/>
    </td>
</tr>

<tr class="invest{$record->id}">
    <td  colspan="2"style="width: 11%;">
        La Paroscopy
    </td>
    <td colspan="13" style="width: 87%;">
        <input type="text" class="form-control updateElement"   data-tableName="infertilityinvest" data-colName="laparoscopy" data-id="{$record->id}" value="{$record->laparoscopy}"/>
    </td>
    <td style="width: 2%;">
        <a class="btn grey-cascade btn-xs deletemsgEXDiv" data-divName="invest{$record->id}" data-id="{$record->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="infertilityinvest">
            <i class="fa fa-close"></i>
        </a>
    </td>

</tr>
{else if $type == "note"}
    <tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName=" infertilitynotes" value="{$record->date}" readonly/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="1" data-id="{$record->id}" data-colName="note" data-tableName="infertilitynotes" placeholder="Enter more text">{$record->note}</textarea>
                                    </td>

                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$record->id}" style=" float: left;" data-tableName="infertilitynotes" href="#" data-link="infertility" data-fn="del">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr>
{/if}


{literal}
<script type="text/javascript" >        
        $('.datepickertoday').datepicker('setDate', '+0');
        $(".datepicker").datepicker({
            todayBtn: "linked",
            autoclose: true,
            todayHighlight: true,
            format: 'yy-mm-dd',
            isRTL: true
        });
</script>
{/literal}
