{if $action==="browseList"}
  <h3>Pridať proktora</h3>
  <div class="indent">
    <table>
    {foreach from=$listOfProctors item=menuItem}
      <tr>
        <td>{$menuItem.name}</td>
        <td><a href="index.php?site=userInformation&amp;action=showProctor&amp;userID={$menuItem.id}&amp;menuSet=1&amp;menuIndex=2">[detaily]</a></td>
        <td><a href="index.php?site=proctors&amp;action=addProctor&amp;id={$menuItem.id}">[pridať]</a></td>
      </tr>
    {/foreach}
    </table>
    <br />
    <a href="index.php?site=proctors">Späť</a>
  </div>
{else}
  <h3>Proktori</h3>
  <div class="indent">
    <table>
    {foreach from=$listOfProctors item=menuItem}
      <tr>
        <td>{$menuItem.name}</td>
        <td><a href="index.php?site=userInformation&amp;action=showProctor&amp;userID={$menuItem.id}&amp;menuSet=1&amp;menuIndex=2">[detaily]</a></td>
        <td><a href="index.php?site=proctors&amp;action=deleteProctor&amp;id={$menuItem.id}">[odstrániť]</a></td>
      </tr>
    {/foreach}
    </table>
    <br />
    <a href="index.php?site=proctors&amp;action=browseList">Pridať proktora</a>
  </div>
{/if}

