X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpages%2Finscrits.php;fp=php%2Fpages%2Finscrits.php;h=b5df9b21594c39db20d7c65f9a026c2d8a64723b;hb=557974b66bba86b74181d2b18569ee897eac60a8;hp=0000000000000000000000000000000000000000;hpb=019791caa57d7e07206cb917ff39bf14f728c83f;p=cl7.git diff --git a/php/pages/inscrits.php b/php/pages/inscrits.php new file mode 100644 index 0000000..b5df9b2 --- /dev/null +++ b/php/pages/inscrits.php @@ -0,0 +1,55 @@ + + pseudo + nom + prénom'; +$nb_periode = 0; +while($periode = mysql_fetch_object($periodes)) +{ + $debut_table .= ''.$periode->nom_abrege.''; + $nb_periode++; +} +$debut_table .= 'remarques + '; + +$clan_courant = null; + +echo ''; +while($participant = mysql_fetch_object($participants)) +{ + if ($clan_courant !== $participant->clan_nom) + { + echo ($participant->clan_nom != '' ? '' : ''), $debut_table; + $clan_courant = $participant->clan_nom; + } + + $participations = mysql_query(" + SELECT periodes.nom, participations.participant_id FROM periodes + LEFT JOIN participations ON periodes.id = participations.periode_id AND participations.participant_id = ".$participant->id." + ORDER BY id + "); + + echo ''; + echo ''; + echo ''; + echo ''; + while ($participation = mysql_fetch_object($participations)) + echo ''; + + echo ''; + echo ''; +} +echo '

'.traitement_pre_affichage($participant->clan_nom).'

', htmlentities($participant->clan_tag, ENT_QUOTES, "UTF-8"), traitement_pre_affichage($participant->pseudo), '', traitement_pre_affichage($participant->nom), '', traitement_pre_affichage($participant->prenom), 'participant_id == $participant->id ? 'class="participe"' : '').'>', traitement_pre_affichage($participant->remarques), '
'; +?> +