<?php /* Smarty version 2.6.18, created on 2007-06-06 00:20:27
         compiled from studentSearchResult.tpl */ ?>
<a href="index.php?site=student&amp;action=search_f">[Nové hľadanie]</a><br />
<?php if ($this->_tpl_vars['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>
  <?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['row'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['row']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['user']):
        $this->_foreach['row']['iteration']++;
?>
  <tr id="item<?php echo ($this->_foreach['row']['iteration']-1); ?>
" class="<?php if (($this->_foreach['row']['iteration']-1)%2 == 0): ?>row1<?php else: ?>row2<?php endif; ?>" 
      onmouseover="document.getElementById('item<?php echo ($this->_foreach['row']['iteration']-1); ?>
').style.background='#feda87'"
      onmouseout="document.getElementById('item<?php echo ($this->_foreach['row']['iteration']-1); ?>
').style.background='<?php if (($this->_foreach['row']['iteration']-1)%2 == 0): ?>#f8f8f8<?php else: ?>#e8e8e8<?php endif; ?>'">  
    <td><?php echo ($this->_foreach['row']['iteration']-1)+1; ?>
.</td>
    <td class="namePrefix"><?php echo $this->_tpl_vars['user']['namePrefix']; ?>
&nbsp;</td>
    <td class="name"><b><?php echo $this->_tpl_vars['user']['surname']; ?>
</b> <?php echo $this->_tpl_vars['user']['name']; ?>
 <?php echo $this->_tpl_vars['user']['nameSuffix']; ?>
</td>
    <td>
      <a href="index.php?site=spec&action=info&id=<?php echo $this->_tpl_vars['user']['spec']['id']; ?>
"><?php echo $this->_tpl_vars['user']['spec']['name']; ?>
</a>
    </td>
    <td align="center" style="padding-left: 0.5em; padding-right: 0.5em"><?php echo $this->_tpl_vars['user']['year']; ?>
.</td>
    <td style="padding-left: 0.5em; padding-right: 0.5em"><?php echo $this->_tpl_vars['user']['ISIC']; ?>
</td>
    <td class="action"><a href="index.php?site=student&action=info&id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[detaily]</a></td>
    <td class="action"><a href="index.php?site=student&action=edit&id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[editovať]</a></td>
    <td class="action"><a href="index.php?site=student&action=delete&id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[zmazať]</a></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
  <tr class="head">
    <td colspan="9">&nbsp;</td>
  </tr>
</table>
<?php else: ?>
  <div class="note">Žiaden študent nevyhovuje filtru.</div>
<?php endif; ?>
