1 {**************************************************************************}
3 {* Copyright (C) 2003-2008 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
24 <h1>Trombinoscope</h1>
26 <form enctype="multipart/form-data" action="photo/change" method="post">
28 {if ($session.promo ge 1995) || ($session.promo le 2002)}
30 Si tu n'as pas encore fourni de photo, c'est celle du trombinoscope de l'X qui est
31 affichée par défaut dans le profil. Si elle ne te plaît pas, ou si tu n'es quand même
32 plus un tos, tu peux la remplacer par ta photo en suivant les instructions suivantes.
36 <table class="bicol" cellspacing="0" cellpadding="2">
42 Photo en cours de validation<sup>(*)</sup>
47 <img src="photo/{$smarty.session.forlife}" width="200" alt=" [ PHOTO ] " />
49 <td class="center half">
51 <img src="photo/{$smarty.session.forlife}/req" width="200" alt=" [ PHOTO ] " />
58 <td colspan="2" class="smaller">
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
61 d'un administrateur pour que la photo soit prise en compte. Tu recevras un mail lorsque ta
62 photo aura été contrôlée.
71 <td {if !$submited}colspan="2"{/if} class="center">
72 Si tu ne souhaites plus montrer cette photo tu peux aussi l'effacer en la remplaçant par : <br />
74 <input type="submit" value="Trombino de l'X" name="trombi" /><br />
76 <input type="submit" value="Image par défaut" name="suppr" />
80 Tu peux annuler ta soumission et garder ta photo actuelle : <br />
81 <input type="submit" value="Annuler ta soumission" name="cancel" />
87 Changement de ta photo
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
95 solution qu'il faut choisir.
98 Si elle est sur Internet, choisis la seconde solution et nos robots iront la télécharger
99 directement où il faut :-)
113 <input name="userfile" type="file" size="20" maxlength="150" />
116 <input type="text" size="45" maxlength="140" name="photo"
117 value="{$smarty.request.photo|default:"http://www.multimania.com/joe/maphoto.jpg"}" />
122 <input type="submit" value="Envoyer !" name="upload" />
125 <input type="submit" value="Envoyer !" name="upload" />
133 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}