
<input type="hidden" id="controllName" value="visits"/>
<input type="hidden" id="patientid" name="patientid" value="{$patientid}"/>
<input type="hidden" id="colName" name="colName" value="{$colName}"/>
<input type="hidden" id="mainId" name="mainId" value="{$mainId}"/>
<input type="hidden" id="tablename" name="tablename" value="{$maintableName}"/>


<table >
    <thead>
        <tr>
            <th><center>Name</center></th>
<th><center>Value</center></th>
<th>Delete</th>
</tr>
</thead>
{assign var=i value=1}
{foreach $alldata as $mydata}
<tr>
    <td style="width: 50%">

        <input type="text" class="form-control updateSelectModel"  id="allnewitem_name{$i}" data-itr="{$i}" data-id="{$mydata->id}" name="newamount_name" value='{$mydata->title}' >
    </td>
    <td style="width: 50%"><input type="text" class="form-control updateSelectModel"  id="allnewitem_value{$i}" data-itr="{$i}" data-id="{$mydata->id}" name="newamount_name" value='{$mydata->detectionval}' ></td>
    <td>
        <a href="#" class="btn red fleft deleteElementmodel" data-id="{$mydata->id}" data-tableName="{$maintableName}" >
            <i class="fa fa-times" ></i>
        </a>

    </td>
</tr>

{capture assign=i}{$i+1}{/capture}
{/foreach}

</table>

