
<table cellspacing="10" width="100%" id="dtAddTbl">
    <thead>
        <tr>
            <th>Name</th>
            <th>Delete</th>
        </tr>
    </thead>
    {assign var=i value=1}
    {foreach $allData as $data}
    <tr>
        <td style="width: 100%">
            {$data->name}
        </td>
        <td>
            <a class="fa fa-times btn red fleft delItem"  data-id="{$data->id}" select-tablename="{$selectTableName}"  select-selectId="{$selectId}" ></a>
            </a>
        </td>
    </tr>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}


</table>
