<?php /* Smarty version 2.6.18, created on 2007-05-28 12:28:43
         compiled from statistics.tpl */ ?>
<?php if ($this->_tpl_vars['action'] === ""): ?>
  <h3>Štatistika</h3>
  <div class="indent">
    <div class="underline">Štatistika podľa úspešnosti:</div>
    <form action="index.php" method="get">
      <input name="site" type="hidden" value="statistics" />
      <input name="action" type="hidden" value="showBySuccess" />
      <input name="courseID" type="hidden" value="<?php echo $this->_tpl_vars['courseID']; ?>
" />
      <table>
        <tr>
          <td>Zobraz</td>
          <td>
            <select name="showWhat">
              <option value="answerSets">sady odpovedí</option>
              <option value="questions">otázky</option>
              <option value="domains">okruhy tém</option>
              <option value="students">študentov</option>
              <option value="terms">termíny</option>
            </select>
          </td>
          <td colspan="2">podľa úspešnosti</td>
        </tr>
        <tr>
          <td>od</td>
          <td><input name="statisticsDateFrom" type="text" value="<?php echo $this->_tpl_vars['statisticsDateFrom']; ?>
" /></td>
          <td>do</td>
          <td><input name="statisticsDateTo" type="text" value="<?php echo $this->_tpl_vars['statisticsDateTo']; ?>
" /></td>
        </tr>
        <tr>
          <td>trieď</td>
          <td>
            <select name="sort">
              <option value="ascending">vzostupne</option>
              <option value="descending">zostupne</option>
            </select>
          </td>
          <td></td>
          <td><input type="submit" value="OK" /></td>
        </tr>
      </table>
    </form>
    <br /><br />
    <div class="underline">Štatistika zastúpenia známok</div>
    <form action="index.php" method="get">
      <input name="site" type="hidden" value="statistics" />
      <input name="action" type="hidden" value="showRepresentationOfMarks" />
      <input name="courseID" type="hidden" value="<?php echo $this->_tpl_vars['courseID']; ?>
" />
      Zobraz zastúpenia známok v termíne
      <select name="examID">
        <option value="dontCare">nezáleží</option>
        <?php $_from = $this->_tpl_vars['examList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
          <option value="<?php echo $this->_tpl_vars['menuItem']['id']; ?>
"><?php echo $this->_tpl_vars['menuItem']['date']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
      </select>
      <input type="submit" value="OK" />
    </form>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'showBySuccess'): ?>
  <h3>Štatistika podľa úspešnosti</h3>
  <div class="indent">
    <form action="index.php" method="get">
      <input name="site" type="hidden" value="statistics" />
      <input name="action" type="hidden" value="showBySuccess" />
      <input name="courseID" type="hidden" value="<?php echo $this->_tpl_vars['courseID']; ?>
" />
      <table>
        <tr>
          <td>Zobraz</td>
          <td>
            <select name="showWhat">
              <option value="answerSets"<?php if ($this->_tpl_vars['showWhat'] === 'answerSets'): ?> selected="selected"<?php endif; ?>>sady odpovedí</option>
              <option value="questions"<?php if ($this->_tpl_vars['showWhat'] === 'questions'): ?> selected="selected"<?php endif; ?>>otázky</option>
              <option value="domains"<?php if ($this->_tpl_vars['showWhat'] === 'domains'): ?> selected="selected"<?php endif; ?>>okruhy tém</option>
              <option value="students"<?php if ($this->_tpl_vars['showWhat'] === 'students'): ?> selected="selected"<?php endif; ?>>študentov</option>
              <option value="terms"<?php if ($this->_tpl_vars['showWhat'] === 'terms'): ?> selected="selected"<?php endif; ?>>termíny</option>
            </select>
          </td>
          <td colspan="2">podľa úspešnosti</td>
        </tr>
        <tr>
          <td>od</td>
          <td><input name="statisticsDateFrom" type="text" value="<?php echo $this->_tpl_vars['statisticsDateFrom']; ?>
" /></td>
          <td>do</td>
          <td><input name="statisticsDateTo" type="text" value="<?php echo $this->_tpl_vars['statisticsDateTo']; ?>
" /></td>
        </tr>
        <tr>
          <td>trieď</td>
          <td>
            <select name="sort">
              <option value="ascending"<?php if ($this->_tpl_vars['sort'] === 'ascending'): ?> selected="selected"<?php endif; ?>>vzostupne</option>
              <option value="descending"<?php if ($this->_tpl_vars['sort'] === 'descending'): ?> selected="selected"<?php endif; ?>>zostupne</option>
            </select>
          </td>
          <td></td>
          <td><input type="submit" value="OK" /></td>
        </tr>
      </table>
    </form>
    <br />
    <?php if ($this->_tpl_vars['showWhat'] === 'answerSets'): ?>
      <table>
        <tr>
          <td><div class="bold">Sada odpovedí</div></td>
          <td><div class="bold">Priemer. # bodov</div></td>
        </tr>
        <?php $_from = $this->_tpl_vars['answerSets']; 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']['text']; ?>
</td>
            <td><?php echo $this->_tpl_vars['menuItem']['avg']; ?>
</td>
            <td><a href="index.php?site=questionDB&amp;action=editAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id_domain']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id_question']; ?>
&amp;answerSetID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[editovať]</a></td>
            <td><a href="javascript: Ask('Naozaj chcete sadu odpovedí vymazať?', 'index.php?site=questionDB&amp;action=deleteAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id_domain']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id_question']; ?>
