{assign var=i value=1}
{foreach $clinics as $row}
<tr>
    <td> {$i}</td>
    <td>
        <input type="text" class="form-control updateElement" data-id="{$row.id}" 
               data-colName="name" data-tableName="clinic_rooms" value="{$row.name}" 
               data-toggle="popover" data-trigger="hover" data-placement="bottom" 
               data-content="{$row.name}"/>
    </td>
    <td>
        <input type="text" class="form-control updateElement" data-id="{$row.id}" 
               data-colName="clinic_no" data-tableName="clinic_rooms" value="{$row.clinic_no}" 
               data-toggle="popover" data-trigger="hover" data-placement="bottom" 
               data-content="{$row.clinic_no}"/>
    </td>
    <td>
        <input type="checkbox" data-colName="today_list" data-tableName="clinic_rooms"   
               value="1"  class="form-control updateElementCheck" 
               data-id="{$row.id}"  {if $row.today_list == 1}  checked   {/if} >
    </td>
</tr>
{capture assign=i}{$i+1}{/capture}
{/foreach}