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