コード例 #1
0
<?php

$__REQUIRE_ACCESS_LEVEL__ = 3;
$__REDIRECT_TO__ = './';
include "static/header.php";
?>

<h1>Editar Caso de Teste</h1>

<div class="centering">
<?php 
include "controller/EvaluationCaseBS.php";
include "view/EvaluationCaseEdit.php";
$bs = new EvaluationCaseBS($_GET);
$model = $bs->retrieve();
if (isset($model)) {
    $widget = new EvaluationCaseEdit($model);
    $widget->render();
} else {
    echo "<br /><i>Este problema não existe.</i><br />";
}
?>
<br />
<button onClick="location.assign('./evaluationCases.php?evc_prb_id=<?php 
echo $_GET['evc_prb_id'];
?>
');">Voltar aos Casos de Teste</button>
</div>

<?php 
include "static/footer.php";
コード例 #2
0
    $selectedProblem = $_GET['evc_prb_id'];
}
?>
<br /><div><label for="prb_dsc_id">Filtrar por Problema</label>:<?php 
$filter->render("evc_prb_id", $selectedProblem, null, 'problem-filter');
?>
</div><?php 
$widget = new EvaluationCaseList();
$widget->renderNotDeleted($selectedProblem);
?>
</div>

<div id="evaluationcases-new-form" style="display:none;">
	<?php 
include "./view/EvaluationCaseEdit.php";
$widget = new EvaluationCaseEdit(null);
$widget->render($selectedProblem);
?>
</div>

<script type="text/javascript">
	$(document).ready(function() {
		$("#evaluationcases-bt-new").click(function() {
			$("#evaluationcases-new-form").dialog({
				modal: true,
				width: 'auto',
				height: 'auto',
				title: 'Cadastrar Novo Caso de Teste',
				buttons: {
					Cancel: function() {
						$(this).dialog("close");