<?php /* Smarty version 2.6.18, created on 2007-06-04 14:14:37
         compiled from questionDB.tpl */ ?>
<?php if ($this->_tpl_vars['action'] === 'browseDomain'): ?>
  <h3>
    <?php if ($this->_tpl_vars['domainID'] == 0): ?>
      Okruhy tém
    <?php else: ?>
      Okruh tém - <?php echo $this->_tpl_vars['domain']; ?>

    <?php endif; ?>
  </h3>
  <div class="indent">
    <a href="index.php?site=questionDB&amp;action=addDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Nový okruh</a>
    <?php if ($this->_tpl_vars['domainID'] != 0): ?>
      <a href="index.php?site=questionDB&amp;action=addQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Nová otázka</a>
    <?php endif; ?>
    <br />
    <br />
    <table>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <?php if ($this->_tpl_vars['domainID'] != 0): ?>
        <tr>
          <td><img alt="" src="images/domain.jpg" /></td>
          <td colspan="3"><a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['parentDomainID']; ?>
">..</a></td>
        </tr>
      <?php endif; ?>
      <?php $_from = $this->_tpl_vars['domainList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td><img alt="" src="images/domain.jpg" /></td>
          <td><a title="<?php echo $this->_tpl_vars['menuItem']['description']; ?>
" 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><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']; ?>
');">[odstrániť]</a></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
      <?php $_from = $this->_tpl_vars['questionList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td><img alt="" src="images/question.jpg" /></td>
          <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['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
"><?php echo $this->_tpl_vars['menuItem']['question']; ?>
</a></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['domainID']; ?>
&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['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
');">[odstrániť]</a></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="index.php?site=questionDB&amp;action=addDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Nový okruh</a>
    <?php if ($this->_tpl_vars['domainID'] != 0): ?>
      <a href="index.php?site=questionDB&amp;action=addQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Nová otázka</a>
    <?php endif; ?>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'addDomain'): ?>
  <h3>Nový okruh tém</h3>
  <div class="indent">
    <form action="index.php?site=questionDB&amp;action=addDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
" method="post">
      <table>
        <tr>
          <td>Názov</td>
          <td><input name="subject" type="text" value="" size="40" /></td>
        </tr>
        <tr>
          <td>Popis</td>
          <td><textarea name="description" rows="10" cols="40"></textarea></td>
        </tr>
        <tr>
          <td></td>
          <td><input name="submit" type="submit" value="Vytvor" /></td>
        </tr>
      </table>
    </form>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Naspäť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'editDomain'): ?>
  <h3>Editovať okruh tém - <?php echo $this->_tpl_vars['domain']['subject']; ?>
</h3>
  <div class="indent">
    <form action="index.php?site=questionDB&amp;action=editDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
" method="post">
      <table>
        <tr>
          <td>Názov</td>
          <td><input name="subject" type="text" value="<?php echo $this->_tpl_vars['domain']['subject']; ?>
" size="40" /></td>
        </tr>
        <tr>
          <td>Popis</td>
          <td><textarea name="description" rows="10" cols="40"><?php echo $this->_tpl_vars['domain']['description']; ?>
</textarea></td>
        </tr>
        <tr>
          <td></td>
          <td><input name="submit" type="submit" value="Zmeň" /></td>
        </tr>
      </table>
    </form>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Naspäť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'addQuestion'): ?>
  <h3>Nová otázka</h3>
  <div class="indent">
    <form action="index.php?site=questionDB&amp;action=addQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
" method="post">
      <table>
        <tr>
          <td>Znenie otázky</td>
          <td><textarea name="question" rows="10" cols="40"></textarea></td>
        </tr>
        <tr>
          <td></td>
          <td><input name="submit" type="submit" value="Vytvor" /></td>
        </tr>
      </table>
    </form>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Naspäť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'editQuestion'): ?>
  <h3>Editovať otázku - <?php echo $this->_tpl_vars['question']['name']; ?>
</h3>
  <div class="indent">
    <form action="index.php?site=questionDB&amp;action=editQuestion&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
