52 lines
907 B
PHP
52 lines
907 B
PHP
1;3001;0c<!DOCTYPE html>
|
|
|
|
<?php
|
|
include("Question.class.php");
|
|
include("QuestionsFile.class.php");
|
|
|
|
$id = $_GET['id'];
|
|
$file = new QuestionsFile("questions.xml");
|
|
$question = $file->get_question($id);
|
|
|
|
?>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf8" />
|
|
<link rel="Stylesheet" href="styleConfirmation.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div id="main_title">
|
|
<a href="http://www.h2g2.com" target="_blank">
|
|
<img src="marvin-robot_normal.png" alt="" id="banner"/>
|
|
</a>
|
|
<h1>Nemubot Questions</h1>
|
|
</div>
|
|
</header>
|
|
|
|
<section>
|
|
<h1>Validation de la question</h1>
|
|
<h3>Rappel de la question</h3>
|
|
<?php if (!$question)
|
|
{
|
|
echo "La question n'existe pas.";
|
|
}
|
|
else
|
|
{
|
|
$question->print_test();
|
|
|
|
echo "\n\n";
|
|
}
|
|
?><br/>
|
|
|
|
<a href='thanksValidation.php?id=<?php echo $question->getId() ?>'>
|
|
Valider la question
|
|
</a>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
</html>
|