<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th> # </th>
            <th> Disease</th>
            <th> Relative </th>
            <th> Notes </th>
        </tr>
    </thead>
    <tbody>
        {assign var=i value=1}
        {foreach $allphfamily as $myallphfamily}
        <tr>
            <td> {$i} </td>
            <td>{$myallphfamily->familydiseasename}</td>
            <td> {$myallphfamily->familyrelativename}</td>
            <td> {$myallphfamily->familynote}</td>
        </tr>
        {capture assign=i}{$i+1}{/capture}
        {/foreach}
</table>