<?php /* Smarty version 2.6.18, created on 2007-06-03 15:12:33
         compiled from courseImportResult.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'counter', 'courseImportResult.tpl', 6, false),)), $this); ?>
<div class="note">
  <b>Poznámka</b><br />
  Stav predmetu môže byť <i>upravený</i> ak predmet už existuje v databáze, alebo
  <i>vytvorený</i> v prípade, že predmet bol práve vytvorený.
</div>
<?php echo smarty_function_counter(array('start' => 0,'skip' => 1,'print' => false), $this);?>

<table class="default spacy">
<?php $_from = $this->_tpl_vars['importResult']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['result'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['result']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['result']):
        $this->_foreach['result']['iteration']++;
?>
<tr class="head">
  <td valign=top align=right rowspan=<?php if ($this->_tpl_vars['result']['invalidUserCount'] > 0): ?>4<?php else: ?>3<?php endif; ?>><?php echo smarty_function_counter(array(), $this);?>
.</td>
  <td colspan="2"><b><?php echo $this->_tpl_vars['result']['name']; ?>
</b></td>
</tr>
<tr>
  <td>stav:</td>
  <td><?php if ($this->_tpl_vars['result']['existing']): ?>upravený<?php else: ?>vytvorený<?php endif; ?></td>
</tr>
<tr>
  <td>učiteľ:</td>
  <td>
  <?php if ($this->_tpl_vars['result']['teacher'] == 0): ?>
    učiteľ nie je pridelený
  <?php else: ?>
    <?php echo $this->_tpl_vars['result']['teacher']['namePrefix']; ?>
 <?php echo $this->_tpl_vars['result']['teacher']['name']; ?>
 <?php echo $this->_tpl_vars['result']['teacher']['surname']; ?>

    <?php echo $this->_tpl_vars['result']['teacher']['nameSuffix']; ?>

  <?php endif; ?>
  </td>
</tr>
  <?php if ($this->_tpl_vars['result']['invalidUserCount'] > 0): ?>
<tr>
  <td colspan=2>
  Zoznam ISIC čisiel užívateľov, ktorý neboli nájdený v db:<br />
  <br />
  <ul>
  <?php $_from = $this->_tpl_vars['result']['invalidUsers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['user']):
?>
    <li><?php echo $this->_tpl_vars['user']; ?>
</li>
  <?php endforeach; endif; unset($_from); ?>
  </ul>
  <br />
  </td>
</tr>
 <?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</table>
