<?php /* Smarty version 2.6.18, created on 2007-06-07 11:10:05
         compiled from testGenerating.tpl */ ?>
<?php if ($this->_tpl_vars['action'] === ""): ?>
  <h3>Generovanie testov</h3>
  <div class="indent">
    <?php if ($this->_tpl_vars['informationText'] != ""): ?>
      <div><?php echo $this->_tpl_vars['informationText']; ?>
</div>
      <br />
    <?php endif; ?>
    <table>
      <tr>
        <td>&nbsp;</td>
        <td style="padding-left: 20px;"><div class="bold">testy pri PC</div></td>
        <td style="padding-left: 20px;"><div class="bold">papierové testy</div></td>
      </tr>
      <tr>
        <td><div class="bold">počet vygenerovaných testov</div></td>
        <td style="padding-left: 20px;">
          <form action="index.php?site=testGenerating&amp;action=deleteTests&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
            <?php echo $this->_tpl_vars['countPCTests']; ?>

            <input name="submit" type="submit" value="vymaž" />
          </form>
        </td>
        <td style="padding-left: 20px;">
          <form action="index.php?site=testGenerating&amp;action=deletePaperTests&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
            <?php echo $this->_tpl_vars['countPrintedTests']; ?>

            <input name="submit" type="submit" value="vymaž" />
          </form>
        </td>
      </tr>
      <tr>
        <td><div class="bold">nové generovanie</div></td>
        <td style="padding-left: 20px;">
          <form action="index.php?site=testGenerating&amp;action=generateTests&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
            <input name="number" type="text" value="0" size="3" />
            <input name="submit" type="submit" value="generuj" />
          </form>
        </td>
        <td style="padding-left: 20px;">
          <form action="index.php?site=testGenerating&amp;action=generatePaperTests&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
            <input name="number" type="text" value="0" size="3" />
            <input name="submit" type="submit" value="generuj" />
          </form>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td style="padding-left: 20px;">
          <form action="index.php?site=testGenerating&amp;action=generateDemoTest&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
            <input name="submit" type="submit" value="generuj demo test" />
          </form>
        </td>
        <td style="padding-left: 20px;">
          &nbsp;
        </td>
      </tr>
    </table>
    <br />
    <a href="index.php?site=testGenerating&amp;action=setup&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">nastavenie generovania</a>
  </div>
<?php elseif ($this->_tpl_vars['action'] === 'setup'): ?>
  <h3>Nastavenie generovania</h3>
  <div class="indent">
    <?php if ($this->_tpl_vars['saved']): ?>
      <div>
        Zmeny boli uložené.
      </div>
      <br />
    <?php endif; ?>
    <form action="index.php?site=testGenerating&amp;action=saveSetup&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
" method="post">
      Počet testových otázok: 
      <input name="questionCount" type="text" value="<?php echo $this->_tpl_vars['questionCount']; ?>
" size="5" />
      <br />
      <br />
      <table>
        <tr>
          <td>
            <div class="bold">
              Okruh tém
            </div>
          </td>
          <td style="padding-left: 20px;">
            <div class="bold">
              Počet otázok
            </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 style="padding-left: <?php echo $this->_tpl_vars['menuItem']['left']; ?>
px;">
              <div>
                <img alt="" src="images/domain.jpg" />&nbsp;<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>
              </div>
            </td>
            <td style="padding-left: 20px;">
              min:<input name="min<?php echo $this->_tpl_vars['menuItem']['id']; ?>
" type="text" value="<?php echo $this->_tpl_vars['menuItem']['min']; ?>
" size="5" />
              max:<input name="max<?php echo $this->_tpl_vars['menuItem']['id']; ?>
" type="text" value="<?php echo $this->_tpl_vars['menuItem']['max']; ?>
" size="5" />
            </td>
          </tr>
        <?php endforeach; endif; unset($_from); ?>
      </table>
      <input name="submit" type="submit" value="Ulož" />
    </form>
    <br />
    <a href="index.php?site=testGenerating&amp;courseID=<?php echo $this->_tpl_vars['courseID']; ?>
">Naspäť</a>
  </div>
<?php endif; ?>
