<table class="table table-striped table-hover table-bordered">
    <thead>
        <tr>
            <th> # </th>
            <th> Operation</th>
            <th> Year </th>
            <th> Surgeon </th>
            <th> Notes </th>
        </tr>
    </thead>
    <tbody>
        {assign var=i value=1}
        {foreach $allphpastgynecological as $myallphpastgynecological}
        <tr>
            <td> {$i} </td>
            <td>{$myallphpastgynecological->operationname}</td>
            <td> {$myallphpastgynecological->gynecologicalyear}</td>
            <td> {$myallphpastgynecological->gynecologicalsurgeon}</td>
            <td> {$myallphpastgynecological->gynecologicalnote}</td>
        </tr>
        {capture assign=i}{$i+1}{/capture}
        {/foreach}
</table>
