parent
165b1fcbd9
commit
42aa62aece
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
global $twig;
|
||||||
|
|
||||||
|
|
||||||
|
echo $twig->render('head.html.twig', [
|
||||||
|
'title' => "Quiz",
|
||||||
|
'style' => "public/styles/styleEndQuiz.css",
|
||||||
|
'scripts' => array("public/script/theme-toggle.js")
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Rendu du bandeau
|
||||||
|
echo $twig->render('bandeau.html.twig');
|
||||||
|
|
||||||
|
echo $twig->render('endQuizRandom.html.twig',
|
||||||
|
['score' => $score
|
||||||
|
]);
|
||||||
|
?>
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
global $twig;
|
||||||
|
|
||||||
|
echo $twig->render('head.html.twig', [
|
||||||
|
'title' => "Random Quiz",
|
||||||
|
'style' => "public/styles/styleQuiz.css",
|
||||||
|
'scripts' => array("public/script/theme-toggle.js")
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Rendu du bandeau
|
||||||
|
echo $twig->render('bandeau.html.twig');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo $twig->render('quizRandom.html.twig', [
|
||||||
|
'vie' => $vie,
|
||||||
|
'question' => $question,
|
||||||
|
'nb' => $no_question + 1
|
||||||
|
]);
|
@ -0,0 +1,12 @@
|
|||||||
|
<h1>Résultat</h1>
|
||||||
|
<div class="resultat">
|
||||||
|
|
||||||
|
<p> nombre de réponse juste : {{ score }}</p>
|
||||||
|
|
||||||
|
<a class="suiv" href="{{racine}}/accueilQuiz" alt="Retour selection quiz">
|
||||||
|
<img src="images/suivant.png" />
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,27 @@
|
|||||||
|
<h1>Quiz Random</h1>
|
||||||
|
<div class="quiz">
|
||||||
|
<h2> {{ question.question }} </h2>
|
||||||
|
|
||||||
|
<h3>Vie restante : {{ vie }}</h3>
|
||||||
|
|
||||||
|
<form id="quizForm" method="POST" >
|
||||||
|
<div class="answers">
|
||||||
|
<button class="answer" name="answera" value="{{ question.answera }}">
|
||||||
|
{{ question.answera }}
|
||||||
|
</button>
|
||||||
|
<button class="answer" name="answerb" value="{{ question.answerb }}">
|
||||||
|
{{ question.answerb }}
|
||||||
|
</button>
|
||||||
|
<button class="answer" name="answerc" value="{{ question.answerc }}">
|
||||||
|
{{ question.answerc }}
|
||||||
|
</button>
|
||||||
|
<button class="answer" name="answerd" value="{{ question.answerd }}">
|
||||||
|
{{ question.answerd }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<input type="hidden" name="canswer" value="{{ question.canswer }}">
|
||||||
|
</form>
|
||||||
|
<a id="timer">{{ nb }}/∞</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in new issue