{if $action==="showStudent"}
  <h3>Informácie o študentovi</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno: </td>
        <td>{$userInfo.name}</td>
      </tr>
      <tr>
        <td>ISIC: </td>
        <td>{$userInfo.ISIC}</td>
      </tr>
    </table>
    <br />
    <div class="underline">Predmety:</div>
    <table>
      {foreach from=$listOfCourses item=menuItem}
        <tr>
          <td>{$menuItem.name}</td>
          <td>{if $menuItem.link}<a href="index.php?site=userInformation&amp;action=studentDetailCourse&amp;courseID={$menuItem.id}&amp;userID={$userID}&amp;menuSet={$menuSet}&amp;menuIndex={$menuIndex}">[testy]</a>{/if}</td>
        </tr>
      {/foreach}
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
{elseif $action==="showProctor"}
  <h3>Informácie o proktorovi</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno: </td>
        <td>{$userInfo.name}</td>
      </tr>
      <tr>
        <td>ISIC: </td>
        <td>{$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>
      {foreach from=$teacherCourses item=menuItem}
        <tr>
          <td colspan="2">{$menuItem.name}</td>
        </tr>
      {/foreach}
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2"><div class="underline">Proktor v predmetoch:</div></td>
      </tr>
      {foreach from=$proctorCourses item=menuItem}
        <tr>
          <td colspan="2">{$menuItem.name}</td>
        </tr>
      {/foreach}
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
{elseif $action==="studentDetailCourse"}
  <h3>Zoznam testov</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno:</td>
        <td>{$userInfo.name}</td>
      </tr>
      <tr>
        <td>Predmet:</td>
        <td>{$courseName}</td>
      </tr>
    </table>
    <br />
    <div class="underline">Testy:</div>
    <table>
      <tr>
        <td>&nbsp;</td>
      </tr>
      {foreach from=$tests item=menuItem}
        <tr>
          <td>{$menuItem.date} - {$menuItem.mark}</td>
          <td><a href="index.php?site=userInformation&amp;action=studentDetailTest&amp;courseID={$courseID}&amp;userID={$userID}&amp;testID={$menuItem.id}&amp;menuSet={$menuSet}&amp;menuIndex={$menuIndex}">[detaily]</a></td>
        </tr>
      {/foreach}
    </table>
    <br />
    <a href="javascript:history.back();">Späť</a>
  </div>
{elseif $action==="studentDetailTest"}
  <h3>Test</h3>
  <div class="indent">
    <table>
      <tr>
        <td>Meno:</td>
        <td>{$userInfo.name}</td>
      </tr>
      <tr>
        <td>Predmet:</td>
        <td>{$courseName}</td>
      </tr>
      <tr>
        <td>Dátum skúšky:</td>
        <td>{$examDate}</td>
      </tr>
      <tr>
        <td>Známka:</td>
        <td>{$testMark}</td>
      </tr>
      <tr>
        <td>Body:</td>
        <td>{$testPoints}</td>
      </tr>
    </table>
    <br />
    <form action="index.php?site=userInformation&amp;action=saveComment&amp;courseID={$courseID}&amp;userID={$userID}&amp;testID={$testID}&amp;menuSet={$menuSet}&amp;menuIndex={$menuIndex}" method="post">
      Komentár k testu: 
      <br />
      <textarea name="comment" rows="10" cols="40">{$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={$courseID}&amp;userID={$userID}&amp;testID={$testID}&amp;menuSet={$menuSet}&amp;menuIndex={$menuIndex}" method="post">
        <table>
          {foreach from=$questions item=menuItem}
            <tr>
              <td>
                <div class="bold">{$menuItem.number}. {$menuItem.question}</div>
                <div>
                  {foreach from=$menuItem.answers item=menuSubItem}
                    <input type="checkbox"{if $menuSubItem.value} checked="checked"{/if} disabled="disabled" />{$menuSubItem.text}
                    {if $menuSubItem.correct==$menuSubItem.value}
                      <img alt="correct" src="images/correct.jpg" />
                    {else}
                      <img alt="incorrect" src="images/incorrect.jpg" />
                    {/if}
                    <br />
                  {/foreach}
                </div>
                Komentár: 
                <br />
                <textarea name="comment" rows="5" cols="40" readonly="readonly">{$menuItem.comment}</textarea>
                <br />
                Body: <input name="testAnswerID{$menuItem.id_testAnswer}" type="text" value="{$menuItem.points}" size="5" />
              </td>
            </tr>
          {/foreach}
          <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 />
{/if}