&amp;answerSetID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;redirect=1&amp;redsite=statistics&amp;redaction=showBySuccess&amp;redcourseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;redshowWhat=<?php echo $this->_tpl_vars['showWhat']; ?>
&amp;redstatisticsDateFrom=<?php echo $this->_tpl_vars['statisticsDateFrom']; ?>
&amp;redstatisticsDateTo=<?php echo $this->_tpl_vars['statisticsDateTo']; ?>
&amp;redsort=<?php echo $this->_tpl_vars['sort']; ?>
');">[odstrániť]</a></td>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php elseif ($this->_tpl_vars['showWhat'] === 'questions'): ?>
      <table>
        <tr>
          <td><div class="bold">Otázka</div></td>
          <td><div class="bold">Priemer. # bodov</div></td>
        </tr>
        <?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><a href="index.php?site=questionDB&amp;action=browseAnswerSets&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id_domain']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
"><?php echo $this->_tpl_vars['menuItem']['question']; ?>
</a></td>
            <td><?php echo $this->_tpl_vars['menuItem']['avg']; ?>
</td>
            <td><a href="index.php?site=questionDB&amp;action=editQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id_domain']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[editovať]</a></td>
            <td><a href="javascript: Ask('Naozaj chcete otázku vymazať?', 'index.php?site=questionDB&amp;action=deleteQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id_domain']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;redirect=1&amp;redsite=statistics&amp;redaction=showBySuccess&amp;redcourseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;redshowWhat=<?php echo $this->_tpl_vars['showWhat']; ?>
&amp;redstatisticsDateFrom=<?php echo $this->_tpl_vars['statisticsDateFrom']; ?>
&amp;redstatisticsDateTo=<?php echo $this->_tpl_vars['statisticsDateTo']; ?>
&amp;redsort=<?php echo $this->_tpl_vars['sort']; ?>
');">[odstrániť]</a></td>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php elseif ($this->_tpl_vars['showWhat'] === 'domains'): ?>
      <table>
        <tr>
          <td><div class="bold">Doména</div></td>
          <td><div class="bold">Priemer. # bodov</div></td>
        </tr>
        <?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
          <tr>
            <td><a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
"><?php echo $this->_tpl_vars['menuItem']['subject']; ?>
</a></td>
            <td><?php echo $this->_tpl_vars['menuItem']['avg']; ?>
</td>
            <td><a href="index.php?site=questionDB&amp;action=editDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
">[editovať]</a></td>
            <td><a href="javascript: Ask('Naozaj chcete okruh tém vymazať?', 'index.php?site=questionDB&amp;action=deleteDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
&amp;redirect=1&amp;redsite=statistics&amp;redaction=showBySuccess&amp;redcourseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;redshowWhat=<?php echo $this->_tpl_vars['showWhat']; ?>
&amp;redstatisticsDateFrom=<?php echo $this->_tpl_vars['statisticsDateFrom']; ?>
&amp;redstatisticsDateTo=<?php echo $this->_tpl_vars['statisticsDateTo']; ?>
&amp;redsort=<?php echo $this->_tpl_vars['sort']; ?>
');">[odstrániť]</a></td>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php elseif ($this->_tpl_vars['showWhat'] === 'students'): ?>
      <table>
        <tr>
          <td><div class="bold">Meno</div></td>
          <td><div class="bold">Priemer. # bodov</div></td>
        </tr>
        <?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['menuItem']):
?>
          <tr>
            <td><?php echo $this->_tpl_vars['menuItem']['name']; ?>
</td>
            <td><?php echo $this->_tpl_vars['menuItem']['avg']; ?>
</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=7">[detaily]</a></td>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php elseif ($this->_tpl_vars['showWhat'] === 'terms'): ?>
      <table>
        <tr>
          <td><div class="bold">Dátum</div></td>
          <td><div class="bold">Priemer. # bodov</div></td>
        </tr>
        <?php $_from = $this->_tpl_vars['terms']; 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 echo $this->_tpl_vars['menuItem']['avg']; ?>
</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>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
    <?php endif; ?>
    <br />
    <a href="index.php?site=statistics&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">Naspät</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'showRepresentationOfMarks'): ?>
  <h3>Štatistika zastúpenia známok</h3>
  <div class="indent">
    <form action="index.php" method="get">
      <input name="site" type="hidden" value="statistics" />
      <input name="action" type="hidden" value="showRepresentationOfMarks" />
      <input name="courseID" type="hidden" value="<?php echo $this->_tpl_vars['courseID']; ?>
" />
      Zobraz zastúpenia známok v termíne
      <select name="examID">
        <option value="dontCare"<?php if ($this->_tpl_vars['examID'] === 'dontCare'): ?> selected="selected"<?php endif; ?>>nezáleží</option>
        <?php $_from = $this->_tpl_vars['examList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
          <option value="<?php echo $this->_tpl_vars['menuItem']['id']; ?>
"<?php if ($this->_tpl_vars['menuItem']['id'] == $this->_tpl_vars['examID']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['menuItem']['date']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
      </select>
      <input type="submit" value="OK" />
    </form>
    <br />
    <div class="underline">Termín: <?php echo $this->_tpl_vars['examDate']; ?>
</div>
    <table>
      <?php $_from = $this->_tpl_vars['marks']; 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']['mark']; ?>
:</td>
          <td><?php echo $this->_tpl_vars['menuItem']['count']; ?>
</td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="index.php?site=statistics&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">Naspät</a>
  </div>
<?php endif; ?>
