- $debut_table .= '<th>'.$periode->nom_abrege.'</th>';\r
-$debut_table .= '<th>remarques</th>\r
- </tr>';\r
- \r
-$clan_courant = null;\r
-\r
-while($participant = mysql_fetch_object($participants))\r
-{ \r
- if ($clan_courant !== $participant->clan_nom)\r
- {\r
- echo ($participant->clan_nom != '' ? '</table><h1>'.traitement_pre_affichage($participant->clan_nom).'</h1>' : ''), $debut_table;\r
- $clan_courant = $participant->clan_nom;\r
+{
+ $debut_table .= '<th>'.$periode->nom_abrege.'</th>';
+ $nb_periode++;
+}
+$debut_table .= '<th>remarques</th>
+ </tr>';
+
+$clan_courant = null;
+
+echo '<table class="inscrits">';
+while($participant = mysql_fetch_object($participants))
+{
+ if ($clan_courant !== $participant->clan_nom)
+ {
+ echo ($participant->clan_nom != '' ? '<tr><td colspan="'. ($nb_periode + 4) .'"><h1>'.traitement_pre_affichage($participant->clan_nom).'</h1></td>' : ''), $debut_table;
+ $clan_courant = $participant->clan_nom;