| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2009 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 | {if $ask_naissance} |
| 24 | |
| 25 | {include file='include/form_naissance.tpl'} |
| 26 | |
| 27 | {else} |
| 28 | |
| 29 | <h1 id='pagetop'> |
| 30 | Bienvenue {$smarty.session.yourself_name}{if $birthday} |
| 31 | et joyeux anniversaire de la part de toute l'équipe ! |
| 32 | {else}, |
| 33 | {/if} |
| 34 | </h1> |
| 35 | |
| 36 | {if $smarty.session.host} |
| 37 | <div class="smaller"> |
| 38 | {if $birthday}T{else}t{/if}a connexion précédente date du |
| 39 | <strong>{$smarty.session.lastlogin|date_format:"%x, %X"}</strong> |
| 40 | depuis la machine <strong>{$smarty.session.host}</strong>. |
| 41 | </div> |
| 42 | {/if} |
| 43 | |
| 44 | {if $smarty.session.no_redirect} |
| 45 | <div class="errors"> |
| 46 | <ul> |
| 47 | <li> |
| 48 | Tu n'as plus de redirection valide ce qui rend ton adresse Polytechnique.org |
| 49 | inutilisable. Rends-toi au plus vite sur <a href="emails/redirect">la page de |
| 50 | gestion des emails</a> pour corriger ce problème. |
| 51 | </li> |
| 52 | </ul> |
| 53 | </div> |
| 54 | {/if} |
| 55 | |
| 56 | {if $smarty.session.mx_failures|@count} |
| 57 | <div class="warnings"> |
| 58 | {icon name=error} Des problèmes sont actuellement recontrés sur tes redirections suivantes : |
| 59 | <ul> |
| 60 | {foreach from=$smarty.session.mx_failures item=mail} |
| 61 | <li> |
| 62 | <span class="erreur">{$mail.mail}</span> : |
| 63 | <span class="explication">{$mail.text}</span> |
| 64 | </li> |
| 65 | {/foreach} |
| 66 | </ul> |
| 67 | <div style="text-align: center"><a href="emails/redirect">Gérer mes adresses de redirection</a></div> |
| 68 | </div> |
| 69 | {/if} |
| 70 | |
| 71 | {if $fiche_incitation || $photo_incitation || ($geoloc_incitation > 0)} |
| 72 | <div class="warnings"> |
| 73 | <ul> |
| 74 | {if $fiche_incitation} |
| 75 | <li> |
| 76 | La dernière mise à jour de ta |
| 77 | <a href="profile/{$smarty.session.hruid}" class="popup2">fiche</a> |
| 78 | date du {$fiche_incitation|date_format}. |
| 79 | Il est possible qu'elle ne soit pas à jour. |
| 80 | Si tu souhaites la modifier, <a href="profile/edit">clique ici !</a> |
| 81 | </li> |
| 82 | {/if} |
| 83 | |
| 84 | {if $photo_incitation} |
| 85 | <li> |
| 86 | Tu n'as pas mis de photo de toi sur ta fiche, c'est dommage. |
| 87 | Clique <a href="photo/change">ici</a> si tu souhaites en ajouter une. |
| 88 | </li> |
| 89 | {/if} |
| 90 | |
| 91 | {if $geoloc_incitation > 0} |
| 92 | <li> |
| 93 | Parmi tes adresses, il y en a {$geoloc_incitation} que nous n'avons pas pu localiser. |
| 94 | Clique <a href="profile/edit/adresses">ici</a> pour rectifier. |
| 95 | </li> |
| 96 | {/if} |
| 97 | </ul> |
| 98 | </div> |
| 99 | {/if} |
| 100 | |
| 101 | {include file="include/tips.tpl" full=true} |
| 102 | |
| 103 | <table class="tinybicol" id="menu-evts"> |
| 104 | {foreach from=$events name=events key=category item=evenement} |
| 105 | <tr class="pair" style="height: 18px"> |
| 106 | <td class="half titre" style="height: 18px; padding-top: 1px; padding-bottom: 1px;"> |
| 107 | {if $smarty.foreach.events.first} |
| 108 | {if $smarty.session.core_rss_hash} |
| 109 | <a href="rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces"> |
| 110 | {icon name=feed title='fil rss'} |
| 111 | </a> |
| 112 | {else} |
| 113 | <a href='prefs/rss?referer=events' style="display:block;float:right"> |
| 114 | {icon name=feed_add title='Activer mon fil rss'} |
| 115 | </a> |
| 116 | {/if} |
| 117 | {/if} |
| 118 | {if $category eq 'important'} |
| 119 | {icon name=error} Informations prioritaires : |
| 120 | {elseif $category eq 'news'} |
| 121 | {icon name=bell} Nouvelles annonces : |
| 122 | {elseif $category eq 'end'} |
| 123 | {icon name=clock} Dernières minutes : |
| 124 | {else} |
| 125 | {icon name=magnifier} Mais encore... |
| 126 | {/if} |
| 127 | </td> |
| 128 | </tr> |
| 129 | {foreach item=ev from=$evenement} |
| 130 | <tr class="impair"> |
| 131 | <td class="half"> |
| 132 | • |
| 133 | <a href="events{if !$ev.nonlu}/unread/{$ev.id}{else}#newsid{$ev.id}{/if}" id="link-evt{$ev.id}"> |
| 134 | {if $ev.nonlu}<strong>{/if} |
| 135 | {tidy} |
| 136 | {$ev.titre|nl2br} |
| 137 | {/tidy} |
| 138 | {if $ev.nonlu}</strong>{/if} |
| 139 | </a> |
| 140 | </td> |
| 141 | </tr> |
| 142 | {assign var="has_evts" value=true} |
| 143 | {/foreach} |
| 144 | {/foreach} |
| 145 | {if !$has_evts} |
| 146 | <tr> |
| 147 | <td class="half"> |
| 148 | {if $smarty.session.core_rss_hash} |
| 149 | <a href="rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Annonces"> |
| 150 | {icon name=feed title='fil rss'} |
| 151 | </a> |
| 152 | {else} |
| 153 | <a href='prefs/rss?referer=events' style="display:block;float:right"> |
| 154 | {icon name=feed_add title='Activer mon fil rss'} |
| 155 | </a> |
| 156 | {/if} |
| 157 | Aucun article actuellement |
| 158 | </td> |
| 159 | </tr> |
| 160 | {/if} |
| 161 | </table> |
| 162 | |
| 163 | <script type="text/javascript"> |
| 164 | {literal} |
| 165 | <!-- |
| 166 | function readEvent(id) { |
| 167 | document.getElementById('content-evt'+id).style.display='none'; |
| 168 | var link = document.getElementById('link-evt'+id); |
| 169 | link.setAttribute('href','events/unread/'+id); |
| 170 | for (var i=0; i < link.childNodes.length; i++) |
| 171 | if (link.childNodes[i].nodeName == 'STRONG') { |
| 172 | link.replaceChild(link.childNodes[i].firstChild,link.childNodes[i]); |
| 173 | } |
| 174 | Ajax.update_html(null, 'events/read/'+id); |
| 175 | return false; |
| 176 | } |
| 177 | --> |
| 178 | {/literal} |
| 179 | </script> |
| 180 | |
| 181 | {foreach from=$events key=category item=evenement} |
| 182 | {foreach item=ev from=$evenement} |
| 183 | {if $ev.nonlu} |
| 184 | <div id="content-evt{$ev.id}"> |
| 185 | <br /> |
| 186 | |
| 187 | <table class="bicol"> |
| 188 | <tr> |
| 189 | <th> |
| 190 | <div style="float: left"> |
| 191 | {if $category eq 'important'} |
| 192 | {icon name=error title="Important"} |
| 193 | {elseif $category eq 'news'} |
| 194 | {icon name=bell title="Nouvelle annonce"} |
| 195 | {elseif $category eq 'end'} |
| 196 | {icon name=clock title="Bientôt fini"} |
| 197 | {else} |
| 198 | {icon name=magnifier title="Annonce"} |
| 199 | {/if} |
| 200 | </div> |
| 201 | <div style="float:right"> |
| 202 | {if hasPerm('admin')} |
| 203 | <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a> |
| 204 | {/if} |
| 205 | <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}" onclick="return readEvent('{$ev.id}')">{icon name=cross title="Cacher cet article"}</a> |
| 206 | </div> |
| 207 | {assign var="previd" value=$ev.id} |
| 208 | <a id="newsid{$ev.id}"></a> |
| 209 | {tidy} |
| 210 | {$ev.titre|nl2br} |
| 211 | {/tidy} |
| 212 | </th> |
| 213 | </tr> |
| 214 | {cycle values="left,right" assign=position} |
| 215 | <tr class="impair"> |
| 216 | <td class="half"> |
| 217 | <div> |
| 218 | {if $ev.img} |
| 219 | <div style="float: {$position}; padding-{if $position eq right}left{else}right{/if}: 0.5em"> |
| 220 | <img src="events/photo/{$ev.id}" alt="{$ev.title}" /> |
| 221 | </div> |
| 222 | {/if} |
| 223 | <div style="text-align: justify"> |
| 224 | {if !$ev.wiki} |
| 225 | {$ev.texte|smarty:nodefaults|nl2br} |
| 226 | {else} |
| 227 | {$ev.texte|miniwiki|smarty:nodefaults} |
| 228 | {/if} |
| 229 | </div> |
| 230 | </div> |
| 231 | </td> |
| 232 | </tr> |
| 233 | <tr class="pair"> |
| 234 | <td class="half smaller"> |
| 235 | <div style="display:block; float: right; padding-left:1em"> |
| 236 | {if $ev.post_id} |
| 237 | <a href="banana/{#globals.banana.event_reply#|default:#globals.banana.event_forum#}/read/{$ev.post_id}"> |
| 238 | {icon name="comments" title="Discussion"}Suivre la discussion |
| 239 | </a> • |
| 240 | {/if} |
| 241 | <a href="events#pagetop"> |
| 242 | <img alt="Sommaire" title="Remonter tout en haut" src="images/up.png"/> |
| 243 | </a> |
| 244 | </div> |
| 245 | Annonce proposée par |
| 246 | <a href="profile/{$ev.hruid}" class="popup2"> |
| 247 | {$ev.prenom} {$ev.nom} {$ev.promo_display} |
| 248 | </a> |
| 249 | </td> |
| 250 | </tr> |
| 251 | </table> |
| 252 | </div> |
| 253 | {/if} |
| 254 | {/foreach} |
| 255 | {/foreach} |
| 256 | |
| 257 | <p class="smaller"> |
| 258 | Nota Bene : les informations présentées ici n'engagent que leurs auteurs |
| 259 | respectifs et sont publiées à leur initiative. L'association Polytechnique.org |
| 260 | ne pourrait en aucun cas être tenue responsable de la nature des propos relatés |
| 261 | sur cet espace d'expression et d'information. Elle se réserve le droit de |
| 262 | refuser ou de retirer toute information de nature diffamante ou pouvant être |
| 263 | interprétée comme polémique par un membre de la communauté polytechnicienne. |
| 264 | </p> |
| 265 | |
| 266 | <p class="center"> |
| 267 | {icon name=page_edit} |
| 268 | <a href="events/submit">Proposer une information événementielle</a> • |
| 269 | <a href="nl/submit">Proposer un article pour la Lettre mensuelle</a> |
| 270 | </p> |
| 271 | {/if} |
| 272 | |
| 273 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |