33 lines
576 B
PHP
33 lines
576 B
PHP
<!DOCTYPE html>
|
|
|
|
<?php
|
|
include("Question.class.php");
|
|
include("QuestionsFile.class.php");
|
|
|
|
function print_question()
|
|
{
|
|
$id = $_GET['id'];
|
|
$file = new QuestionsFile('questions.xml');
|
|
|
|
$questions = $file->get_question($id);
|
|
$question->print_test();
|
|
}
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf8" />
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Validation de la question</h1>
|
|
Vous pouvez valider la question. Cliquez simplement sur le
|
|
lien ci dessous.<br/>
|
|
|
|
<input type="button" value="Valider la question"
|
|
onclick="<?php print_questions(); ?>"/>
|
|
|
|
|
|
</body>
|
|
</html>
|