From: gburri Date: Fri, 7 Nov 2008 23:54:33 +0000 (+0000) Subject: MOD patch de kiki -> #95 X-Git-Tag: cl7~8 X-Git-Url: https://git.euphorik.ch/?a=commitdiff_plain;h=7ba28ff47a9cec801736677a79b3bf4d3a5adb03;p=cl7.git MOD patch de kiki -> #95 git-svn-id: svn://localhost/cl7/trunk@15 4c3d3983-c6fa-4c6c-9935-18c3bbef1bf0 --- diff --git a/index.php b/index.php index e1d6fb1..575f4b0 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,4 @@ - 'Accueil', 'jeux_joues' => 'Jeux joués', 'inscription' => 'Inscription', - 'inscrits' => 'Inscrits', + 'inscrits' => 'Inscrits', 'http://www.euphorik.ch/#page="minichat";conv=[1642]' => 'Chat', 'contacts' => 'Contacts', #'mods' => 'Mods', @@ -39,10 +39,10 @@ echo ''; echo ''; echo ''; ?> - Corcelles-Lan 7 - + Corcelles-Lan 7 + - + @@ -50,36 +50,40 @@ echo '';
-
-
- 1 ? 's' : ''; - echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; - } - ?> -
- Corcelles-Lan 7 +
+
+ 1 ? 's' : ''; + echo "Il reste ", $nb_places_libres, " place", $s, " libre", $s; + } + ?> +
+ Corcelles-Lan 7
-
'; + include("php/menu_droit.php"); + echo '
'; + } switch ($page) { case 'acceuil': diff --git a/php/tx_inscrits.php b/php/tx_inscrits.php index eac8390..b394d76 100644 --- a/php/tx_inscrits.php +++ b/php/tx_inscrits.php @@ -1,50 +1,55 @@ - - - pseudo - nom +$periodes = mysql_query("SELECT nom_abrege FROM periodes ORDER BY id"); +$debut_table = ' + + pseudo + nom prénom'; +$nb_periode = 0; while($periode = mysql_fetch_object($periodes)) - $debut_table .= ''.$periode->nom_abrege.''; -$debut_table .= 'remarques - '; - -$clan_courant = null; - -while($participant = mysql_fetch_object($participants)) -{ - if ($clan_courant !== $participant->clan_nom) - { - echo ($participant->clan_nom != '' ? '

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

' : ''), $debut_table; - $clan_courant = $participant->clan_nom; +{ + $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 ''; + 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), '
', 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), '
'; -?> + + echo '', traitement_pre_affichage($participant->remarques), ''; + echo ''; +} +echo ''; +?> +