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

34 lines
650 B
PHP
Raw Normal View History

2012-05-22 14:05:46 +00:00
<!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'];
2012-05-23 15:23:45 +00:00
echo $id . "<br/>";
2012-05-23 12:56:34 +00:00
$file = new QuestionsFile("questions.xml");
$question = $file->get_question($id);
$question->print_test();
2012-05-22 15:01:33 +00:00
?>
2012-05-22 14:05:46 +00:00
<html>
<head>
<meta charset="utf8" />
</head>
<body>
<h1>Validation de la question</h1>
2012-05-23 12:56:34 +00:00
<h3>Rappel de la question</h3>
<?php $question->print_test() ?><br/>
2012-05-22 14:05:46 +00:00
Vous pouvez valider la question. Cliquez simplement sur le
lien ci dessous.<br/>
<input type="button" value="Valider la question"
2012-05-23 16:16:55 +00:00
onclick="<?php $question->validated(); $file->save() ?>"/>
2012-05-22 14:05:46 +00:00
</body>
</html>