This repository has been archived on 2020-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
nemubot-askweb/validation.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>