Horrible design
This commit is contained in:
parent
4c4d737f9a
commit
8b9ce4aadd
4 changed files with 99 additions and 40 deletions
|
|
@ -1,4 +1,19 @@
|
|||
<!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" />
|
||||
|
|
@ -10,19 +25,8 @@
|
|||
lien ci dessous.<br/>
|
||||
|
||||
<input type="button" value="Valider la question"
|
||||
onclick="validate()"/>
|
||||
onclick="<?php print_questions(); ?>"/>
|
||||
|
||||
|
||||
<?php
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
$id = $_GET['id'];
|
||||
$file = new QuestionsFile('questions.xml');
|
||||
|
||||
$questions = $file->get_question($id);
|
||||
$question->print_test();
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Reference in a new issue