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

  </div>
<?php endif; ?>
<form action="index.php?site=spec<?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>Garant</td>
	  <td>
	    <select name="garant">	     
      <?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>

