You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.8 KiB

<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="css/jquery-3.5.1.js"></script>
<link rel="stylesheet" href="css/VueAdmin.css">
</head>
<body>
<form style="border:1px solid #ccc" method="GET" action="../Traitement/AjoutQuestion.php">
<div class="container">
<h1>Ajouter une question</h1>
<hr>
<label><b>TP n° : </b></label>
<input type="text" placeholder="Numéro du TP " id="tp" name='tp' required>
<label><b>Date début de tp </b></label>
<input type="date" id="debut" name='debut' required><br/><br/>
<label><b>Date fin de tp </b></label>
<input type="date" id="fin" name='fin' required><br/><br/><br/>
<div >
<input type="button" value="Valider" onclick="SubmitAjoutDate()" />
</div>
</div>
</form>
<div id="erreur">
</div>
<form method="get">
<input id="inp-questions" class="bouton" type="submit" name="action" value="Afficher les questions" hidden>
</form>
</body>
<script>
function SubmitAjoutDate() {
var tp = $('#tp').val();
var debut = $('#debut').val();
var fin = $('#fin').val();
alert('ok');
//alert(debut+'____'+fin)
$.get("Traitement/DateTp.php", { debut : debut, fin : fin , tp :tp },
function(data) {
$('#erreur').html(data);
});
}
</script>
</html>