" method="post">
      <table>
        <tr>
          <td>Znenie otázky</td>
          <td><textarea name="question" rows="10" cols="40"><?php echo $this->_tpl_vars['question']['question']; ?>
</textarea></td>
        </tr>
        <tr>
          <td></td>
          <td><input name="submit" type="submit" value="Zmeň" /></td>
        </tr>
      </table>
    </form>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">Naspäť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'browseAnswerSets'): ?>
  <h3>Otázka - <?php echo $this->_tpl_vars['question']; ?>
</h3>
  <div class="indent">
    <a href="index.php?site=questionDB&amp;action=addAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
">Nová sada odpovedí</a>
    <br />
    <br />
    <table>
      <tr>
        <td><img alt="" src="images/domain.jpg" /></td>
        <td colspan="3"><a href="index.php?site=questionDB&amp;action=browseDomain&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
">..</a></td>
      </tr>
      <?php $_from = $this->_tpl_vars['answerSetList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        <tr>
          <td><img alt="" src="images/answerSet.jpg" /></td>
          <td><?php echo $this->_tpl_vars['menuItem']['text']; ?>
</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['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
&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['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
&amp;answerSetID=<?php echo $this->_tpl_vars['menuItem']['id']; ?>
');">[odstrániť]</a></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
    </table>
    <br />
    <a href="index.php?site=questionDB&amp;action=addAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
">Nová sada odpovedí</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'addAnswerSet'): ?>
  <h3>Nová sada odpovedí</h3>
  <div class="indent">
    <table>
      <tr>
        <td><div class="underline">Znenie otázky:</div></td>
      </tr>
      <tr>
        <td><?php echo $this->_tpl_vars['question']; ?>
</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div class="underline">Odpovede:</div></td>
      </tr>
      <tr>
        <td>
          <form id="form" action="index.php?site=questionDB&amp;action=addAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
" method="post">
            
          </form>
        </td>
      </tr>
    </table>
    
    <script language="Javascript" type="text/javascript">
    <!--
      InitializeAnswerSet("form","<a href=\"javascript: addAnswer('',false);\">Pridať ďalšiu odpoveď</a><br /><br />","<br /><input name=\"submit\" type=\"submit\" value=\"Vytvor\" />");
      addAnswer("",false);
    //-->
    </script>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseAnswerSets&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
">Naspäť</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'editAnswerSet'): ?>
  <h3>Editovať sadu odpovedí</h3>
  <div class="indent">
    <table>
      <tr>
        <td><div class="underline">Znenie otázky:</div></td>
      </tr>
      <tr>
        <td><?php echo $this->_tpl_vars['question']; ?>
</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div class="underline">Odpovede:</div></td>
      </tr>
      <tr>
        <td>
          <form id="form" action="index.php?site=questionDB&amp;action=editAnswerSet&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
&amp;answerSetID=<?php echo $this->_tpl_vars['answerSetID']; ?>
" method="post">
            
          </form>
        </td>
      </tr>
    </table>
    
    <script language="Javascript" type="text/javascript">
    <!--
      InitializeAnswerSet("form","<a href=\"javascript: addAnswer('',false);\">Pridať ďalšiu odpoveď</a><br /><br />","<br /><input name=\"submit\" type=\"submit\" value=\"Zmeň\" />");
      <?php $_from = $this->_tpl_vars['answerList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['menuItem']):
?>
        addAnswer(<?php echo $this->_tpl_vars['menuItem']['text']; ?>
,<?php echo $this->_tpl_vars['menuItem']['correct']; ?>
);
      <?php endforeach; endif; unset($_from); ?>
    //-->
    </script>
    <br />
    <br />
    <a href="index.php?site=questionDB&amp;action=browseAnswerSets&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
&amp;domainID=<?php echo $this->_tpl_vars['domainID']; ?>
&amp;questionID=<?php echo $this->_tpl_vars['questionID']; ?>
">Naspäť</a>
  </div>
<?php endif; ?>
