{if $case_summary == 1 }

<tr>
    <td class="wds45"> 
        <select  class="form-control  pasthx_type updateElement allupdateselect" data-val="" id="pasthx_type{$itr}" data-itr="{$itr}" select-tableName="phpasthxtypes"  name="pasthx_type" data-colName="pasthx_type" data-id="{$phpasthx_obj->id}" data-tableName="phpasthx" >
            <option value="">choose</option>
            {foreach  $phpasthxtypes as $data}
            <option value="{$data->id}" >{$data->name} </option>
            {/foreach}
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" id="pasthxnote" placeholder="Note" name="pasthxnote" data-colName="pasthxnote"   data-id="{$phpasthx_obj->id}" data-tableName="phpasthx"/>
    </td>
    <td class="wds5"> 
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="{$phpasthx_obj->id}" 
           data-link="case_summary"  data-fn="del" data-tableName="phpasthx" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>
{else}

{if $ProgramesettingData->displaydoctorname eq 1}
<div class="row">
    <div class="col-md-1">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <label for="form_control_1">{$username}</label>
        </div>
    </div>
</div>
{/if}

<div class="row clinick">

    <div class="col-md-4">
        <div class="form-group">
            <label class="control-label col-md-3 ls2">Type</label>
            <select  class="form-control  pasthx_type updateElement allupdateselect" data-val="" id="pasthx_type{$itr}" data-itr="{$itr}" select-tableName="phpasthxtypes"  name="pasthx_type" data-colName="pasthx_type" data-id="{$phpasthx_obj->id}" data-tableName="phpasthx" >
                <option value="">choose</option>
                {foreach  $phpasthxtypes as $data}
                <option value="{$data->id}" >{$data->name} </option>
                {/foreach}
                <option value="-2" class="deleteoptincompo">Delete</option>
            </select>
        </div>
    </div>
    <div class="col-md-8">
        <div class="form-group form-md-line-input form-md-floating-label has-info">
            <button type="button"  style="    top: 20px;" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$phpasthx_obj->id}" data-tableName="phpasthx"><i class="fa fa-close"></i></button>
            <input type="text" class="amrpop form-control updateElement" id="pasthxnote" placeholder="Note" name="pasthxnote" data-colName="pasthxnote"   data-id="{$phpasthx_obj->id}" data-tableName="phpasthx"/>
            <label for="pasthxnote">Notes</label>
        </div>
    </div>


</div>

<div class="clearfix"></div>

{/if}
