<?php /* Smarty version 2.6.18, created on 2007-06-06 00:17:15
         compiled from teacherList.tpl */ ?>
<?php if ($this->_tpl_vars['teacherCount'] > 0): ?>
<?php if ($this->_tpl_vars['actionInfo'] != ""): ?>
  <div class="note">
    <?php echo $this->_tpl_vars['actionInfo']; ?>

  </div>
<?php endif; ?>
<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<?php if ($this->_tpl_vars['order'] == 'name'): ?>D<?php endif; ?>">Meno</a>
    </td>
    <td>
      <a href="index.php?site=teacher&amp;action=list&amp;order=itic<?php if ($this->_tpl_vars['order'] == 'itic'): ?>D<?php endif; ?>">ITIC</a>
    </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 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 align="center" style="border-left-width: 0px"><?php echo $this->_tpl_vars['user']['ISIC']; ?>
</td>
    <td class="action"><a href="index.php?site=teacher&amp;action=info&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[detaily]</a></td>
    <td class="action"><a href="index.php?site=teacher&amp;action=edit&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[editovať]</a></td>
    <td class="action"><a href="index.php?site=teacher&amp;action=delete&amp;id=<?php echo $this->_tpl_vars['user']['id']; ?>
">[zmazať]</a></td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
  <tr class="head">
    <td colspan="6">&nbsp;</td>
  </tr>
</table>
<br />
<?php 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>
<?php endif; ?>
