A seguir encontram-se os problemas já cadastrados no sistema. Você pode cadastrar novos ou excluir algum problema existente. Os problemas serão utilizados como questões para montar as provas de implementação prática. Nesta tela estão os bancos de problemas (questões) de todas as disciplinas cadastradas no sistema. Após cadastrar os problemas e seus casos de teste você poderá incluí-los em provas. Além disso, os problemas poderão ser exportados para serem embutidos no módulo de correção em C++ (AlGod corretor). </p> <button id="problems-bt-new"> Cadastrar um Problema </button> <div id="problems-ct-list" class="centering"> <?php include "view/DisciplineSelect.php"; include "view/ProblemList.php"; $filter = new DisciplineSelect(); $selectedDiscipline = ''; if (isset($_GET['prb_dsc_id'])) { $selectedDiscipline = $_GET['prb_dsc_id']; } ?> <br /><div><label for="prb_dsc_id">Filtrar por Disciplina</label>:<?php $filter->render("prb_dsc_id", $selectedDiscipline, null, 'discipline-filter'); ?> </div> <br /><div> <label for="title-filter">Filtrar por Título</label>: <input id="title-filter" type="text" size=30 value="<?php echo @$_GET['title']; ?> " />
public function render() { $update = true; if (!isset($this->problem)) { $this->problem = new Problem(); $update = false; } ?> <form method="POST" class="centering" action="./controller/ProblemController.php"> <table class="formTable"> <tr> <td><label for="prb_title">Título do Problema</label>:</td> <td><input name="prb_title" type="text" size=30 class="notempty" value="<?php echo @$this->problem->get("prb_title"); ?> " /> *</td> </tr> <tr> <td><label for="prb_description">Descrição/Instruções</label>:</td> <td><textarea name="prb_description" rows=8 cols=60 class="notempty" ><?php echo @$this->problem->get("prb_description"); ?> </textarea>*</td> </tr> <tr> <td><label for="prb_difficultyLevel">Nível de Dificuldade</label>:</td> <td><input name="prb_difficultyLevel" type="text" size=30 class="notempty integer" value="<?php echo @$this->problem->get("prb_difficultyLevel"); ?> " /> *</td> </tr> <tr> <td><label for="prb_dsc_id">Disciplina</label>:</td> <td> <?php $select = new DisciplineSelect(); if ($update === true) { $select->render("prb_dsc_id", $this->problem->get("prb_dsc_id"), "notempty"); } else { $select->render("prb_dsc_id", null, "notempty"); } ?> * </td> </tr> </table> <?php if ($update === true) { ?> <input type="hidden" name="prb_id" value="<?php echo @$this->problem->get("prb_id"); ?> " /> <?php } ?> <input type="hidden" name="_action" value="save" /> <input type="submit" value="Salvar" /> <input type="reset" value="Limpar Campos" /> </form> <?php }
public function render() { $update = true; if (!isset($this->test)) { $this->test = new Test(); $update = false; } @($enableLogging = $this->test->get("tst_enableLogging")); ?> <form method="POST" class="centering" action="./controller/TestController.php"> <table class="formTable"> <tr> <td><label for="tst_title">Título da Prova</label>:</td> <td><input name="tst_title" type="text" size=30 class="notempty" value="<?php echo @$this->test->get("tst_title"); ?> " /> *</td> </tr> <tr> <td><label for="tst_description">Descrição/Instruções</label>:</td> <td><textarea name="tst_description" rows=8 cols=60 class="notempty" ><?php echo @$this->test->get("tst_description"); ?> </textarea>*</td> </tr> <tr> <td><label for="tst_password">Senha da Prova</label>:</td> <td><input name="tst_password" type="password" size=30 class="password" /> *</td> </tr> <tr> <td><label for="passwordconfirm">Confirmar Senha</label>:</td> <td><input name="passwordconfirm" type="password" size=30 class="passwordconfirm" /> *</td> </tr> <tr> <td><label for="tst_visibleSince">Visível a partir de</label>:</td> <td> <input name="tst_visibleSince" type="text" size=30 class="notempty datetime" value="<?php echo @Model::parseSQLToInputDate($this->test->get("tst_visibleSince")); ?> " /> * (dd/mm/yyyy hh:mm:ss) </td> </tr> <tr> <td><label for="tst_visibleUntil">Visível até</label>:</td> <td> <input name="tst_visibleUntil" type="text" size=30 class="notempty datetime" value="<?php echo @Model::parseSQLToInputDate($this->test->get("tst_visibleUntil")); ?> " /> * (dd/mm/yyyy hh:mm:ss) </td> </tr> <tr> <td><label for="tst_openSince">Aberta a partir de</label>:</td> <td> <input name="tst_openSince" type="text" size=30 class="notempty datetime" value="<?php echo @Model::parseSQLToInputDate($this->test->get("tst_openSince")); ?> " /> * (dd/mm/yyyy hh:mm:ss) </td> </tr> <tr> <td><label for="tst_openUntil">Aberta até</label>:</td> <td> <input name="tst_openUntil" type="text" size=30 class="notempty datetime" value="<?php echo @Model::parseSQLToInputDate($this->test->get("tst_openUntil")); ?> " /> * (dd/mm/yyyy hh:mm:ss) </td> </tr> <tr> <td><label for="tst_maxTrials">Número Máximo de Tentativas</label>:</td> <td><input name="tst_maxTrials" type="text" size=30 class="notempty integer" value="<?php echo @$this->test->get("tst_maxTrials"); ?> " /> * Ex: 2</td> </tr> <tr> <td><label for="tst_scoreAttenuationPerTrial">Atenuação da Nota por Tentativa</label>:</td> <td><input name="tst_scoreAttenuationPerTrial" type="text" size=30 class="notempty number" value="<?php echo @$this->test->get("tst_scoreAttenuationPerTrial"); ?> " /> * Ex: 0.5</td> </tr> <tr> <td><label for="tst_enableLogging">Habilitar Log da Prova</label>:</td> <td> <input id="disableLogging" name="tst_enableLogging" type="radio" value="0" <?php echo !isset($enableLogging) || $enableLogging == 0 ? "checked" : ""; ?> /> <label for="disableLogging">Não</label> | <input id="enableLogging" name="tst_enableLogging" type="radio" value="1" <?php echo isset($enableLogging) && $enableLogging != 0 ? "checked" : ""; ?> /> <label for="enableLogging">Sim</label> </td> </tr> <tr> <td><label for="tst_dsc_id">Disciplina</label>:</td> <td> <?php $select = new DisciplineSelect(); if ($update === true) { $select->render("tst_dsc_id", $this->test->get("tst_dsc_id"), "notempty"); } else { $select->render("tst_dsc_id", null, "notempty"); } ?> * </td> </tr> </table> <?php if ($update === true) { ?> <input type="hidden" name="tst_id" value="<?php echo @$this->test->get("tst_id"); ?> " /> <?php } ?> <input type="hidden" name="_action" value="save" /> <input type="submit" value="Salvar" /> <input type="reset" value="Limpar Campos" /> </form> <?php }