<?php /* Smarty version 2.6.18, created on 2007-06-02 16:51:00
         compiled from examDetail.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'examDetail.tpl', 4, false),array('modifier', 'date_format', 'examDetail.tpl', 4, 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['exam']['courseId']; ?>
">Detail predmetu</a>&nbsp;&gt;&nbsp;Detail termínu</span>
<?php if ($this->_tpl_vars['exam'] != ''): ?>
	<h3><?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
, termín <?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y")); ?>
</h3>
	<ul>
	  <li><span class="bold">Body</span>
	    <table class="tabulka">
	  	<tr> 
	      <td class="cell1">Otázka</td>
	      <td class="cell1">Body</td>
	  	</tr> 
		<?php $_from = $this->_tpl_vars['points']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['entry']):
        $this->_foreach['data']['iteration']++;
?>
	  	<tr> 
	      <td class="cell1"><?php echo $this->_foreach['data']['iteration']; ?>
</td>
      <?php if ($this->_tpl_vars['entry']['answerType'] == 'full'): ?>
	      <td class="cell1green"><?php echo $this->_tpl_vars['entry']['points']; ?>
</td>
      <?php elseif ($this->_tpl_vars['entry']['answerType'] == 'partial'): ?>
	      <td class="cell1yellow"><?php echo $this->_tpl_vars['entry']['points']; ?>
</td>
      <?php elseif ($this->_tpl_vars['entry']['answerType'] == 'missing'): ?>
	      <td class="cell1orange"><?php echo $this->_tpl_vars['entry']['points']; ?>
</td>
      <?php elseif ($this->_tpl_vars['entry']['answerType'] == 'bad'): ?>
	      <td class="cell1red"><?php echo $this->_tpl_vars['entry']['points']; ?>
</td>
      <?php endif; ?>
	  	</tr> 
  	<?php endforeach; endif; unset($_from); ?>
	  	<tr> 
	      <td class="cell1">Spolu</td>
	      <td class="cell1"><?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['points'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</td>
	  	</tr> 
	  	</table>
	  </li>
	  <li><span class="bold">Známka: </span><?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['mark'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	  <li><span class="bold">Poznámky k termínu: </span><?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['examComment'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	  <li><span class="bold">Poznámky k študentovi: </span><?php echo ((is_array($_tmp=$this->_tpl_vars['exam']['userComment'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	</ul>
<?php else: ?>
	<p>Nie je vybraný žiadny termín.</p>
<?php endif; ?>
</div>
