75 lines
1.5 KiB
PHP
Executable File
75 lines
1.5 KiB
PHP
Executable File
<html>
|
|
<body bgcolor="ffffff">
|
|
<center>
|
|
<H1>TENNIS CORPORATIF DU TREGOR SAISON 2003-2004</H1>
|
|
|
|
|
|
<?php
|
|
$nb_equip=$HTTP_POST_VARS['nb_equip'];
|
|
$nb_div=$HTTP_POST_VARS['nb_div'];
|
|
$nb_terrain=$HTTP_POST_VARS['nb_terrain'];
|
|
|
|
if(is_numeric($nb_equip) && is_numeric($nb_div) && is_numeric($nb_terrain))
|
|
{
|
|
echo "<H1> Nom des equipes et leur division</H1>";
|
|
echo "<form action=\"formulaire3.php\" method=\"post\">";
|
|
echo "<table border>";
|
|
echo "<tr>";
|
|
echo "<td>equipes</td><td>divisions</td>";
|
|
echo "</tr>";
|
|
for ($i=0;$i<$nb_equip; $i++)
|
|
{
|
|
echo "<tr>";
|
|
echo "<td>";
|
|
echo "equip$i";
|
|
echo "<input size=16 maxlength=16 name=\"equip[]\" >";
|
|
echo "</td>";
|
|
echo "<td>";
|
|
echo "<SELECT NAME=\"div_equip[]\" >";
|
|
echo "<OPTION SELECTED>";
|
|
echo "0";
|
|
for ($j=1;$j<$nb_div; $j++)
|
|
{
|
|
echo "<OPTION>";
|
|
echo "$j";
|
|
}
|
|
echo "</SELECT>";
|
|
echo "</td>";
|
|
echo "</tr>";
|
|
}
|
|
echo "</table>";
|
|
echo "<br>";
|
|
echo "<H1> Nom des terrains</H1>";
|
|
echo "<br>";
|
|
echo"(ex:BEGARD_mercredi_20h)";
|
|
echo "<br>";
|
|
echo "<table border>";
|
|
|
|
for ($i=0;$i<$nb_terrain; $i++)
|
|
{
|
|
echo "<tr>";
|
|
echo "<td>";
|
|
echo "terrain$i";
|
|
echo "</td>";
|
|
echo "<td>";
|
|
echo "<input size=16 maxlength=16 name=\"terrain[]\" >";
|
|
echo "</td>";
|
|
echo "<td>";
|
|
}
|
|
echo "</table>";
|
|
echo "<input type=\"submit\" value=\"OK\">";
|
|
echo "<input type=\"hidden\" name=\"nb_div\" value=\"$nb_div\">";
|
|
echo "</form>";
|
|
}
|
|
else
|
|
{
|
|
echo "problem:";
|
|
echo "nb_equip:$nb_equip<br>";
|
|
echo "nb_div:$nb_div<br>";
|
|
echo "nb_div:$nb_div<br>";
|
|
}
|
|
?>
|
|
|
|
</body>
|
|
</html>
|