<?php /* Smarty version 2.6.18, created on 2007-06-12 10:08:37
         compiled from test.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'test.tpl', 20, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
	  <title>Probatur - rozhranie pre študentov</title>                                        
	  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	  <link href="styles/teststyles.css" rel="stylesheet" type="text/css" />
	  <script type="text/javascript" src="dynamic.js"></script>
</head>

<body>
  <div class="main">

    <div class="mini_header">Študent: <?php echo $this->_tpl_vars['userFullName']; ?>
, ISIC: <?php echo $this->_tpl_vars['userIsic']; ?>
</div>
    <span id="container">
<?php if ($this->_tpl_vars['timeOut'] == 0): ?>
    <div class="mini_headerR">Zostávajúci čas / Uplynulý čas nad otázkou: <span id="totalTime" class="bold"><?php echo $this->_tpl_vars['totalTime']; ?>
</span> / <span id="qTime"><?php echo $this->_tpl_vars['question']['time']; ?>
</span></div>
    <div class="otazky">
			<?php $_from = $this->_tpl_vars['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['entry']):
        $this->_foreach['data']['iteration']++;
?>
      	<a class="<?php echo $this->_tpl_vars['entry']['qMark']; ?>
" href="?site=test&amp;action=showTest&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['entry']['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
"><?php echo $this->_tpl_vars['entry']['qIndex']; ?>
. <?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['question'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, "...") : smarty_modifier_truncate($_tmp, 50, "...")); ?>
</a><br />
      <?php endforeach; endif; unset($_from); ?>
      <br />
      <form action="?site=test&amp;action=lockTest&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
" method="post">
      	<div><input type="submit" name="send" value="Lock testu" /></div>
      </form>
      <div class="legenda">
      Vo vlastnom záujme pred dočasným opustením testovania test locknite.<br />
      </div>
      <form action="?site=evaluateTest&amp;testId=<?php echo $this->_tpl_vars['testId']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
" method="post">
      	<div><input type="submit" onclick="return confirm('Naozaj chcete odoslať test (nebudú možné ďalšie úpravy)?')" name="send" value="Odoslať test" /></div>
      </form>
      <div class="legenda">
      Po odoslaní testu, už nie je možná žiadna úprava!
      </div>
    </div>

    <div class="obsah_otazky">
      <form action="?site=test&amp;action=saveAnswer&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
" method="post">
	      <span class="bold"><?php echo $this->_tpl_vars['qIndex']; ?>
. <?php echo $this->_tpl_vars['question']['question']; ?>
</span><br />                                                        
				<?php $_from = $this->_tpl_vars['answers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['data']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['entry']):
        $this->_foreach['data']['iteration']++;
?>
	      	<input type="checkbox" name="odpoved[]" value="<?php echo $this->_tpl_vars['entry']['aLetter']; ?>
" <?php if (( $this->_tpl_vars['entry']['aChecked'] )): ?>checked="checked"<?php endif; ?> /> <span class="bold"><?php echo $this->_tpl_vars['entry']['aLetter']; ?>
.</span> <?php echo $this->_tpl_vars['entry']['answer']; ?>
 <br />
	      <?php endforeach; endif; unset($_from); ?>
	      <br />
	      Poznámka:<br />
	      <textarea rows="4" cols="40" name="poznamka"><?php echo $this->_tpl_vars['question']['comment']; ?>
</textarea><br />
	      <br />
	      <input type="submit" name="submit" value="Uložiť">
      </form>
	  	<br />
      Označiť ako:<br />
      <a class="unread" href="?site=test&amp;action=markAsUnread&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">Neprečítané</a><br />
      <a class="answered" href="?site=test&amp;action=markAsAnswered&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">Zodpovedané</a><br />
      <a class="undone" href="?site=test&amp;action=markAsUndone&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">Nedokončené</a><br />
      <a class="unknown" href="?site=test&amp;action=markAsUnknown&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">Neviem</a><br />
      <a class="else" href="?site=test&amp;action=markAsElse&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">Iné</a><br />
      <br />
      <a href="?site=test&amp;action=showTest&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndexPrev']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">&lt;&lt;&lt;</a>&nbsp;&nbsp;&nbsp;<a href="?site=test&amp;action=showTest&amp;examId=<?php echo $this->_tpl_vars['examId']; ?>
&amp;qId=<?php echo $this->_tpl_vars['qIndexNext']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">&gt;&gt;&gt;</a>
      <input type="hidden" name="globTime" id="globTime" value="<?php echo $this->_tpl_vars['totalTime']; ?>
" />
      <input type="hidden" name="questionTime" id="questionTime" value="<?php echo $this->_tpl_vars['question']['time']; ?>
" />
    	<input type="hidden" name="testId" id="testId" value="<?php echo $this->_tpl_vars['testId']; ?>
" />
    	<input type="hidden" name="userId" id="userId" value="<?php echo $this->_tpl_vars['userId']; ?>
" />
    	<input type="hidden" name="oldQId" id="oldQId" value="<?php echo $this->_tpl_vars['qIndex']; ?>
" />
		</div>
<?php else: ?>
		<div>
			Časový limit vypršal. Pokračujte kliknutím na <a href="?site=evaluateTest&amp;testId=<?php echo $this->_tpl_vars['testId']; ?>
&amp;oldQId=<?php echo $this->_tpl_vars['qIndex']; ?>
&amp;time=<?php echo $this->_tpl_vars['timeStamp']; ?>
">tento link</a>.
		</div>
<?php endif; ?>
		</span>

  </div>

</body>
</html>

