3 if ($config->get("inscription_terminees"))
5 echo '<p><em>Les inscriptions sont terminées !</em></p>';
9 if ($participant->valide
)
10 echo '<p>Modification de mes infos</p>';
12 echo'<p><em>Les personnes inscrites s\'engagent à être présentes à la LAN et à payer la somme convenue.</em></p><p>Elles peuvent se désinscrirent en cas d\'empèchements majeurs.</p>';
15 <form id
="formulaireInscription" method
="post" action
="inscription.html">
17 if($participant->valide
)
18 echo '<p><input type="hidden" name="modification_participant" value="1" /></p>';
20 echo '<p><input type="hidden" name="inscription" value="1" /></p>';
24 <col id
="inscriptionColonneNom" />
25 <col id
="inscriptionColonneValeur" />
29 pseudo
<span
class="miniInfo">(login
)</span
>
32 <input type
="text" maxlength
="50" name
="pseudo" value
="<?=$participant->valide ? $participant->info->pseudo : $_POST["pseudo
"]?>" />
37 password
<span
class="miniInfo">(pour pouvoir par la suite modifier mes infos
)</span
>
40 <input type
="password" size
="10" maxlength
="10" name
="pass1" value
="<?=$participant->valide ? $participant->info->password : $_POST["pass1
"]?>" />
41 re
: <input type
="password" maxlength
="10" size
="10" name
="pass2" value
="<?=$participant->valide ? $participant->info->password : $_POST["pass2
"]?>" />
49 <input type
="text" maxlength
="30" size
="15" name
="clan_nom" value
="<?=$participant->valide ? $participant->info->clan_nom : $_POST["clan_nom
"]?>" />
50 <select id
="clanChoix" name
="clanChoix" size
="1">
51 <option value
="0" selected
="selected">clans existants
</option
>
53 $res = mysql_query("SELECT DISTINCT clan_nom, clan_tag FROM participants WHERE clan_nom != '' OR clan_tag != ''");
54 while($info_clan = mysql_fetch_object($res))
56 echo '<option value = "', $info_clan->clan_nom
, ';', $info_clan->clan_tag
, '">', $info_clan->clan_nom
!= '' ? $info_clan->clan_nom
: $info_clan->clan_tag
, '</option>';
67 <input type
="text" maxlength
="10" name
="clan_tag" value
="<?=$participant->valide ? $participant->info->clan_tag : $_POST['clan_tag']?>" />
75 <input type
="text" maxlength
="30" name
="nom" value
="<?=$participant->valide ? $participant->info->nom : $_POST['nom']?>" />
83 <input type
="text" maxlength
="30" name
="prenom" value
="<?=$participant->valide ? $participant->info->prenom : $_POST['prenom']?>" />
91 <input type
="text" maxlength
="30" name
="age" value
="<?=$participant->valide ? $participant->info->age : $_POST['age']?>" />
96 email
<span
class="miniInfo">(non
-public)</span
>
99 <input type
="text" maxlength
="30" name
="e_mail" value
="<?=$participant->valide ? $participant->info->e_mail : $_POST['e_mail']?>" />
109 SELECT periodes.id, periodes.nom, participations.participant_id
111 LEFT JOIN participations ON periodes.id = participations.periode_id
112 AND participations.participant_id = ".($participant->valide
? $participant->info
->id
: "0")."
115 while($periode = mysql_fetch_object($res))
117 echo '<p><input name="periodes[]" value="'.$periode->id
.'" '.((!$participant->valide
&& (!$_POST['periodes'] || in_array($periode->id
, $_POST['periodes']))) || $periode->participant_id
? 'checked="checked"' : '').' id="periode'.$periode->id
.'" type="checkbox" /><label for="periode'.$periode->id
.'" />'.$periode->nom
.'</label></p>';
127 <span id
="prix"></span
> CHF
135 <textarea cols
="30" rows
="5" name
="remarques"><?=$participant->valide
? $participant->info
->remarques
: $_POST['remarques']?></textarea
>
139 if (!$participant->valide
)
143 j\'ai bien lu et suis d\'accord avec le préambule
146 <input type="checkbox" name="accord" ',($_POST['accord'] ? 'checked="true"' : ''),'/>
151 <p
><input type
="submit" value
="OK" /></p
>