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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
|
<form name="form1" method="post" action="modent3.php">
<?php
$tab=$_POST['select'];
//On extrait le numéro de licence uniquement
$i=0; //Initilisation du compteur
while (substr($tab,$i,1)!='-') { $i++; }
//On va vercher dans la table de licencies le nom du joueur à partir de sa licence.
$licence= substr($tab,0,$i);
$res=chercher_joueur($licence);
$tab=mysql_fetch_array($res);
$nom=$tab[1];
//On fait une selection des paramètres dans la table entraineur
$res=chercher_entraineur($licence);
$tab=mysql_fetch_array($res);
?>
<table width="497" border="1">
<tr>
<td width="198"><strong>Numéro de licence </strong></td>
<td width="215"><input name="txtlicence" type="text" id="txtlicence" disabled <?php echo "value='$licence'"; ?> style="color:#000000 "> <input name="txtlicence" type="hidden" id="txtlicence" <?php echo "value='$licence'"; ?>></td>
<td width="62"> </td>
</tr>
<tr>
<td><strong>Nom et prénom </strong></td>
<td><input name="txtnom" type="text" id="txtnom" disabled <?php echo "value='$nom'"; ?> style="color:#000000 "> <input name="txtnom" type="hidden" id="txtnom" <?php echo "value='$nom'"; ?>></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Formation la plus élevée </strong></td>
<td><strong>Nouvelle formation obtenue </strong></td>
<td> </td>
</tr>
<tr>
<td><input name="txtderform" type="text" id="txtderform" disabled style="color:#000000 " <?php echo "value=$tab[2]"; ?>>
<input name="txtderform" type="hidden" id="txtderform" <?php echo "value=$tab[2]"; ?>></td>
<td><select name="selectform" id="selectform"></select></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Année de la dernière formation </strong></td>
<td><strong>Année d'obtention de la nouvelle formation </strong></td>
<td><input type="submit" name="Submit" value="Envoyer"></td>
</tr>
<tr>
<td><input name="txtanderform" type="text" id="txtanderform" disabled style="color:#000000 " <?php echo "value='$tab[3]'"; ?>>
<input name="txtanderform" type="hidden" id="txtanderform" <?php echo "value='$tab[3]'"; ?>></td>
<td><select name='selectannee' id='selectannee'>
<?php
$annee=date("Y");
$val=listedannee($annee);
foreach ($val as $value)
{
if ($annee!=$value)
{ echo ("<option>".($value)."</option>"); }
else
{ echo ("<option selected>".($value)."</option>"); }
} ?></select>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Ligue d'obtention </strong></td>
<td><strong>Ligue d'obtention </strong></td>
<td> </td>
</tr>
<tr>
<td nowrap><input name="txtligueform" type="text" id="txtligueform" disabled style="color:#000000 " <?php echo "value='$tab[4]'"; ?> >
<input name="txtligueform" type="hidden" id="txtligueform" disabled style="color:#000000 " <?php echo "value='$tab[4]'"; ?> >
<td><input name="txtliguenouvform" type="text" id="txtliguenouvform" value="Ligue des Pays de Loire" ></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>Date du dernier recyclage </strong></td>
<td><strong>Date du nouveau recyclage </strong></td>
<td> </td>
</tr>
<tr>
<td><input name="txtdatederrecycl" type="text" id="txtdatederrecycl" style="color:#000000" disabled <?php echo "value=$tab[5]"; ?> >
<input name="txtdatederrecycl" type="hidden" id="txtdatederrecycl" <?php echo "value=$tab[5]"; ?>></td>
<td><select name="selectjr" id="selectjr">
<option selected>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
/
<select name="selectmois" id="selectmois">
<option selected>01</option>
<option>02</option>
<option>03</option>
<option>04</option>
<option>05</option>
<option>06</option>
<option>07</option>
<option>08</option>
<option>09</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
/
<select name="selectanrecycl" id="selectanrecycl">
<?php
$annee=date("Y");
$tab=listedannee($annee);
foreach ($tab as $value)
{
if ($annee==$value)
{ echo "<option selected>$value</option>"; }
else
{ echo "<option>$value</option>"; }
}
?>
</select></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><strong>SUPPRIMER cet entraineur ? </strong></td>
<td><input type="radio" name="radiobutton" value="supprimer">
OUI ------
<input name="radiobutton" type="radio" value="nosupprimer" checked>
NON</td>
<td> </td>
</tr>
</table>
</form> |
Partager