{assign var=i value=1}
{foreach $binds as $data}
<tr>
    <td>{$i}</td>
    <td> {$data->employeeid} </td>
    <td>{$data->bindtype}</td>
    <td>{$data->savevalue}</td>
    <td>{$data->binddate}</td>
    <td>{$data->userid}</td>
    <td class="hidden-print">
        <a href="bind.php?do=edit&id={$data->id}" type="button" class="btn btn-default btn-lg editicon"></a>
    </td>
</tr>
{capture assign=i}{$i+1}{/capture}
{/foreach}

{if $i == 1}
<tr>
    <td colspan="7" style="text-align: center;"><label>لا توجد بيانات تطابق البحث  </label></td>
</tr>
{/if}