<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>
{if $course!=''}
	<h3>{$course.name|escape}</h3>
	<ul>
    <li><span class="bold">Popis:</span> {$course.description|escape}</li>
	  <li><span class="bold">Počet otázok:</span> {$course.questionCount|escape}</li>
	
	  <li><span class="bold">Bodovanie</span>
	    <ul>
	      <li>úplná správna odpoveď: {$course.ptsFull|escape}</li>
	      <li>podmnožina správnych odpovedí: {$course.ptsPartial|escape}</li>
	      <li>nesprávna odpoveď: {$course.ptsBad|escape}</li>	
	      <li>nezodpovedaná otázka: {$course.ptsEmpty|escape}</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;{$course.A|escape},{$course.ptsFull*$course.questionCount}&gt;</td>
	      <td class="cell1">A</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;{$course.B|escape},{$course.A|escape})</td>
	      <td class="cell1">B</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;{$course.C|escape},{$course.B|escape})</td>	
	      <td class="cell1">C</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;{$course.D|escape},{$course.C|escape})</td>
	      <td class="cell1">D</td>
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;{$course.E|escape},{$course.D|escape})</td>
	      <td class="cell1">E</td>	
	  	</tr> 
	  	<tr> 
	      <td class="cell1">&lt;{$course.ptsBad*$course.questionCount},{$course.E|escape})</td>
	      <td class="cell1">Fx</td>
	  	</tr> 
	  	</table>
	  </li>
	  <li><span class="bold">Termíny</span>
	    <ul>	
		    {if $course.id_demoTest!='0'}
					<li><a href="?site=demoTest&amp;action=startTest&amp;demoTestId={$course.id_demoTest}">Demotest - kliknutím spustíte testovanie</a></li>
		    {/if}
				{foreach from=$exams item="entry"}
				  {if $entry.state == "scheduled"}
						<li>{$entry.date|date_format:"%d.%m.%Y"}</li>
					{elseif $entry.state == "finished" || $entry.mark != "N/A"}
						<li><a href="?site=examDetail&amp;itemId={$entry.examId}">{$entry.date|date_format:"%d.%m.%Y"} ({$entry.mark|escape})</a></li>
					{elseif $entry.state == "progress"}
						<li><a href="?site=test&amp;action=startTest&amp;examId={$entry.examId}">{$entry.date|date_format:"%d.%m.%Y"} (Práve prebieha) - kliknutím spustíte testovanie</a></li>
					{/if}
		    {foreachelse}
				  <li>Žiadne termíny</li>
		    {/foreach}
	    </ul>
	  </li>
	  <li><span class="bold">Výsledky</span>
	    <ul>
	    	<li>Výsledná známka: <span class="bold">
					{if $finalMark!=''}
		      	{$finalMark.mark|escape}
		      {else}
		      	N/A
		      {/if}
	      </span></li>
	    </ul>
	  </li>
	</ul>
{else}
	<p>Nie je vybraná žiadna skúška.</p>
{/if}
</div>
