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
| <!DOCTYPE html>
<html>
<head>
<title>Marquer l'absence</title>
<meta charset="utf-8">
</head>
<body>
<p><strong> 1- Vous devez selectionner la filiére puis cliquer sur 'chercher' ça sert à afficher tous les étudiants inscrient dans la filiére que vous avez choisi<br>2- Reselectionner la filiére sans toucher 'chercher' et choisit les absents puis cliquer sur 'Marquer' </strong></p>
<form method="POST" action="">
<label for="filiereabs">Quelle filiére?</label>
<select name="filiereabs" id="filiereabs">
<?php $filiereexistabs=$bdd->query('SELECT * FROM filiere'); ?>
<optgroup label="Filiere">
<?php while($filiereabs_exist=$filiereexistabs->fetch()) { ?>
<option value="<?php echo $filiereabs_exist['ID_Filiere']; ?>"><?php echo $filiereabs_exist['Abr_Filiere']; ?></option>
<?php } ?>
</optgroup>
</select><br>
<input type="submit" name="chercher" value="chercher">
<br><br>
<table border="1" width="1000px">
<tr>
<th>ID_Etudiant</th><th>Nom</th><th>Prenom</th><th>Code Massar</th><th>Filiére</th><th>Année</th><th>Telephone</th><th>Marquer</th>
</tr>
<?php
if(isset($_POST['chercher']))
{
$filiereabs=$_POST['filiereabs'];
$filierechercher=$bdd->prepare('SELECT * From filiere inner join etudiants on filiere.ID_Filiere=etudiants.ID_Filiere WHERE filiere.ID_Filiere=?');
$filierechercher->execute(array($filiereabs));
while($info=$filierechercher->fetch())
{?>
<tr>
<td><?php echo $info['ID_Etudiant']; ?></td>
<td><?php echo $info['NomEtu']; ?></td>
<td><?php echo $info['PrenomEtu'] ;?></td>
<td><?php echo $info['Code_Massar']; ?></td>
<td><?php echo $info['Abr_Filiere'] ;?></td>
<td><?php echo $info['Annee_Etude']; ?></td>
<td><?php echo $info['Telephone']; ?></td>
</tr>
<?php }} ?> |
Partager