<h3>Testovanie</h3>
<div class="indent">
{if $testingStopped == 1}
Testovanie je ukončené. <a href="?site=examTerms&courseID={$courseID}">[späť]</a> 
{else}
  <form action="?site=testing&amp;action=addTime&amp;examID={$examID}&amp;courseID={$courseID}" method="post">
		<div>
			{foreach from=$students item="entry"}
		  	<input type="checkbox" name="students[]" value="{$entry.id}">{$entry.name|escape} ({$entry.totalTime})<br />
		  {foreachelse}
		    <p>Žiadni študenti.</p>
			{/foreach}
			<br />
			Pridať (ubrať) čas zvoleným študentom: <input type="text" name="time" size="5" value="0" />&nbsp;<input type="submit" name="submit" value="Pridaj čas" />
    </div>
	</form>
  <br />
{if $closed==0}
  <form action="?site=testing&amp;action=closeTesting&amp;examID={$examID}&amp;courseID={$courseID}" method="post">
  	<div><input type="submit" name="send" value="Uzavrieť prihlasovanie" /></div>
  </form>
{else}
  <form action="?site=testing&amp;action=openTesting&amp;examID={$examID}&amp;courseID={$courseID}" method="post">
  	<div><input type="submit" name="send" value="Otvoriť prihlasovanie" /></div>
  </form>
{/if}
  <br />
  <form action="?site=testing&amp;action=stopTesting&amp;examID={$examID}&amp;courseID={$courseID}" method="post">
  	<div><input type="submit" onclick="return confirm('Naozaj chcete ukončiť testovanie?')" name="send" value="Ukončiť testovanie" /></div>
  </form>
  <br />
  <form action="?site=testing&amp;action=refresh&amp;examID={$examID}&amp;courseID={$courseID}" method="post">
  	<div><input type="submit" name="send" value="Obnov zoznam" /></div>
  </form>
{/if}
</div>
