<?php /* Smarty version 2.6.18, created on 2007-06-05 16:58:10
         compiled from courseDetails.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['course']['name']; ?>
</h2>
<table border="0">
  <tr>
    <td width="80px"><b>Učiteľ:</b></td>
    <td> 
<?php if ($this->_tpl_vars['teacher']): ?>
<a href="index.php?site=teacher&amp;action=info&amp;id=<?php echo $this->_tpl_vars['teacher']['id']; ?>
"><?php echo $this->_tpl_vars['teacher']['namePrefix']; ?>
 <?php echo $this->_tpl_vars['teacher']['name']; ?>

 <?php echo $this->_tpl_vars['teacher']['surname']; ?>
 <?php echo $this->_tpl_vars['teacher']['nameSuffix']; ?>
</a>
<?php else: ?>
  Predmet nemá prideleného učiteľa.
<?php endif; ?>
    </td>
  </tr>
  <tr>
    <td><b>Kód:</b></td>
    <td><?php echo $this->_tpl_vars['course']['code']; ?>
</td>
  </tr>
</table>
<br />
<?php if ($this->_tpl_vars['course']['description'] != ""): ?>
<br />
<b>informácie o predmete:</b><br />
<?php echo $this->_tpl_vars['course']['description']; ?>
<br />
<?php endif; ?>
<br />
<a href="index.php?site=course&amp;action=edit&amp;id=<?php echo $this->_tpl_vars['course']['id']; ?>
">[editovať]</a> |
<a href="index.php?site=course&amp;action=delete&amp;id=<?php echo $this->_tpl_vars['course']['id']; ?>
">[vymazať]</a><br />
<br />
<br />
<b>Zoznam študentov:</b><br />
<?php if (! $this->_tpl_vars['students']): ?>
  <br />
  Žiaden študent nemá priradený tento predmet.
<?php else: ?>
<br />
<form action="index.php?site=course&amp;action=remove_students&amp;id=<?php echo $this->_tpl_vars['course']['id']; ?>
" method="post">
  <table class="default spacy">
    <tr class="head">
      <td colspan="2">Meno</td>
    </tr>
<?php $_from = $this->_tpl_vars['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['student']):
?>
    <tr>
      <td style="width: 400px"><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></td>
      <td><input type="checkbox" name="<?php echo $this->_tpl_vars['student']['id']; ?>
" /></td>
    </tr>
<?php endforeach; endif; unset($_from); ?>
  	<tr class="head"> 
      <td colspan="2" align="right"><input type="submit" name="remove" value="Odstrániť" /></td>
  	</tr>
  </table>
</form>
<?php endif; ?>
</td>
</tr>
</table>
