<?php /* Smarty version 2.6.18, created on 2007-06-07 02:30:08
         compiled from evaluateTest.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'evaluateTest.tpl', 4, false),array('modifier', 'date_format', 'evaluateTest.tpl', 6, false),)), $this); ?>
<div class="content2">
	<span class="breadcrumbs">Navigácia: <a href="?site=main">Hlavná stránka</a>&nbsp;&gt;&nbsp;<a href="?site=courses">Výpis predmetov</a>&nbsp;&gt;&nbsp;<a href="?site=courseDetail&amp;itemId=<?php echo $this->_tpl_vars['courseId']; ?>
">Detail predmetu</a>&nbsp;&gt;&nbsp;Vyhodnotenie testu</span>
  <h3>Test</h3>
      <b>Meno: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['userInfo']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
      <b>Predmet: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['courseName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
      <b>Dátum skúšky: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['examDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y")); ?>
<br />
      <b>Známka: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['testMark'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
      <b>Body: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['testPoints'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
  <br />
  <b>Otázky:</b>
  <br />
  <br />
  <div>
    <?php $_from = $this->_tpl_vars['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
      <span class="bold"><?php echo ((is_array($_tmp=$this->_tpl_vars['menuItem']['number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
. <?php echo ((is_array($_tmp=$this->_tpl_vars['menuItem']['question'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</span><br />
      <div>
        <?php $_from = $this->_tpl_vars['menuItem']['answers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuSubItem']):
?>
          <input type="checkbox"<?php if ($this->_tpl_vars['menuSubItem']['value']): ?> checked="checked"<?php endif; ?> disabled="disabled" /><?php echo ((is_array($_tmp=$this->_tpl_vars['menuSubItem']['text'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

          <?php if ($this->_tpl_vars['menuSubItem']['correct'] == $this->_tpl_vars['menuSubItem']['value']): ?>
            <img alt="correct" src="images/correct.jpg" />
          <?php elseif ($this->_tpl_vars['menuSubItem']['correct'] == 1 && $this->_tpl_vars['menuSubItem']['value'] != 1): ?>
            <img alt="incomplete" src="images/incomplete.jpg" />
          <?php else: ?>
            <img alt="incorrect" src="images/incorrect.jpg" />
          <?php endif; ?>
          <br />
        <?php endforeach; endif; unset($_from); ?>
      </div>
      <br />
      <b>Body: </b><?php echo ((is_array($_tmp=$this->_tpl_vars['menuItem']['points'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
      <br />
    <?php endforeach; endif; unset($_from); ?>
  </div>
</div>
