style for thanksValidation

This commit is contained in:
Bertrand 2012-06-15 14:12:05 +02:00
parent b011a9caab
commit fb5754d595
5 changed files with 25 additions and 16 deletions

View File

@ -1,6 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<?php <?php
include("Question.class.php");
include("QuestionsFile.class.php");
$id = $_GET['id']; $id = $_GET['id'];
$fileQ = new QuestionsFile("questions.xml"); $fileQ = new QuestionsFile("questions.xml");
@ -36,10 +41,10 @@ $question = $fileQ->get_question($id);
</article> </article>
<article> <article>
<h2>Modifier la question...</h2>
<form id="formulaire" method="post" action="validateChangeQuestion.php"> <form id="formulaire" method="post" action="validateChangeQuestion.php">
<section id="Form"> <section id="Form">
<article id="list">
<label for="course">De quelle matière s'agit-il ?</label><br/> <label for="course">De quelle matière s'agit-il ?</label><br/>
<select name="course" id="course"> <select name="course" id="course">
@ -77,9 +82,7 @@ $question = $fileQ->get_question($id);
<option value="Autre" selected>Autre</option> <option value="Autre" selected>Autre</option>
</optgroup> </optgroup>
</select> </select>
</article>
<article>
<p id="questionPart"> <p id="questionPart">
<label id="q" for="question"> <label id="q" for="question">
Quelle est votre question ? </label><br/> Quelle est votre question ? </label><br/>
@ -107,12 +110,14 @@ $question = $fileQ->get_question($id);
Si la question vous semble corect, vous pouvez directement Si la question vous semble corect, vous pouvez directement
la confirmer ici:<br/> la confirmer ici:<br/>
<a href= <?php "http://".$_SERVER["SERVER_NAME"] <a href=<?php echo "http://".$_SERVER["SERVER_NAME"]
. dirname($_SERVER["REQUEST_URI"]) . . dirname($_SERVER["REQUEST_URI"])."/confirmation.php?id="
"/confirmation.php?id=".$question->getId();?>> . $question->getId() ?>>Confirmer la question</a>
Valider la question</a>
</article> </article>
</section> </section>
<?php include('footer.html') ?>
<body> <body>
<html> <html>

7
footer.html Normal file
View File

@ -0,0 +1,7 @@
<footer>
<h3>Liens utiles</h3>
<ul>
<li><a href="http://mastercorp.epita.eu" target="_blank">
Le site Mastercorp</a></li>
</ul>
</footer>

View File

@ -171,13 +171,8 @@
</form> </form>
</section> </section>
<footer>
<h3>Liens utiles</h3> <?php include('footer.html') ?>
<ul>
<li><a href="http://mastercorp.epita.eu" target="_blank">
Le site Mastercorp</a></li>
</ul>
</footer>
</body> </body>
</html> </html>

View File

@ -93,7 +93,7 @@ cette adresse email.\n\n"
."Adresse de confirmation de la question:\n" ."Adresse de confirmation de la question:\n"
. "http://".$_SERVER["SERVER_NAME"] . "http://".$_SERVER["SERVER_NAME"]
. dirname($_SERVER["REQUEST_URI"])."/confirmation.php?id=" . dirname($_SERVER["REQUEST_URI"])."/changeQuestion.php?id="
. $quest->getId() . $quest->getId()
. "\n\n Merci beaucoup de votre participation\n" . "\n\n Merci beaucoup de votre participation\n"

View File

@ -38,6 +38,8 @@ else
<h1>Nemubot Questions (BETA)</h1> <h1>Nemubot Questions (BETA)</h1>
</div> </div>
</header> </header>
<section id="introduction">
<article id="validate"> <article id="validate">
<h2><?php echo $message ?></h2> <h2><?php echo $message ?></h2>
@ -60,6 +62,6 @@ Amusez vous bien.
</p> </p>
<p> <p>
</article> </article>
</section>
</body> </body>
</html> </html>