{if $case_summary == 1 }

<tr>
    <td class="wds45">
        <select  class="form-control  gynecologicaloperation  updateElement allupdateselect" data-val="" id="gynecologicaloperation{$itr}" data-itr="{$itr}" select-tableName="phpastgynecologicaloperation" name="gynecologicaloperation" data-colName="gynecologicaloperation" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological" >
            <option value="">choose</option>
            {foreach  $allphpastgynecologicaloperation as $myallphpastgynecologicaloperation}
            <option value="{$myallphpastgynecologicaloperation->id}" >{$myallphpastgynecologicaloperation->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo" >Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" name="gynecologicalnote" data-colName="gynecologicalnote" placeholder="Note" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological" />
    </td>
    <td  class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phpastgynecological_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phpastgynecological" 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  gynecologicaloperation  updateElement allupdateselect" data-val="" id="gynecologicaloperation{$itr}" data-itr="{$itr}" select-tableName="phpastgynecologicaloperation" name="gynecologicaloperation" data-colName="gynecologicaloperation" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological" >
                    <option value="">choose</option>
                    {foreach  $allphpastgynecologicaloperation as $myallphpastgynecologicaloperation}
                    <option value="{$myallphpastgynecologicaloperation->id}" >{$myallphpastgynecologicaloperation->name} </option>
                    {/foreach}
                    <option value="-2" class="deleteoptincompo" >Delete</option>
                </select>
            </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" placeholder="Year" name="gynecologicalyear" data-colName="gynecologicalyear" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological"  />
                <!--                <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" placeholder="Surgeon" name="gynecologicalsurgeon" data-colName="gynecologicalsurgeon"   data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological"  />
                <!--                <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="gynecologicalnote" data-colName="gynecologicalnote" placeholder="Note" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological" />
                </div>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$phpastgynecological_obj->id}" data-tableName="phpastgynecological"><i class="fa fa-close"></i></button>
            </div>
        </div>

    </div>
</div>

{/if}