?
This commit is contained in:
parent
f3af3ffc25
commit
9034baa2b3
2 changed files with 28 additions and 4 deletions
|
|
@ -1,5 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<script language="javascript">
|
||||
var nbAnswer = 1;
|
||||
function add()
|
||||
{
|
||||
var element = document.createElement("input");
|
||||
|
||||
element.setAttribute("type", "text");
|
||||
element.setAttribute("id", "answer");
|
||||
element.setAttribute("name", "answer" + nbAnswer);
|
||||
nbAnswer++;
|
||||
element.setAttribute("placeholder", "Nouvelle réponse");
|
||||
|
||||
var foo = document.getElementById("answerList");
|
||||
foo.appendChild(element);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
include("Question.class.php");
|
||||
|
|
@ -41,12 +59,11 @@ $question = $fileQ->get_question($id);
|
|||
</article>
|
||||
|
||||
<article>
|
||||
<h2>Modifier la question...</h2>
|
||||
<h2>Modifier la question... (cette partie ne fonctionn pas ...</h2>
|
||||
<form id="formulaire" method="post" action="validateChangeQuestion.php">
|
||||
|
||||
<input type="hidden" name="id" id="id" value=<?php echo $question->getId() ?> />
|
||||
<input type="hidden" name="id" id="id" value=<?php echo $question->getId() ?> />
|
||||
|
||||
<section id="Form">
|
||||
<label for="course">De quelle matière s'agit-il ?</label><br/>
|
||||
|
||||
<select name="course" id="course">
|
||||
|
|
@ -104,6 +121,9 @@ $question = $fileQ->get_question($id);
|
|||
<input type="submit" name="send" value="Envoyer" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<article>
|
||||
|
|
|
|||
Reference in a new issue