df5fd302b8dbea0230966583b856e34585104f18
[platal.git] / templates / profile / general.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23
24 {include file="profile/applis.js.tpl"}
25   <table class="bicol" style="margin-bottom: 1em"
26     summary="Profil : Informations générales">
27     <tr>
28       <th colspan="2">
29         Informations générales
30       </th>
31     </tr>
32     <tr>
33       <td colspan="2" class="pflags">
34         <table class="flags" cellspacing="0" summary="Flags">
35           <tr>
36             <td class="vert">
37               <input type="checkbox" disabled="disabled" checked="checked" />
38             </td>
39             <td class="texte">
40               site public
41             </td>
42           </tr>
43         </table>
44       </td>
45     </tr>
46     <tr>
47       <td class="colg">
48         <span class="titre">Nom</span>
49         <span class="comm"></span>
50       </td>
51       <td class="cold">
52         <input type='text' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
53       </td>
54     </tr>
55     <tr>
56       <td class="colg">
57         <span class="titre">Prénom</span>
58         <span class="comm"></span>
59       </td>
60       <td class="cold">
61         <input type='text' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
62       </td>
63     </tr>
64     <tr>
65       <td class="colg">
66         <span class="titre">Promotion</span>
67       </td>
68       <td class="cold">
69         <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
70         <span class="lien"><a href="profile/orange">modifier</a>{if ($promo_sortie -3 == $promo)} pour les oranges{/if}</span>
71       </td>
72     </tr>     
73     <tr>
74       <td class="colg">
75         <span class="titre">Nom d'usage</span><br />
76         {if $smarty.session.sexe}
77         <span class="comm">(Notamment nom d'épouse)</span>
78         {else}
79         <span class="comm">(si différent de {$nom} seulement)</span>
80         {/if}
81       </td>
82       <td class="cold">
83         <span class="nom">{$nom_usage|default:"Aucun"}</span>
84         <span class="lien"><a href="profile/usage">modifier</a></span>
85       </td>
86     </tr>
87     <tr>
88       <td class="colg">
89         <span class="titre">Nationalité</span>
90       </td>
91       <td class="cold">
92         <select name="nationalite">
93           {select_nat valeur=$nationalite}
94         </select>
95       </td>
96     </tr>
97     <tr>
98       <td class="colg">
99         <span class="titre">Application</span><br />
100         <span class="comm">(4ème année de l'X)</span>
101       </td>
102       <td class="cold">
103         <select name="appli1[id]" onchange="fillType(this.form['appli1[type]'], this.selectedIndex-1);">  
104           {applis_options selected=$appli1.id}
105         </select>
106         <br />
107         <select name="appli1[type]">
108           <option value=""></option>
109         </select>
110         <script type="text/javascript">
111           <!--
112           fillType(document.forms.prof_annu['appli1[type]'], document.forms.prof_annu['appli1[id]'].selectedIndex-1);
113           selectType(document.forms.prof_annu['appli1[type]'], '{$appli1.type}');
114           //-->
115         </script>
116       </td>
117     </tr>
118     <tr>
119       <td class="dcolg">
120         <span class="titre">Post-application</span>
121       </td>
122       <td class="dcold">
123         <select name="appli2[id]" onchange="fillType(this.form['appli2[type]'], this.selectedIndex-1);">
124           {applis_options selected=$appli2.id}
125         </select>
126         <br />
127         <select name="appli2[type]">
128           <option value=""></option>
129         </select>
130         <script type="text/javascript">
131           <!--
132           fillType(document.forms.prof_annu['appli2[type]'], document.forms.prof_annu['appli2[id]'].selectedIndex-1);
133           selectType(document.forms.prof_annu['appli2[type]'], '{$appli2.type}');
134           //-->
135         </script>
136       </td>
137     </tr>
138   </table>
139
140 {if !$no_private_key}
141   <table class="bicol"  style="margin-bottom: 1em"
142     summary="Profil : Informations générales">
143     <tr>
144       <th>
145         Synchronisation avec l'AX
146       </th>
147     </tr>
148     <tr>
149       <td>
150         <p>
151           Le service annuaire de l'<a href='http://www.polytechniciens.com'>AX</a> met à jour l'annuaire papier à partir des informations que tu lui fournis. Tu peux choisir ici d'envoyer directement les données de ta fiche Polytechnique.org vers ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a>.
152         </p>
153         <p>
154           L'opération de synchronisation prend en compte toutes les informations que tu as marquées comme transmises à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations sur ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a> selon ce qui s'y trouve déjà.
155         </p>
156         <p class="center">
157           <a href="profile/edit/general?synchro_ax=confirm" onclick="return confirm('Es-tu sûr de vouloir lancer la synchronisation ?')"><input type="button" value="Synchroniser"/></a>
158         </p>
159       </td>
160     </tr>
161     <tr>
162       <td class="col">
163         <table class="flags" cellspacing="0" summary="Flags">
164           <tr>
165             <td class="orange">
166               <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
167             </td>
168             <td class="texte">
169               Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
170             </td>
171           </tr>
172         </table>
173       </td>
174     </tr>
175   </table>
176 {/if}
177
178   <table class="bicol"  style="margin-bottom: 1em"
179     summary="Profil: Trombinoscope">
180     <tr>
181       <th colspan="3">
182         Trombinoscope
183       </th>
184     </tr>
185     <tr>
186       <td class="col" colspan="3">
187         Pour profiter de cette fonction intéressante, tu dois disposer 
188         quelque part (sur ton ordinateur ou sur Internet) d'une photo
189         d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
190         <div class="center">
191           <span class="lien">
192             <a href="photo/change">Éditer ta photo</a>
193           </span>
194         </div>
195       </td>
196     </tr>
197     <tr>
198       <td class="col" colspan="3">
199         <table class="flags" cellspacing="0" summary="Flags">
200           <tr>
201             <td class="vert">
202               <input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
203             </td>
204             <td class="texte">
205               site public
206             </td>
207           </tr>
208         </table>
209         <table cellspacing="0" cellpadding="0" summary="Trombinoscope">
210           <tr>
211             <td class="dcold">
212               Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
213               de changer ta photo, celle-ci correspond à ton ancien
214               profil car la nouvelle n'a pas encore été validée par un administrateur du site !
215               <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
216               {/if} :
217             </td>
218             <td class="dcolg">
219               <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " />
220             </td>
221           </tr>
222         </table>
223       </td>
224     </tr>
225   </table>
226   <table class="bicol" style="margin-bottom: 1em"
227     summary="Profil: Divers">
228     <tr>
229       <th colspan="2">
230         Divers
231       </th>
232     </tr>
233     <tr>
234       <td colspan="2" class="pflags">
235         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
236           <tr>
237             <td class="rouge">
238               <input type="checkbox" disabled="disabled" checked="checked" />
239             </td>
240             <td class="texte">
241               privé
242             </td>
243           </tr>
244         </table>
245       </td>
246     </tr>
247     <tr>
248       <td class="colg">
249         <span class="titre">Surnom</span>
250       </td>
251       <td class="cold">
252         <input type="text" size="35" maxlength="64"
253                {if $errors.nick}class="error"{/if} name="nick" value="{$nick}" />
254       </td>
255     </tr>
256     <tr>
257       <td colspan="2" class="pflags">
258         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
259           <tr>
260             <td class="vert">
261               <input type="radio" name="mobile_pub" {if $mobile_pub eq 'public'}checked="checked"{/if} value='public' />
262             </td>
263             <td class="texte">
264               site public
265             </td>
266             <td class="orange">
267               <input type="radio" name="mobile_pub" {if $mobile_pub eq 'ax'}checked="checked"{/if} value='ax' />
268             </td>
269             <td class="texte">
270               transmis à l'AX
271             </td>
272             <td class="rouge">
273               <input type="radio" name="mobile_pub" {if $mobile_pub eq 'private'}checked="checked"{/if} value='private' />
274             </td>
275             <td class="texte">
276               privé
277             </td>
278             <td class="texte">
279               <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
280             </td>
281           </tr>
282         </table>
283       </td>
284     </tr>
285     <tr>
286       <td class="colg">
287         <span class="titre">Téléphone mobile</span>
288       </td>
289       <td class="cold">
290         <input type="text" size="18" maxlength="18" name="mobile"
291                {if $errors.mobile}class="error"{/if} value="{$mobile}" />
292       </td>
293     </tr>
294     <tr>
295       <td colspan="2" class="flags">
296         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
297           <tr>
298             <td class="vert">
299               <input type="checkbox" name="web_pub" {if $web_pub eq 'public'}checked="checked"{/if} />
300             </td>
301             <td class="texte">
302               site public
303             </td>
304             <td class="texte">
305               <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
306             </td>
307           </tr>
308         </table>
309       </td>
310     </tr>
311     <tr>
312       <td class="dcolg">
313         <span class="titre">Page web Perso</span>
314       </td>
315       <td class="dcold">
316         <input type="text" size="35" maxlength="95" name="web"  
317                {if $errors.web}class="error"{/if} value="{$web}" />
318       </td>
319     </tr>
320     <tr>
321       <td colspan="2" class="pflags">
322         <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
323           <tr>
324             <td class="vert">
325               <input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
326             </td>
327             <td class="texte">
328               site public
329             </td>
330             <td class="texte">
331               <a href="Xorg/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
332             </td>
333           </tr>
334         </table>
335       </td>
336     </tr>
337     <tr>
338       <td class="dcolg">
339         <div>
340           <span class="titre">Complément libre</span>
341           <span class="comm">Commentaire ? ICQ ? etc...</span>
342         </div>
343         <div class="smaller" style="margin-top: 30px">
344           <a href="wiki_help/notitle" class="popup3">
345             {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée pour le commentaire
346           </a>
347           <div class="center">
348             <input type="submit" name="preview" value="Aperçu" 
349                     onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
350           </div>
351         </div>
352       </td>
353       <td class="dcold">
354         <div id="ft_preview" style="display: none"></div>
355         <textarea name="freetext" {if $errors.freetext}class="error"{/if}
356                   id="freetext" rows="8" cols="35" >{$freetext}</textarea>
357       </td>
358     </tr>
359   </table>
360
361 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}