53 lines
944 B
PHP
53 lines
944 B
PHP
<!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="style.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 id="introduction">
|
|
<article>
|
|
<h2>Validation de la question</h2>
|
|
<strong>Rappel de la question</strong><br/><br/>
|
|
<?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>
|
|
</article>
|
|
</section>
|
|
|
|
</body>
|
|
</html>
|