{if $case_summary == 1 }
<tr>
    <td class="wds45">
        <select  class="form-control  surgicaloperation updateElement allupdateselect" data-val="" id="surgicaloperation{$itr}" data-itr="{$itr}"  name="surgicaloperation" data-colName="surgicaloperation" select-tableName="phpastsurgicaloperation" data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical" >
            <option value="">choose</option>
            {foreach  $allphpastsurgicaloperation as $myallphpastsurgicaloperation}
            <option value="{$myallphpastsurgicaloperation->id}" >{$myallphpastsurgicaloperation->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo" >Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" 
               name="surgicalnote" data-colName="surgicalnote" placeholder="Note" 
               data-id="{$myallpastsurgical->id}" data-tableName="phpastsurgical" 
               value="{$myallpastsurgical->surgicalnote}"/>
    </td>
    <td class="wds10">
        <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
               data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical"  
               data-colName="for_husband"   
               {if $phpastsurgical_obj->for_husband  == 1 } checked {/if}>
    </td>
    <td class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phpastsurgical_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phpastsurgical" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>

{else}
<div>
    {if $ProgramesettingData->displaydoctorname eq 1}
    <div class="row ltr" >
        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <label class="control-label col-md-2 ">{$username}</label>
            </div>
        </div>
    </div>
    {/if}
    <div class="row ltr" >
        <div class="col-md-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Operation</label>-->
                <select  class="form-control  surgicaloperation updateElement allupdateselect" data-val="" id="surgicaloperation{$itr}" data-itr="{$itr}"  name="surgicaloperation" data-colName="surgicaloperation" select-tableName="phpastsurgicaloperation" data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical" >
                    <option value="">choose</option>
                    {foreach  $allphpastsurgicaloperation as $myallphpastsurgicaloperation}
                    <option value="{$myallphpastsurgicaloperation->id}" >{$myallphpastsurgicaloperation->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo" >Delete</option>
                </select>
            </div>
        </div>

        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control updateElement"  name="phsurgicalyear" data-colName="phsurgicalyear" placeholder="Year" data-colName = "phsurgicalyear" data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical" />
                <!--<label for="Year">Year</label>-->
            </div>
        </div>


        <div class="col-md-2">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="text" class="form-control updateElement"  name="phsurgicalsurgeon" data-colName="phsurgicalsurgeon" placeholder="Surgeon" data-colName = "phsurgicalsurgeon" data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical" />
                <!--<label for="surgeon">Surgeon</label>-->
            </div>
        </div>

        <div class="col-md-4">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <div class="form-group form-md-line-input form-md-floating-label has-info">
                    <input type="text" class="amrpop form-control updateElement" name="surgicalnote" data-colName="surgicalnote" placeholder="Note" data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical"/>
                </div>
            </div>
        </div>


        <div class="col-md-1" style="padding-left: 3%;" >
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
                       data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical"  
                       data-colName="for_husband"   
                       {if $phpastsurgical_obj->for_husband  == 1 } checked {/if}>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" 
                        data-id="{$phpastsurgical_obj->id}" data-tableName="phpastsurgical">
                    <i class="fa fa-close"></i></button>
            </div>
        </div>

    </div>
</div>

{/if}