0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
179afa7f |
3 | {* Copyright (C) 2003-2008 Polytechnique.org *} |
0337d704 |
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 | <h1>Trombinoscope</h1> |
25 | |
7b2413f6 |
26 | <form enctype="multipart/form-data" action="photo/change" method="post"> |
0337d704 |
27 | {if ($session.promo ge 1995) || ($session.promo le 2002)} |
28 | <p> |
29 | Si tu n'as pas encore fourni de photo, c'est celle du trombinoscope de l'X qui est |
a7de4ef7 |
30 | affichée par défaut dans le profil. Si elle ne te plaît pas, ou si tu n'es quand même |
0337d704 |
31 | plus un tos, tu peux la remplacer par ta photo en suivant les instructions suivantes. |
32 | </p> |
33 | {/if} |
34 | |
35 | <table class="bicol" cellspacing="0" cellpadding="2"> |
36 | <tr> |
37 | <th> |
38 | Photo actuelle |
39 | </th> |
40 | <th> |
41 | Photo en cours de validation<sup>(*)</sup> |
42 | </th> |
43 | </tr> |
44 | <tr> |
45 | <td class="center"> |
7b2413f6 |
46 | <img src="photo/{$smarty.session.forlife}" width="200" alt=" [ PHOTO ] " /> |
0337d704 |
47 | </td> |
48 | <td class="center half"> |
49 | {if $submited} |
7b2413f6 |
50 | <img src="photo/{$smarty.session.forlife}/req" width="200" alt=" [ PHOTO ] " /> |
0337d704 |
51 | {else} |
52 | Pas d'image soumise |
53 | {/if} |
54 | </td> |
55 | </tr> |
56 | <tr> |
57 | <td colspan="2" class="smaller"> |
a7de4ef7 |
58 | * Les photos sont soumises à une validation manuelle en raison des législations relatives |
59 | aux droits d'auteur et à la protection des mineurs. Il faut donc attendre l'intervention |
0337d704 |
60 | d'un administrateur pour que la photo soit prise en compte. Tu recevras un mail lorsque ta |
a7de4ef7 |
61 | photo aura été contrôlée. |
0337d704 |
62 | </td> |
63 | </tr> |
64 | <tr> |
65 | <th colspan="2"> |
a7de4ef7 |
66 | Actions immédiates |
0337d704 |
67 | </th> |
68 | </tr> |
69 | <tr> |
70 | <td {if !$submited}colspan="2"{/if} class="center"> |
e8439508 |
71 | Si tu ne souhaites plus montrer cette photo tu peux aussi l'effacer en la remplaçant par : <br /> |
0337d704 |
72 | {if $has_trombi_x} |
73 | <input type="submit" value="Trombino de l'X" name="trombi" /><br /> |
74 | {/if} |
a7de4ef7 |
75 | <input type="submit" value="Image par défaut" name="suppr" /> |
0337d704 |
76 | </td> |
77 | {if $submited} |
78 | <td class="center"> |
e8439508 |
79 | Tu peux annuler ta soumission et garder ta photo actuelle : <br /> |
0337d704 |
80 | <input type="submit" value="Annuler ta soumission" name="cancel" /> |
81 | </td> |
82 | {/if} |
83 | </tr> |
84 | <tr> |
85 | <th colspan="2"> |
86 | Changement de ta photo |
87 | </th> |
88 | </tr> |
89 | <tr> |
90 | <td colspan="2"> |
91 | <p> |
a7de4ef7 |
92 | Nous te proposons deux possibilités pour mettre à jour ta photo (30 Ko maximum). Tout dépend |
93 | de savoir où se trouve ta photo. Si elle est sur ton poste de travail local, c'est la première |
0337d704 |
94 | solution qu'il faut choisir. |
95 | </p> |
96 | <p> |
a7de4ef7 |
97 | Si elle est sur Internet, choisis la seconde solution et nos robots iront la télécharger |
e8439508 |
98 | directement où il faut :-) |
0337d704 |
99 | </p> |
100 | </td> |
101 | </tr> |
102 | <tr> |
103 | <td class="titre"> |
104 | Sur ton ordinateur |
105 | </td> |
106 | <td class="titre"> |
107 | Sur Internet |
108 | </td> |
109 | </tr> |
110 | <tr> |
111 | <td> |
112 | <input name="userfile" type="file" size="20" maxlength="150" /> |
113 | </td> |
114 | <td> |
115 | <input type="text" size="45" maxlength="140" name="photo" |
116 | value="{$smarty.request.photo|default:"http://www.multimania.com/joe/maphoto.jpg"}" /> |
117 | </td> |
118 | </tr> |
119 | <tr> |
120 | <td class="center"> |
121 | <input type="submit" value="Envoyer !" name="upload" /> |
122 | </td> |
123 | <td class="center"> |
124 | <input type="submit" value="Envoyer !" name="upload" /> |
125 | </td> |
126 | </tr> |
127 | </table> |
128 | |
129 | </form> |
130 | |
131 | |
a7de4ef7 |
132 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |