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
| <?php
$host = 'localhost';
$user = 'root';
$pass = '';
$base="Gestionn";
?>
<?php
echo "<?xml version=\"1.0\" encoding=\"iso-8859-15\"?>" ;
//Pr?paration pour r?cup?rer touts les noms d'employ?s par la suite :
$requete1 = "SELECT nom FROM module ";
$requete2 = "SELECT * FROM module,matiere where module.id=matiere.idModule";
$requete3 = "SELECT NiveauEtud FROM etudiant";
$requete4 = "SELECT Distinct FiliereEtud FROM etudiant";
$connexion = mysql_connect($host,$user,$pass);
mysql_select_db($base,$connexion);
?>
<h2>quel classe et quelle matiere voulez vous noter?</h2>
<form action="nouvelle_note.php" method="post">
<fieldset>
<p>
<tr><td>
<label><strong><font color="blue">Modules :</font></strong></label>
<select name="module" id="module">
<?php
$resultat1 = mysql_query ($requete1, $connexion);
while ( ($module = mysql_fetch_object ($resultat1)))
{
echo '<option value="' . $module->nom . '">' . $module->nom .'</option>';
}
?>
</select>
<p>
<tr><td>
<label><strong><font color="blue">Matiere :</font></strong></label>
<select name="Matiere" id="matiere">
<?php
$resultat2 = mysql_query ($requete2, $connexion);
while ( ($matiere = mysql_fetch_object ($resultat2)))
{
echo '<option value="' . $matiere->titre . '">' . $matiere->titre .'</option>';
}
?>
</select>
<p>
<tr><td>
<label><strong><font color="blue">Filiere :</font></strong></label>
<select name="Filiere" id="etudiant">
<?php
$resultat = mysql_query ($requete4, $connexion);
while ( ($etudiant = mysql_fetch_object ($resultat)))
{
echo '<option value="' . $etudiant->FiliereEtud . '">' . $etudiant->FiliereEtud .'</option>';
}
?>
</select>
</p>
<p>
<tr><td>
<label><strong><font color="blue">Niveau :</font></strong></label>
<select name="Nom" id="etudiant">
<?php
$resultat = mysql_query ($requete3, $connexion);
while ( ($etudiant = mysql_fetch_object ($resultat)))
{
echo '<option value="' . $etudiant->NiveaEtud . '">' . $etudiant->NiveauEtud .'</option>';
}
?>
</select>
</p>
<p><input type="submit" value="Afficher"></p>
</fieldset>
</form> |
Partager