show fini, formulaire pour créer une question PT
This commit is contained in:
41
src/main/webapp/Question.html
Normal file
41
src/main/webapp/Question.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="UTF-8">
|
||||
<html lang="fr">
|
||||
<body>
|
||||
<h1>Creer une Question</h1>
|
||||
<form action="QuestionInfo" method="POST">
|
||||
<input type="hidden" name="action" value="createSession">
|
||||
Ennoncé de la question : <input type="text" name="question"><br/>
|
||||
Type :
|
||||
<select id="type" name="type">
|
||||
<option value="choix">Choix multiple</option>
|
||||
<option value="courte">Réponse courte</option>
|
||||
</select><br/>
|
||||
<div id="DivChoix">
|
||||
Choix possible (séparez avec des retour à la ligne):<br/>
|
||||
<textarea id="choixPossible" name="choixPossible" rows="5" cols="40"></textarea><br/>
|
||||
</div>
|
||||
Réponse autorisée (séparez avec des retour à la ligne):<br/>
|
||||
<textarea id="reponse" name="reponse" rows="5" cols="40"></textarea><br/>
|
||||
ID Quizz: <input type="number" name="idQuizz"><br/>
|
||||
<input type="submit" value="Creer Session">
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
const select = document.getElementById('type');
|
||||
const contenu1 = document.getElementById('DivChoix');
|
||||
|
||||
select.addEventListener('change', function () {
|
||||
if (this.value === 'choix') {
|
||||
contenu1.style.display = 'block';
|
||||
} else{
|
||||
contenu1.style.display = 'none';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="UTF-8">
|
||||
<html lang="en">
|
||||
<body>
|
||||
<form action="QuizzInfo" method="POST">
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="UTF-8">
|
||||
<html lang="en">
|
||||
<body>
|
||||
<h1>Creer une session</h1>
|
||||
<form action="SessionInfo" method="POST">
|
||||
<input type="hidden" name="action" value="createSession">
|
||||
Theme: <input type="text" name="theme">
|
||||
CodePin <input type="number" name="codePIN">
|
||||
<input type="submit" value="Creer Session">
|
||||
</form>
|
||||
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
<a href =http://localhost:8080/UserInfo.html>myform</a>
|
||||
<a href =http://localhost:8080/Session.html>session</a>
|
||||
<a href =http://localhost:8080/Quizz.html>Quizz</a>
|
||||
<a href =http://localhost:8080/Question.html>Question</a>
|
||||
|
||||
|
||||
<a href =Show>show</a>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user