<a href="index.php?site=student&amp;action=search_f">[Nové hľadanie]</a><br />
{if $userCount > 0}
<br />
<table class="default spacy">
  <tr class="head">
    <td>#</td>
    <td colspan="2">Meno</td>
    <td>Odbor</td>
    <td>Rok štúdia</td>
    <td>ISIC</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>{$smarty.foreach.row.index+1}.</td>
    <td class="namePrefix">{$user.namePrefix}&nbsp;</td>
    <td class="name"><b>{$user.surname}</b> {$user.name} {$user.nameSuffix}</td>
    <td>
      <a href="index.php?site=spec&action=info&id={$user.spec.id}">{$user.spec.name}</a>
    </td>
    <td align="center" style="padding-left: 0.5em; padding-right: 0.5em">{$user.year}.</td>
    <td style="padding-left: 0.5em; padding-right: 0.5em">{$user.ISIC}</td>
    <td class="action"><a href="index.php?site=student&action=info&id={$user.id}">[detaily]</a></td>
    <td class="action"><a href="index.php?site=student&action=edit&id={$user.id}">[editovať]</a></td>
    <td class="action"><a href="index.php?site=student&action=delete&id={$user.id}">[zmazať]</a></td>
  </tr>
  {/foreach}
  <tr class="head">
    <td colspan="9">&nbsp;</td>
  </tr>
</table>
{else}
  <div class="note">Žiaden študent nevyhovuje filtru.</div>
{/if}
