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

  </div>
<?php endif; ?>
<table>
<tr>
<td>
<h2><?php echo $this->_tpl_vars['specialization']['name']; ?>
</h2>
<b>garant:</b> 
<?php if ($this->_tpl_vars['garant']): ?>
<a href="index.php?site=teacher&amp;action=info&amp;id=<?php echo $this->_tpl_vars['garant']['id']; ?>
"><?php echo $this->_tpl_vars['garant']['namePrefix']; ?>
 <?php echo $this->_tpl_vars['garant']['name']; ?>

 <?php echo $this->_tpl_vars['garant']['surname']; ?>
 <?php echo $this->_tpl_vars['garant']['nameSuffix']; ?>
</a>
<?php else: ?>
  Predmet nemá prideleného garanta.
<?php endif; ?>
<br />
<br />
<a href="index.php?site=spec&amp;action=edit&amp;id=<?php echo $this->_tpl_vars['specialization']['id']; ?>
">[editovať]</a> |
<a href="index.php?site=spec&amp;action=delete&amp;id=<?php echo $this->_tpl_vars['specialization']['id']; ?>
">[vymazať]</a><br />
<br />
<?php unset($this->_sections['year']);
$this->_sections['year']['name'] = 'year';
$this->_sections['year']['loop'] = is_array($_loop=8) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['year']['start'] = (int)0;
$this->_sections['year']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['year']['show'] = true;
$this->_sections['year']['max'] = $this->_sections['year']['loop'];
if ($this->_sections['year']['start'] < 0)
    $this->_sections['year']['start'] = max($this->_sections['year']['step'] > 0 ? 0 : -1, $this->_sections['year']['loop'] + $this->_sections['year']['start']);
else
    $this->_sections['year']['start'] = min($this->_sections['year']['start'], $this->_sections['year']['step'] > 0 ? $this->_sections['year']['loop'] : $this->_sections['year']['loop']-1);
if ($this->_sections['year']['show']) {
    $this->_sections['year']['total'] = min(ceil(($this->_sections['year']['step'] > 0 ? $this->_sections['year']['loop'] - $this->_sections['year']['start'] : $this->_sections['year']['start']+1)/abs($this->_sections['year']['step'])), $this->_sections['year']['max']);
    if ($this->_sections['year']['total'] == 0)
        $this->_sections['year']['show'] = false;
} else
    $this->_sections['year']['total'] = 0;
if ($this->_sections['year']['show']):

            for ($this->_sections['year']['index'] = $this->_sections['year']['start'], $this->_sections['year']['iteration'] = 1;
                 $this->_sections['year']['iteration'] <= $this->_sections['year']['total'];
                 $this->_sections['year']['index'] += $this->_sections['year']['step'], $this->_sections['year']['iteration']++):
$this->_sections['year']['rownum'] = $this->_sections['year']['iteration'];
$this->_sections['year']['index_prev'] = $this->_sections['year']['index'] - $this->_sections['year']['step'];
$this->_sections['year']['index_next'] = $this->_sections['year']['index'] + $this->_sections['year']['step'];
$this->_sections['year']['first']      = ($this->_sections['year']['iteration'] == 1);
$this->_sections['year']['last']       = ($this->_sections['year']['iteration'] == $this->_sections['year']['total']);
?>
  <?php if ($this->_tpl_vars['studentCount'][$this->_sections['year']['index']] > 0): ?>
    <b>Zoznam študentov v <?php echo $this->_sections['year']['index']+1; ?>
.roku štúdia:</b><br/>
    <br />
    <?php $_from = $this->_tpl_vars['students'][$this->_sections['year']['index']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['student']):
?>
      <a href="index.php?site=student&amp;action=info&amp;id=<?php echo $this->_tpl_vars['student']['id']; ?>
"><?php echo $this->_tpl_vars['student']['namePrefix']; ?>

       <?php echo $this->_tpl_vars['student']['name']; ?>
 <?php echo $this->_tpl_vars['student']['surname']; ?>
 <?php echo $this->_tpl_vars['student']['nameSuffix']; ?>
</a><br />
    <?php endforeach; endif; unset($_from); ?>
    <br />
  <?php endif; ?>
<?php endfor; endif; ?>
</td>
</tr>
</table>
