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
| <?php
$r_an = "SELECT distinct an FROM ATS_statut where type='CA' order by an desc";
$res = mysql_query($r_an);
echo '<p align="center"><select name="ch_an">';
while($val=mysql_fetch_array($res)) {
echo "<option>".$val["an"]."</option>\n";
}
echo '</select></p>';
$r_ca = mysql_query ("SELECT * FROM `ATS_statut` LEFT JOIN ATS_membre ON ATS_statut.passeport = ATS_membre.passeport
where ATS_statut.actif='O' and ATS_statut.type='CA' and ATS_statut.an=" . $val["an"] . " order by ATS_membre.nom,ATS_membre.prenom" );
echo '<table align="center" border="1" cellpadding="3">';
echo '<caption><h2>Conseil d\'administration</h2></caption>';
echo '<tr>';
echo '<th width="175">Identification</th>';
echo '<th>Poste occupé</th>';
echo '<th>Note</th>';
echo '</tr>';
while ($var = mysql_fetch_array ($r_ca))
{
echo '<tr>';
echo '<td>'.htmlspecialchars($var['nom']).' '.htmlspecialchars($var['prenom']).'</td>';
echo '<td>'.htmlspecialchars($var['poste_occupe']).'</td>';
echo '<td>'.htmlspecialchars($var['note']).'</td>';
echo '</tr>';
}
echo '</table>';
mysql_close(); //Deconnection...
?> |
Partager