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
| <? require "Includes/fonctions.php"; ?>
<br><hr width="100%"><br><div class="titre">Selectionnez la personne</div><br><br>
<?
//liste des personnes de l'encadrement
echo "<form name='formencadrement' method='post' action=''>";
echo "<br><br><br>";
$reqmvt="select NOM_ENCADREMENT, PRENOM_ENCADREMENT, NUM_ENCADREMENT from ENCADREMENT order by NOM_ENCADREMENT"
$mvt=mysql_query($reqmvt)or die(mysql_error());
echo "<select name='encadrement'><option value=''>-- Selectionnez --</option>";
while ($row=mysql_fetch_array($mvt))
{
$nom=strtoupper($row["NOM_ENCADREMENT"]);
$prenom=strtolower($row["PRENOM_ENCADREMENT"]);
$prenom=ucfirst($prenom);
echo "<option value=''>".$nom." ".$prenom."</option>";
echo "<option value='".$row["NUM_ENCADREMENT"]."'";
if(isset ($_POST['discipline']) && ($row["NUM_DISCIPLINE"]==$_POST['discipline']))
{
echo ' selected="selected" ';
}
echo ">".$txt."</option>";
}
echo "<input type='submit' name='submit' value='Valider Resultat' class='bouton'>";
echo "</form>";
?>
<?
$longeur_max=60;
//premier formulaire : choix de la discipline
//liste des fédérations
echo "<form name='formdiscipline' method='post' action=''>";
echo "<br><br><br>";
$reqmvt="select NUM_DISCIPLINE, NOM_DISCIPLINE from DISCIPLINE order by NOM_DISCIPLINE";
$mvt=mysql_query($reqmvt);
echo "<select name='discipline'><option value=''>-- Selectionnez --</option>";
while ($row=mysql_fetch_array($mvt))
{
$txt=Tronquer_Texte($row["NOM_DISCIPLINE"], $longeur_max);
echo "<option value='".$row["NUM_DISCIPLINE"]."'";
if(isset ($_POST['discipline']) && ($row["NUM_DISCIPLINE"]==$_POST['discipline']))
{
echo ' selected="selected" ';
}
echo ">".$txt."</option>";
}
echo "<input type='submit' name='submit' value='Valider Resultat' class='bouton'>";
echo "</form>";
if (isset($_POST['discipline']))
{
if ($_POST['discipline']!=NULL)
{
echo "<form name='formcomite' method='post' action=''>";
echo "<br><br><br>";
$comite="select NUM_COMITE, NOM_COMITE FROM COMITE, LIGUE, FEDERATION, DISCIPLINE WHERE comite.num_ligue=ligue.num_ligue AND federation.num_federation=discipline.num_federation AND ligue.num_federation=federation.num_federation AND discipline.num_discipline=".$_POST['discipline'];
$reqcomite=mysql_query($comite)or die(mysql_error());
echo "<select name='comite'><option value=''>-- Selectionnez --</option>";
while ($row=mysql_fetch_array($reqcomite))
{
$txt=Tronquer_Texte($row["NOM_COMITE"], $longeur_max);
echo "<option value='".$row["NUM_COMITE"]."'";
if(isset ($_POST['comite']) && ($row["NUM_COMITE"]==$_POST['comite']))
{
echo ' selected="selected" ';
}
echo ">".$txt."</option>";
}
echo "</select><br><br>";
echo "<input type='submit' name='submit' value='Valider Resultat' class='bouton'>";
echo '<input type="hidden" name="discipline" value="' .$_POST['discipline']. '">';
echo "</form>";
if(isset($_POST['comite']))
{
if ($_POST['comite']!=NULL)
{
echo "<form name='formclub' method='post' action=''>";
$club="select NUM_CLUB, NOM_CLUB FROM CLUB WHERE club.num_comite=".$_POST['comite'];
$reqclub=mysql_query($club)or die(mysql_error());
echo "<select name='club'><option value=''>-- Selectionnez --</option>";
while ($row=mysql_fetch_array($reqclub))
{
$txt=Tronquer_Texte($row["NOM_CLUB"], $longeur_max);
echo "<option value='".$row["NUM_CLUB"]."'>".$txt."</option>";
}
echo "</select><br><br>";
echo "<input type='submit' name='submit' value='Valider Resultat' class='bouton'>";
echo '<input type="hidden" name="discipline" value="' .$_POST['discipline']. '">';
echo "</form>";
}
}
}
}
?> |