{if $teacherCount > 0}
{if $actionInfo != ""}
  <div class="note">
    {$actionInfo}
  </div>
{/if}
<div class="note">
  Zoznam učiteľov môžete utriediť podľa <b>Mena</b> alebo <b>Čísla ITIC</b>.
</div>
<table class="default spacy" width="100%">
  <tr class="head">
    <td colspan="2">
      <a href="index.php?site=teacher&amp;action=list&amp;order=name{if $order == "name"}D{/if}">Meno</a>
    </td>
    <td>
      <a href="index.php?site=teacher&amp;action=list&amp;order=itic{if $order == "itic"}D{/if}">ITIC</a>
    </td>
    <td colspan="3">Akcia</td>
  </tr>
  {foreach from=$users item=user name=row}
  <tr id="item{$smarty.foreach.row.index}" class="{if $smarty.foreach.row.index%2 == 0}row1{else}row2{/if}" 
      onmouseover="document.getElementById('item{$smarty.foreach.row.index}').style.background='#feda87'"
      onmouseout="document.getElementById('item{$smarty.foreach.row.index}').style.background='{if $smarty.foreach.row.index%2 == 0}#f8f8f8{else}#e8e8e8{/if}'">  
    <td class="namePrefix">{$user.namePrefix}&nbsp;</td>
    <td class="name"><b>{$user.surname}</b> {$user.name} {$user.nameSuffix}</td>
    <td align="center" style="border-left-width: 0px">{$user.ISIC}</td>
    <td class="action"><a href="index.php?site=teacher&amp;action=info&amp;id={$user.id}">[detaily]</a></td>
    <td class="action"><a href="index.php?site=teacher&amp;action=edit&amp;id={$user.id}">[editovať]</a></td>
    <td class="action"><a href="index.php?site=teacher&amp;action=delete&amp;id={$user.id}">[zmazať]</a></td>
  </tr>
  {/foreach}
  <tr class="head">
    <td colspan="6">&nbsp;</td>
  </tr>
</table>
<br />
{else}
  <div class="note">
    V databáze nie sú žiadny učitelia.<br/>
    <br/>
    Učiteľov môžete pridať <a href="index.php?site=teacher&amp;action=add">manuálne</a>, alebo ich získať 
    <a href="index.php?site=import&amp;action=import_q">importovaním</a>.
  </div>
{/if}
