<?php /* Smarty version 2.6.18, created on 2007-06-11 17:49:51
         compiled from courseDetail.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'courseDetail.tpl', 4, false),array('modifier', 'date_format', 'courseDetail.tpl', 56, 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;Detail predmetu</span>
<?php if ($this->_tpl_vars['course'] != ''): ?>
	<h3><?php echo ((is_array($_tmp=$this->_tpl_vars['course']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</h3>
	<ul>
    <li><span class="bold">Popis:</span> <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	  <li><span class="bold">Počet otázok:</span> <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['questionCount'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	
	  <li><span class="bold">Bodovanie</span>
	    <ul>
	      <li>úplná správna odpoveď: <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['ptsFull'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	      <li>podmnožina správnych odpovedí: <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['ptsPartial'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	      <li>nesprávna odpoveď: <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['ptsBad'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>	
	      <li>nezodpovedaná otázka: <?php echo ((is_array($_tmp=$this->_tpl_vars['course']['ptsEmpty'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</li>
	    </ul>
	  </li>
	  <li><span class="bold">Hodnotenie</span>
	    <table class="tabulka">
	  	<tr> 
	      <td class="cell1">Body</td>
	      <td class="cell1">Známka</td>	
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['A'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
,<?php echo $this->_tpl_vars['course']['ptsFull']*$this->_tpl_vars['course']['questionCount']; ?>
&gt;</td>
	      <td class="cell1">A</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['B'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
,<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['A'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>
	      <td class="cell1">B</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['C'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
,<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['B'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>	
	      <td class="cell1">C</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['D'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
,<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['C'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>
	      <td class="cell1">D</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['E'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
,<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['D'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>
	      <td class="cell1">E</td>	
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;<?php echo $this->_tpl_vars['course']['ptsBad']*$this->_tpl_vars['course']['questionCount']; ?>
,<?php echo ((is_array($_tmp=$this->_tpl_vars['course']['E'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</td>
	      <td class="cell1">Fx</td>
	  	</tr> 
	  	</table>
	  </li>
	  <li><span class="bold">Termíny</span>
	    <ul>	
		    <?php if ($this->_tpl_vars['course']['id_demoTest'] != '0'): ?>
					<li><a href="?site=demoTest&amp;action=startTest&amp;demoTestId=<?php echo $this->_tpl_vars['course']['id_demoTest']; ?>
">Demotest - kliknutím spustíte testovanie</a></li>
		    <?php endif; ?>
				<?php $_from = $this->_tpl_vars['exams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['entry']):
?>
				  <?php if ($this->_tpl_vars['entry']['state'] == 'scheduled'): ?>
						<li><?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y")); ?>
</li>
					<?php elseif ($this->_tpl_vars['entry']['state'] == 'finished' || $this->_tpl_vars['entry']['mark'] != "N/A"): ?>
						<li><a href="?site=examDetail&amp;itemId=<?php echo $this->_tpl_vars['entry']['examId']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y")); ?>
 (<?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['mark'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
)</a></li>
					<?php elseif ($this->_tpl_vars['entry']['state'] == 'progress'): ?>
						<li><a href="?site=test&amp;action=startTest&amp;examId=<?php echo $this->_tpl_vars['entry']['examId']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%d.%m.%Y") : smarty_modifier_date_format($_tmp, "%d.%m.%Y")); ?>
 (Práve prebieha) - kliknutím spustíte testovanie</a></li>
					<?php endif; ?>
		    <?php endforeach; else: ?>
				  <li>Žiadne termíny</li>
		    <?php endif; unset($_from); ?>
	    </ul>
	  </li>
	  <li><span class="bold">Výsledky</span>
	    <ul>
	    	<li>Výsledná známka: <span class="bold">
					<?php if ($this->_tpl_vars['finalMark'] != ''): ?>
		      	<?php echo ((is_array($_tmp=$this->_tpl_vars['finalMark']['mark'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

		      <?php else: ?>
		      	N/A
		      <?php endif; ?>
	      </span></li>
	    </ul>
	  </li>
	</ul>
<?php else: ?>
	<p>Nie je vybraná žiadna skúška.</p>
<?php endif; ?>
</div>
