Handle false id in validation step + popup
This commit is contained in:
parent
e0e294e784
commit
105dadfb2a
@ -29,13 +29,22 @@ $question = $file->get_question($id);
|
||||
<section>
|
||||
<h1>Validation de la question</h1>
|
||||
<h3>Rappel de la question</h3>
|
||||
<?php $question->print_test() ?><br/>
|
||||
<?php if (!$question)
|
||||
{
|
||||
echo "La question n'existe pas.";
|
||||
}
|
||||
else
|
||||
{
|
||||
$question->print_test();
|
||||
|
||||
Vous pouvez valider la question. Cliquez simplement sur le
|
||||
lien ci dessous.<br/>
|
||||
echo "Vous pouvez valider la question. Cliquez simplement sur le
|
||||
lien ci dessous.\n";
|
||||
}
|
||||
?><br/>
|
||||
|
||||
<input type="button" value="Valider la question"
|
||||
onclick="<?php $question->validated(); $file->save() ?>"/>
|
||||
onclick="<?php $question->validated(); $file->save() ?>;
|
||||
alert('Question confirmée');"/>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user