<?php /* Smarty version 2.6.18, created on 2007-06-09 16:14:36
         compiled from userInformation.tpl */ ?>
<?php if ($this->_tpl_vars['action'] === 'showStudent'): ?>
  <h3>Informácie o študentovi</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno: </td>
        <td><?php echo $this->_tpl_vars['userInfo']['name']; ?>
</td>
      </tr>
      <tr>
        <td>ISIC: </td>
        <td><?php echo $this->_tpl_vars['userInfo']['ISIC']; ?>
</td>
      </tr>
    </table>
    <br />
    <div class="underline">Predmety:</div>
    <table>
      <?php $_from = $this->_tpl_vars['listOfCourses']; 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><?php if ($this->_tpl_vars['menuItem']['link']): ?><a href="index.php?site=userInformation&amp;action=studentDetailCourse&amp;courseID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;userID=<?php echo $this->_tpl_vars['userID']; ?>
&amp;menuSet=<?php echo $this->_tpl_vars['menuSet']; ?>
&amp;menuIndex=<?php echo $this->_tpl_vars['menuIndex']; ?>
">[testy]</a><?php endif; ?></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'showProctor'): ?>
  <h3>Informácie o proktorovi</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno: </td>
        <td><?php echo $this->_tpl_vars['userInfo']['name']; ?>
</td>
      </tr>
      <tr>
        <td>ISIC: </td>
        <td><?php echo $this->_tpl_vars['userInfo']['ISIC']; ?>
</td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><div class="underline">Učiteľ v predmetoch:</div></td>
      </tr>
      <?php $_from = $this->_tpl_vars['teacherCourses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td colspan="2"><?php echo $this->_tpl_vars['menuItem']['name']; ?>
</td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><div class="underline">Proktor v predmetoch:</div></td>
      </tr>
      <?php $_from = $this->_tpl_vars['proctorCourses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td colspan="2"><?php echo $this->_tpl_vars['menuItem']['name']; ?>
</td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'studentDetailCourse'): ?>
  <h3>Zoznam testov</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno:</td>
        <td><?php echo $this->_tpl_vars['userInfo']['name']; ?>
</td>
      </tr>
      <tr>
        <td>Predmet:</td>
        <td><?php echo $this->_tpl_vars['courseName']; ?>
</td>
      </tr>
    </table>
    <br />
    <div class="underline">Testy:</div>
    <table>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <?php $_from = $this->_tpl_vars['tests']; 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']; ?>
 - <?php echo $this->_tpl_vars['menuItem']['mark']; ?>
</td>
          <td><a href="index.php?site=userInformation&amp;action=studentDetailTest&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['userID']; ?>
&amp;testID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;menuSet=<?php echo $this->_tpl_vars['menuSet']; ?>
&amp;menuIndex=<?php echo $this->_tpl_vars['menuIndex']; ?>
">[detaily]</a></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'studentDetailTest'): ?>
  <h3>Test</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno:</td>
        <td><?php echo $this->_tpl_vars['userInfo']['name']; ?>
</td>
      </tr>
      <tr>
        <td>Predmet:</td>
        <td><?php echo $this->_tpl_vars['courseName']; ?>
</td>
      </tr>
      <tr>
        <td>Dátum skúšky:</td>
        <td><?php echo $this->_tpl_vars['examDate']; ?>
</td>
      </tr>
      <tr>
        <td>Známka:</td>
        <td><?php echo $this->_tpl_vars['testMark']; ?>
</td>
      </tr>
      <tr>
        <td>Body:</td>
        <td><?php echo $this->_tpl_vars['testPoints']; ?>
</td>
      </tr>
    </table>
    <br />
    <form action="index.php?site=userInformation&amp;action=saveComment&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['userID']; ?>
&amp;testID=<?php echo $this->_tpl_vars['testID']; ?>
&amp;menuSet=<?php echo $this->_tpl_vars['menuSet']; ?>
&amp;menuIndex=<?php echo $this->_tpl_vars['menuIndex']; ?>
" method="post">
      Komentár k testu: 
      <br />
      <textarea name="comment" rows="10" cols="40"><?php echo $this->_tpl_vars['testComment']; ?>
</textarea>
      <br />
      <input name="submit" type="submit" value="Ulož komentár" />
    </form>
    <br />
    <br />
    <div class="underline">Otázky:</div>
      <form action="index.php?site=userInformation&amp;action=savePoints&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;userID=<?php echo $this->_tpl_vars['userID']; ?>
&amp;testID=<?php echo $this->_tpl_vars['testID']; ?>
&amp;menuSet=<?php echo $this->_tpl_vars['menuSet']; ?>
&amp;menuIndex=<?php echo $this->_tpl_vars['menuIndex']; ?>
" method="post">
        <table>
          <?php $_from = $this->_tpl_vars['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
            <tr>
              <td>
                <div class="bold"><?php echo $this->_tpl_vars['menuItem']['number']; ?>
. <?php echo $this->_tpl_vars['menuItem']['question']; ?>
</div>
                <div>
                  <?php $_from = $this->_tpl_vars['menuItem']['answers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuSubItem']):
?>
                    <input type="checkbox"<?php if ($this->_tpl_vars['menuSubItem']['value']): ?> checked="checked"<?php endif; ?> disabled="disabled" /><?php echo $this->_tpl_vars['menuSubItem']['text']; ?>

                    <?php if ($this->_tpl_vars['menuSubItem']['correct'] == $this->_tpl_vars['menuSubItem']['value']): ?>
                      <img alt="correct" src="images/correct.jpg" />
                    <?php else: ?>
                      <img alt="incorrect" src="images/incorrect.jpg" />
                    <?php endif; ?>
                    <br />
                  <?php endforeach; endif; unset($_from); ?>
                </div>
                Komentár: 
                <br />
                <textarea name="comment" rows="5" cols="40" readonly="readonly"><?php echo $this->_tpl_vars['menuItem']['comment']; ?>
</textarea>
                <br />
                Body: <input name="testAnswerID<?php echo $this->_tpl_vars['menuItem']['id_testAnswer']; ?>
" type="text" value="<?php echo $this->_tpl_vars['menuItem']['points']; ?>
" size="5" />
              </td>
            </tr>
          <?php endforeach; endif; unset($_from); ?>
          <tr>
            <td><input name="submit" type="submit" value="Ulož body" /></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><a href="javascript:history.back();">Späť</a></td>
          </tr>
        </table>
      </form>
    </div>
    <br />
<?php endif; ?>
