22847f4150147433550e1407907a7942e9c2c378
[cl7.git] / tx_inscription.php
1 <?php # coding:utf-8
2 if($le_participant->valide)
3 echo '<p>Modification de mes infos</p>';
4 else
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>';
7 ?>
8
9 <form id="formulaireInscription" method="post" action="<?php echo($le_participant->valide?'inscrits':'bienvenue'), '.html'; ?>">
10 <?php
11 if($le_participant->valide)
12 echo '<p><input type="hidden" name="modification_participant" value="1" /></p>';
13 else
14 echo '<p><input type="hidden" name="inscription" value="1" /></p>';
15 ?>
16 <table>
17 <colgroup>
18 <col id="inscriptionColonneNom" />
19 <col id="inscriptionColonneValeur" />
20 </colgroup>
21 <tr>
22 <td>
23 pseudo <span class="miniInfo">(login)</span>
24 </td>
25 <td>
26 <input type="text" maxlength="50" name="pseudo" <?php echo($le_participant->valide?('value="'.$le_participant->info->pseudo.'"'):''); ?> />
27 </td>
28 </tr>
29 <tr>
30 <td>
31 password <span class="miniInfo">(pour pouvoir par la suite modifier mes infos)</span>
32 </td>
33 <td>
34 <input type="password" size="10" maxlength="10" name="pass1" <?php echo($le_participant->valide?('value="'.$le_participant->info->password.'"'):''); ?> />
35 re: <input type="password" maxlength="10" size="10" name="pass2" <?php echo($le_participant->valide?('value="'.$le_participant->info->password.'"'):''); ?> />
36 </td>
37 </tr>
38 <tr>
39 <td>
40 clan name
41 </td>
42 <td>
43 <input type="text" maxlength="30" size="15" name="clan_nom" <?php echo($le_participant->valide?('value="'.$le_participant->info->clan_nom.'"'):''); ?> />
44 <select id="clanChoix" name="clanChoix" size="1">
45 <option value ="0" selected="selected">clans existants</option>
46 <?php
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))
49 {
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>';
51 }
52 ?>
53 </select>
54 </td>
55 </tr>
56 <tr>
57 <td>
58 clan tag
59 </td>
60 <td>
61 <input type="text" maxlength="10" name="clan_tag" <?php echo($le_participant->valide?('value="'.$le_participant->info->clan_tag.'"'):''); ?> />
62 </td>
63 </tr>
64 <tr>
65 <td>
66 nom
67 </td>
68 <td>
69 <input type="text" maxlength="30" name="nom" <?php echo($le_participant->valide?('value="'.$le_participant->info->nom.'"'):''); ?> />
70 </td>
71 </tr>
72 <tr>
73 <td>
74 prénom
75 </td>
76 <td>
77 <input type="text" maxlength="30" name="prenom" <?php echo($le_participant->valide?('value="'.$le_participant->info->prenom.'"'):''); ?> />
78 </td>
79 </tr>
80 <tr>
81 <td>
82 age
83 </td>
84 <td>
85 <input type="text" maxlength="30" name="age" <?php echo($le_participant->valide?('value="'.$le_participant->info->age.'"'):''); ?> />
86 </td>
87 </tr>
88 <tr>
89 <td>
90 email <span class="miniInfo">(non-public)</span>
91 </td>
92 <td>
93 <input type="text" maxlength="30" name="e_mail" <?php echo($le_participant->valide?('value="'.$le_participant->info->e_mail.'"'):''); ?> />
94 </td>
95 </tr>
96 <tr>
97 <td>
98 remarques
99 </td>
100 <td>
101 <textarea cols="30" rows="5" name="remarques"><?php echo($le_participant->valide?$le_participant->info->remarques:''); ?></textarea>
102 </td>
103 </tr>
104 <?php
105 if (!$le_participant->valide)
106 echo'
107 <tr>
108 <td>
109 j\'ai bien lu et suis d\'accord avec le préambule
110 </td>
111 <td>
112 <input type="checkbox" name="accord" />
113 </td>
114 </tr>';
115 ?>
116 </table>
117 <p><input type="submit" value="OK" /></p>
118 </form>