Add classes to abstract Users and Courses
Can refuse a question (email the author) Can modify question before validation
This commit is contained in:
parent
6e9554e2f2
commit
42fec70edf
14 changed files with 667 additions and 401 deletions
79
thanks.php
79
thanks.php
|
|
@ -1,52 +1,47 @@
|
|||
<!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>
|
||||
<!DOCTYPE html><html>
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<link rel="Stylesheet" href="style.css" />
|
||||
<meta charset="utf-8">
|
||||
<link rel="Stylesheet" href="style.css">
|
||||
<title>Every Questions (BETA)</title>
|
||||
</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 (BETA)</h1>
|
||||
</div>
|
||||
<a href="http://www.h2g2.com" target="_blank">
|
||||
<img src="marvin-robot_normal.png" alt="" id="banner"/>
|
||||
</a>
|
||||
<h1>Nemubot Questions (BETA)</h1>
|
||||
</header>
|
||||
<section id="introduction">
|
||||
<article id="validate">
|
||||
<h2>Merci de votre participation!</h2>
|
||||
<p>
|
||||
Votre question a bien été ajoutée à la liste.<br/>
|
||||
Un email vous a été envoyé pour que vous confirmiez que
|
||||
Vous êtes bien l'auteur de la question.
|
||||
</p>
|
||||
<?php
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
<p>
|
||||
Rappels de la question :<br/>
|
||||
<?php $question->print_test(); ?>
|
||||
</p>
|
||||
<p>
|
||||
Vous pouvez proposer de nouvelles questions en cliquant
|
||||
sur le lien ci-dessous.<br/>
|
||||
<a href="index.php">Proposer une nouvelle question</a>
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
$id = $_GET['id'];
|
||||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
|
||||
<?php include('footer.html') ?>
|
||||
|
||||
</body>
|
||||
if (isset($question))
|
||||
{
|
||||
?>
|
||||
<section id="introduction">
|
||||
<article id="validate">
|
||||
<h2>Merci de votre participation !</h2>
|
||||
<p>
|
||||
Votre question a bien été enregistrée et est en attente de
|
||||
validation.<br>
|
||||
Un courrier électronique vient de vous ê envoyé pour que vous
|
||||
confirmiez que vous êtes bien l'auteur de la question.
|
||||
</p>
|
||||
<p>
|
||||
Vous pouvez proposer de nouvelles questions en cliquant
|
||||
<a href="./#newquestion">ici</a> !
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
header("Location: ./");
|
||||
include('footer.html') ?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Reference in a new issue