<?php /* Smarty version 2.6.18, created on 2007-06-05 16:42:07
         compiled from courseForm.tpl */ ?>
<?php if ($this->_tpl_vars['course']['id'] > 0): ?>
  <b><?php echo $this->_tpl_vars['course']['name']; ?>
:</b>
  <a href="index.php?site=course&amp;action=info&amp;id=<?php echo $this->_tpl_vars['course']['id']; ?>
">[detaily]</a> |
  <a href="index.php?site=course&amp;action=delete&amp;id=<?php echo $this->_tpl_vars['course']['id']; ?>
">[vymazať]</a><br />
<?php endif; ?>
<div class="note">
  Predmet musí mať vyplnený <b>Názov</b>, ktorý nekoliduje s názvom iného predmetu.
</div>
<?php if ($this->_tpl_vars['error'] != ""): ?>
  <div class="error">
    <?php echo $this->_tpl_vars['error']; ?>

  </div>
<?php endif; ?>
<form action="index.php?site=course<?php echo $this->_tpl_vars['formUrlSuffix']; ?>
" method="post">
<table>
	<tr> 
    <td>Názov</td>
    <td><input type="text" name="name" size="50" maxlength="128" value="<?php echo $this->_tpl_vars['nameV']; ?>
" /></td>
	</tr> 
	<tr> 
    <td>Kód</td>
    <td><input type="text" name="code" size="15" maxlength="15" value="<?php echo $this->_tpl_vars['codeV']; ?>
" /></td>
	</tr> 
	<tr> 
    <td valign="top">Popis</td>
    <td><textarea name="description" rows="10" cols="50"><?php echo $this->_tpl_vars['descriptionV']; ?>
</textarea></td>
	</tr> 
	<tr>
	  <td>Učiteľ</td>
	  <td>
	    <select name="teacher">	     
      <?php $_from = $this->_tpl_vars['teachers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['teacher']):
?>
      	<option value="<?php echo $this->_tpl_vars['teacher']['id']; ?>
"><?php echo $this->_tpl_vars['teacher']['namePrefix']; ?>
 <?php echo $this->_tpl_vars['teacher']['surname']; ?>

        <?php echo $this->_tpl_vars['teacher']['name']; ?>
 <?php echo $this->_tpl_vars['teacher']['nameSuffix']; ?>
</option>
      <?php endforeach; endif; unset($_from); ?>    
	    </select>
	  </td>
	</tr>
	<tr> 
    <td colspan="2"><input type="submit" name="Start" value="<?php echo $this->_tpl_vars['buttonLabel']; ?>
" /></td>
	</tr> 
</table>
</form>

