-
Notifications
You must be signed in to change notification settings - Fork 0
/
remplir-examen.php
98 lines (96 loc) · 5.49 KB
/
remplir-examen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!Doctype html>
<html lang="FR">
<head>
<meta charset="UTF-8">
<title>Creation Exam</title>
<link rel="stylesheet" href="css/bootstrap.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/remplir-examen.css">
<link rel="stylesheet" href="js/bootstrap.js">
<script src="js/jquery-3.5.1.min.js"> </script>
<script src="js/remplir-examen.js"></script>
</head>
<body>
<div class="container">
<div class="row justify-content-center">
<h1 class="titre">Formulaire de creation d'un examen </h1>
</div>
</div>
<div class="container" id="main">
<form id="examen" action="examen.php" method="POST">
<div class="form-row create-examen">
<div class="form-group col-md-4">
<label for="classe">Classe</label>
<input class="form-control" type="text" id="classe" name="classe" placeholder="Classe"/>
</div>
<div class="form-group col-md-4">
<label for="classe">Code cours</label>
<input class="form-control" type="text" id="code_cours" name="code_cours" placeholder="code cours"/>
</div>
<div class="form-group col-md-4">
<label for="matiere">Matiere</label>
<input class="form-control" type="text" id="matiere" name="matiere" placeholder="Matiere"/>
</div>
<div class="form-group col-md-4">
<label for="semestre">Nom du professeur</label>
<input class="form-control" type="text" id="nom" name="nom" placeholder="Nom" />
</div>
<div class="form-group col-md-4">
<label for="semestre">Prenom du professeur</label>
<input class="form-control" type="text" id="prenom" name="prenom" placeholder="Prenom" />
</div>
<div class="form-group col-md-4">
<label for="date"> Date </label>
<input class="form-control" type="date" id="date" name="date" />
</div>
<div class="form-group col-md-4 nbExos">
<label for="date"> Nombre d'exercice </label>
<input class="form-control" type="text" id="nbExos" name="nbExos" value="10" />
</div>
</div>
<div class="form-row">
<?php
$i = 1;
while($i <= 10) { ?>
<div class="form-group col-md-6 create-question">
<h3 class="title-exo">Exercice <?= $i?></h3>
<div class="form-group col-md-12">
<label for="classe">Description</label>
<input class="form-control shadow bg-white rounded" type="text" id="description<?= $i?>" name="description<?= $i?>" placeholder="Description"/>
</div>
<div class="form-group col-md-12" id="question<?= $i?>">
<div class="form-group shadow-textarea ">
<label for="question">Question 1</label>
<textarea class="form-control z-depth-1 shadow bg-white rounded" id="question" name="question<?= $i?>" rows="3" placeholder="Ecrire la question ici..."></textarea>
</div>
</div>
<div class="form-group col-md-12 nbQuestion">
<label for="nbFilm">Nombre de Question</label>
<input class="form-control" type="text" id="nbQues<?= $i?>" name="nbQues<?= $i?>" value="1" />
</div>
<div class="form-group col-md-12">
<button class="btn btn-success" type="button" id="addQuestions" onclick="addQuestion(<?= $i?>)" ><i class="fa fa-plus"></i> Ajouter une question</button>
</div>
<div class="form-group col-md-12 line-separator">
<hr style="height:2px;border-width:0;color:gray;background-color:gray">
</div>
</div>
<?php
$i++;
}
?>
</div>
<div class="form-group addExo11">
<input class="form-check-input" type="checkbox" id="addExo11Input" onclick="verifCheckedQuestion11()">
<label class="form-check-label" for="addExo11Input">Ajouter un onzième(11) exercice</label>
</div>
<div id="validerTout">
</div>
<div class="form-group col-md-12 valider">
<button class="btn btn-primary" type="submit" name="valider">Valider</button>
</div>
</div>
</form>
</div>
</body>
</html>