<?php /* Smarty version 2.6.18, created on 2007-06-11 02:47:04
         compiled from examTerms.tpl */ ?>
<?php if ($this->_tpl_vars['action'] === 'listOfStudents'): ?>
  <h3><?php echo $this->_tpl_vars['date']; ?>
 - zoznam študentov</h3>
  <div class="indent">
    <?php if ($this->_tpl_vars['numRows'] == 0): ?>
      Zoznam študentov je prázdny. Na termín sa buď žiaden študent neprihlásil, 
      alebo importovanie zoznamu študentov ešte neprebehlo.
      <br /> 
    <?php else: ?>
      <table>
        <?php $_from = $this->_tpl_vars['listOfStudents']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
          <tr>
            <td><?php echo $this->_tpl_vars['menuItem']['name']; ?>
</td>
            <td><a href="index.php?site=userInformation&amp;action=showStudent&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;menuSet=2&amp;menuIndex=4">[detaily]</a></td>
            <?php if ($this->_tpl_vars['state'] === 'scheduled'): ?>
              <td><a href="index.php?site=examTerms&amp;action=deleteStudentFromList&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;studentID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[odstrániť]</a></td>
            <?php elseif ($this->_tpl_vars['state'] === 'finished'): ?>
              <td><?php if ($this->_tpl_vars['menuItem']['testID'] != 0): ?><a href="index.php?site=userInformation&amp;action=studentDetailTest&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;testID=<?php echo $this->_tpl_vars['menuItem']['testID']; ?>
&amp;menuSet=2&amp;menuIndex=4">[test]</a><?php endif; ?></td>
            <?php endif; ?>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php endif; ?>
    <br />
    <?php if ($this->_tpl_vars['state'] === 'scheduled'): ?>
      <a href="index.php?site=examTerms&amp;action=browseNewStudentsList&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
">Pridať študenta</a>
      <br />
    <?php endif; ?>
    <a href="index.php?site=examTerms&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">Späť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'browseNewStudentsList'): ?>
  <h3><?php echo $this->_tpl_vars['date']; ?>
 - pridať študenta</h3>
  <div class="indent">
    <?php if ($this->_tpl_vars['numRows'] == 0): ?>
      Zoznam neprihlásených študentov je prázdny. <br />
    <?php else: ?>
      <table>
        <?php $_from = $this->_tpl_vars['listOfStudents']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
          <tr>
            <td><?php echo $this->_tpl_vars['menuItem']['name']; ?>
</td>
            <td><a href="index.php?site=userInformation&amp;action=showStudent&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;menuSet=2&amp;menuIndex=4">[detaily]</a></td>
            <?php if ($this->_tpl_vars['state'] === 'scheduled'): ?>
              <td><a href="index.php?site=examTerms&amp;action=addStudentToList&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
&amp;studentID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[pridať]</a></td>
            <?php endif; ?>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php endif; ?>
    <br />
    <a href="index.php?site=examTerms&amp;action=listOfStudents&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['examID']; ?>
">Späť</a>
  </div>
<?php else: ?>
  <h3>Termíny skúšok</h3>
  <div class="indent">
    <form action="index.php?site=examTerms&amp;action=setExamTermsDate&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
      Zobraz termíny skúšok od 
      <input name="examTermsDate" type="text" value="<?php echo $this->_tpl_vars['examTermsDate']; ?>
" />
      <input name="submit" type="submit" value="Zobraz" />
    </form>
    <br />
    <table>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <?php $_from = $this->_tpl_vars['listOfExams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td><?php echo $this->_tpl_vars['menuItem']['date']; ?>
</td>
          <td>
            <?php if ($this->_tpl_vars['menuItem']['state'] == 'scheduled'): ?>
              - budúca
            <?php elseif ($this->_tpl_vars['menuItem']['state'] == 'progress'): ?>
              - prebiehajúca
            <?php elseif ($this->_tpl_vars['menuItem']['state'] == 'finished'): ?>
              - ukončená
            <?php endif; ?>
          </td>
          <td><a href="index.php?site=examTerms&amp;action=listOfStudents&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[zoznam študentov]</a></td>
          <td><?php if ($this->_tpl_vars['menuItem']['state'] == 'scheduled'): ?>
                <a href="index.php?site=testing&amp;action=startTesting&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[spustiť]</a>
              <?php elseif ($this->_tpl_vars['menuItem']['state'] == 'progress'): ?>
                <a href="index.php?site=testing&amp;action=startTesting&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;examID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[pokračovať]</a>
              <?php endif; ?>
          </td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
  </div>
<?php endif; ?>
