<?php /* Smarty version 2.6.18, created on 2007-06-12 10:14:19
         compiled from testing.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'testing.tpl', 9, false),)), $this); ?>
<h3>Testovanie</h3>
<div class="indent">
<?php if ($this->_tpl_vars['testingStopped'] == 1): ?>
Testovanie je ukončené. <a href="?site=examTerms&courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">[späť]</a> 
<?php else: ?>
  <form action="?site=testing&amp;action=addTime&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
		<div>
			<?php $_from = $this->_tpl_vars['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['entry']):
?>
		  	<input type="checkbox" name="students[]" value="<?php echo $this->_tpl_vars['entry']['id']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
 (<?php echo $this->_tpl_vars['entry']['totalTime']; ?>
)<br />
		  <?php endforeach; else: ?>
		    <p>Žiadni študenti.</p>
			<?php endif; unset($_from); ?>
			<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 />
<?php if ($this->_tpl_vars['closed'] == 0): ?>
  <form action="?site=testing&amp;action=closeTesting&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
  	<div><input type="submit" name="send" value="Uzavrieť prihlasovanie" /></div>
  </form>
<?php else: ?>
  <form action="?site=testing&amp;action=openTesting&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
  	<div><input type="submit" name="send" value="Otvoriť prihlasovanie" /></div>
  </form>
<?php endif; ?>
  <br />
  <form action="?site=testing&amp;action=stopTesting&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;courseID=<?php echo $this->_tpl_vars['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=<?php echo $this->_tpl_vars['examID']; ?>
&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
  	<div><input type="submit" name="send" value="Obnov zoznam" /></div>
  </form>
<?php endif; ?>
</div>
