<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={$exam.courseId}">Detail predmetu</a>&nbsp;&gt;&nbsp;Detail termínu</span>
{if $exam!=''}
	<h3>{$exam.name|escape}, termín {$exam.date|date_format:"%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> 
		{foreach from=$points item="entry" name="data"}
	  	<tr> 
	      <td class="cell1">{$smarty.foreach.data.iteration}</td>
      {if $entry.answerType == "full"}
	      <td class="cell1green">{$entry.points}</td>
      {elseif $entry.answerType == "partial"}
	      <td class="cell1yellow">{$entry.points}</td>
      {elseif $entry.answerType == "missing"}
	      <td class="cell1orange">{$entry.points}</td>
      {elseif $entry.answerType == "bad"}
	      <td class="cell1red">{$entry.points}</td>
      {/if}
	  	</tr> 
  	{/foreach}
	  	<tr> 
	      <td class="cell1">Spolu</td>
	      <td class="cell1">{$exam.points|escape}</td>
	  	</tr> 
	  	</table>
	  </li>
	  <li><span class="bold">Známka: </span>{$exam.mark|escape}</li>
	  <li><span class="bold">Poznámky k termínu: </span>{$exam.examComment|escape}</li>
	  <li><span class="bold">Poznámky k študentovi: </span>{$exam.userComment|escape}</li>
	</ul>
{else}
	<p>Nie je vybraný žiadny termín.</p>
{/if}
</div>
