{assign var=i value=1}
{foreach $drVacations as $vacation }
<tr>
   <th>{$i}</th>
   <td>
      <input type="text" class="form-control datepicker  updateElement" data-id="{$vacation->id}"   readonly
             data-tableName="visits_vacation"   data-colName="day_date"    value="{$vacation->day_date}"  />
   </td>
   <td>
      <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$vacation->id}"  
         data-tableName="visits_vacation"   data-link="{$controllname}"  data-fn="delItem">
         <i class="fa fa-times"></i>Delete </a>
   </td>
</tr>
{capture assign=i}{$i+1}{/capture}
{/foreach}


{literal}
<script>
    $(".datepicker").datepicker();
</script>
{/literal}