2 if($le_participant->valide
)
3 echo '<p>Modification de mes infos</p>';
5 echo'<p><em>Les personnes inscrites s\'engagent à être présentes à la LAN et à payer la somme convenue.</em></p>
6 <p>Elles peuvent se désinscrirent en cas d\'empèchements majeurs.</p>';
9 <form id
="formulaireInscription" method
="post" action
="inscription.html">
11 if($le_participant->valide
)
12 echo '<p><input type="hidden" name="modification_participant" value="1" /></p>';
14 echo '<p><input type="hidden" name="inscription" value="1" /></p>';
18 <col id
="inscriptionColonneNom" />
19 <col id
="inscriptionColonneValeur" />
23 pseudo
<span
class="miniInfo">(login
)</span
>
26 <input type
="text" maxlength
="50" name
="pseudo" value
="<?=$le_participant->valide ? $le_participant->info->pseudo : $_POST["pseudo
"]?>" />
31 password
<span
class="miniInfo">(pour pouvoir par la suite modifier mes infos
)</span
>
34 <input type
="password" size
="10" maxlength
="10" name
="pass1" value
="<?=$le_participant->valide ? $le_participant->info->password : $_POST["pass1
"]?>" />
35 re
: <input type
="password" maxlength
="10" size
="10" name
="pass2" value
="<?=$le_participant->valide ? $le_participant->info->password : $_POST["pass2
"]?>" />
43 <input type
="text" maxlength
="30" size
="15" name
="clan_nom" value
="<?=$le_participant->valide ? $le_participant->info->clan_nom : $_POST["clan_nom
"]?>" />
44 <select id
="clanChoix" name
="clanChoix" size
="1">
45 <option value
="0" selected
="selected">clans existants
</option
>
47 $res = mysql_query("SELECT DISTINCT clan_nom, clan_tag FROM participants WHERE clan_nom != '' OR clan_tag != ''");
48 while($info_clan = mysql_fetch_object($res))
50 echo '<option value = "', $info_clan->clan_nom
, ';', $info_clan->clan_tag
, '">', $info_clan->clan_nom
!= '' ? $info_clan->clan_nom
: $info_clan->clan_tag
, '</option>';
61 <input type
="text" maxlength
="10" name
="clan_tag" value
="<?=$le_participant->valide ? $le_participant->info->clan_tag : $_POST['clan_tag']?>" />
69 <input type
="text" maxlength
="30" name
="nom" value
="<?=$le_participant->valide ? $le_participant->info->nom : $_POST['nom']?>" />
77 <input type
="text" maxlength
="30" name
="prenom" value
="<?=$le_participant->valide ? $le_participant->info->prenom : $_POST['prenom']?>" />
85 <input type
="text" maxlength
="30" name
="age" value
="<?=$le_participant->valide ? $le_participant->info->age : $_POST['age']?>" />
90 email
<span
class="miniInfo">(non
-public)</span
>
93 <input type
="text" maxlength
="30" name
="e_mail" value
="<?=$le_participant->valide ? $le_participant->info->e_mail : $_POST['e_mail']?>" />
103 SELECT periodes.id, periodes.nom, participations.participant_id
105 LEFT JOIN participations ON periodes.id = participations.periode_id
106 AND participations.participant_id = ".($le_participant->valide
? $le_participant->info
->id
: "0")."
109 while($periode = mysql_fetch_object($res))
111 echo '<p><input name="periodes[]" value="'.$periode->id
.'" '.((!$le_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>';
121 <span id
="prix"></span
> CHF
129 <textarea cols
="30" rows
="5" name
="remarques"><?=$le_participant->valide
? $le_participant->info
->remarques
: $_POST['remarques']?></textarea
>
133 if (!$le_participant->valide
)
137 j\'ai bien lu et suis d\'accord avec le préambule
140 <input type="checkbox" name="accord" ',($_POST['accord'] ? 'checked="true"' : ''),'/>
145 <p
><input type
="submit" value
="OK" /></p
>