Merge branch 'platal-0.9.15'
[platal.git] / templates / profile / trombino.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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 <h1>Trombinoscope</h1>
25
26 <form enctype="multipart/form-data" action="photo/change" method="post">
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
30   affichée par défaut dans le profil. Si elle ne te plaît pas, ou si tu n'es quand même
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">
46         <img src="photo/{$smarty.session.forlife}" width="200" alt=" [ PHOTO ] " />
47       </td>
48       <td class="center half">
49         {if $submited}
50         <img src="photo/{$smarty.session.forlife}/req" width="200" alt=" [ PHOTO ] " />
51         {else}
52         Pas d'image soumise
53         {/if}
54       </td>
55     </tr>
56     <tr>
57       <td colspan="2" class="smaller">
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
60         d'un administrateur pour que la photo soit prise en compte. Tu recevras un mail lorsque ta
61         photo aura été contrôlée.
62       </td>
63     </tr>
64     <tr>
65       <th colspan="2">
66         Actions immédiates
67       </th>
68     </tr>
69     <tr>
70       <td {if !$submited}colspan="2"{/if} class="center">
71         Si tu ne souhaites plus montrer cette photo tu peux aussi l'effacer en la remplaçant par&nbsp;: <br />
72         {if $has_trombi_x}
73         <input type="submit" value="Trombino de l'X" name="trombi" /><br />
74         {/if}
75         <input type="submit" value="Image par défaut" name="suppr" />
76       </td>
77       {if $submited}
78       <td class="center">
79         Tu peux annuler ta soumission et garder ta photo actuelle&nbsp;: <br />
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>
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
94         solution qu'il faut choisir.
95         </p>
96         <p>
97         Si elle est sur Internet, choisis la seconde solution et nos robots iront la télécharger
98         directement où il faut&nbsp;:-)
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
132 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}