<?php /* Smarty version 2.6.18, created on 2007-06-05 16:47:31
         compiled from coursesSearch.tpl */ ?>
<div class="note">
Prázdne polia neovplyvnia výsledky vyhľadávania. Stačí uviesť prefix hodnoty, 
podľa ktorej sa bude vyhľadávať v databáze užívateľov.<br />
</div>
<br />
<form action="index.php?site=course&amp;action=do_search" method="post">
<table>
	<tr> 
    <td>Názov</td>
    <td><input type="text" name="name" size="20" maxlength="20" value="" /></td>
	</tr> 
	<tr> 
    <td>Kód</td>
    <td><input type="text" name="code" size="15" maxlength="15" value="" /></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']['name']; ?>

 <?php echo $this->_tpl_vars['teacher']['surname']; ?>
 <?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="Hľadať" /></td>
	</tr> 
</table>
</form>
