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