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

53 lines
944 B
PHP
Raw Normal View History

<!DOCTYPE html>
2012-05-22 15:01:33 +00:00
<?php
2012-05-23 12:56:34 +00:00
include("Question.class.php");
include("QuestionsFile.class.php");
2012-05-22 15:01:33 +00:00
2012-05-23 12:56:34 +00:00
$id = $_GET['id'];
$file = new QuestionsFile("questions.xml");
$question = $file->get_question($id);
2012-05-22 15:01:33 +00:00
?>
2012-05-22 14:05:46 +00:00
<html>
<head>
<meta charset="utf8" />
<link rel="Stylesheet" href="style.css" />
2012-05-22 14:05:46 +00:00
</head>
<body>
2012-05-24 12:19:45 +00:00
<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/>
2012-05-22 14:05:46 +00:00
2012-06-10 18:13:54 +00:00
<a href='thanksValidation.php?id=<?php echo $question->getId() ?>'>
Valider la question
</a>
</article>
2012-05-24 12:19:45 +00:00
</section>
2012-05-22 14:05:46 +00:00
</body>
</html>