{if $type == "diadnosis"}
<tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$diag->id}" data-colName="date" data-tableName="followupdiagnosis" value="{$diag->date}" readonly/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="2" data-id="{$diag->id}" data-colName="diagnosis" data-tableName="followupdiagnosis" placeholder="Enter Diagnosis">{$diag->diagnosis}</textarea>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$diag->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="followupdiagnosis">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
</tr>


{else if $type == "diadnosisimple"}
<tr>
    <td>
        <input type="text" class="form-control datepicker updateElement" data-id="{$diag->id}" data-colName="date" data-tableName="simplediagnosis" value="{$diag->date}" readonly/>
    </td>
    <td>
        <textarea class="form-control updateElement" rows="2" data-id="{$diag->id}" data-colName="diagnosis" data-tableName="simplediagnosis" placeholder="Enter Diagnosis">{$diag->diagnosis}</textarea>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$diag->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="simplediagnosis">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>


{else if $type == "exam"}
<tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$diag->id}" data-colName="date" data-tableName="followupexam" value="{$diag->date}" readonly/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="2" data-id="{$diag->id}" data-colName="exam" data-tableName="followupexam" placeholder="Enter Exam Result">{$diag->exam}</textarea>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$diag->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="followupexam">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr>
{else if $type == "inv"}
 <tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement" data-id="{$diag->id}" data-colName="date" data-tableName="followupinvest" value="{$diag->date}" readonly/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="2" data-id="{$diag->id}" data-colName="invest" data-tableName="followupinvest" placeholder="Enter Investigations">{$diag->invest}</textarea>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$diag->id}" style=" float: left;" href="#" data-link="followup" data-fn="del" data-tableName="followupinvest">
                                            <i class="fa fa-close"></i>
                                        </a>
                                    </td>
                                </tr>
{else if $type == "visit"}
<tr>
                                    <td>
                                        <input type="text" class="form-control datepicker updateElement calcWeeksF" data-id="{$diag->id}" data-colName="date" data-tableName="followupvisit" value="{$diag->date}" readonly/>
                                    </td>
                                    <td>
                                        {if $diag->dateFlag == 1}
                                        <label id="ga{$diag->id}" style="color: red ;">{$diag->ga}</label>
                                        {else}
                                        <label id="ga{$diag->id}">{$diag->ga}</label>
                                        {/if}

                                    </td>
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$diag->id}" data-colName="wt" data-tableName="followupvisit" value="{$diag->wt}"/>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control bp_mask updateElement" data-id="{$diag->id}" data-colName="bp" data-tableName="followupvisit" value="{$diag->bp}"/>
                                    </td>
                                    
                                    <td>
                                        <input type="text" class="form-control updateElement" data-id="{$diag->id}" data-colName="us" data-tableName="followupvisit" value="{$diag->us}"/>
                                    </td>
                                    <td>
                                        <textarea class="form-control updateElement" rows="1" data-id="{$diag->id}" data-colName="notes" data-tableName="followupvisit" placeholder="Enter more text">{$diag->notes}</textarea>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$diag->id}" style=" float: left;" href="#" data-link="antenalvisit" data-fn="del" data-tableName="followupvisit">
                                            <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
        });

         $(".bp_mask").inputmask("999/999", {
                    autoUnmask: true});
</script>
{/literal}
