| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2011 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 !$smarty.session.auth} |
| 24 | <div class="menu_title">Polytechniciens</div> |
| 25 | <div class="menu_item"><a href="login">Me connecter !</a></div> |
| 26 | <div class="menu_item"><a href="register">M'inscrire</a></div> |
| 27 | <div class="menu_item"><a href="Xorg/PourquoiMInscrire">Pourquoi m'inscrire ?</a></div> |
| 28 | |
| 29 | <div class="menu_title">Visiteurs</div> |
| 30 | <div class="menu_item"><a href="search">Annuaire de l'X</a></div> |
| 31 | <div class="menu_item"><a href="http://www.polytechnique.net/">Associations X</a></div> |
| 32 | <div class="menu_item"><a href="http://www.manageurs.com/">Recrutement</a></div> |
| 33 | |
| 34 | <div class="menu_title">Informations</div> |
| 35 | <div class="menu_item"><a href="Equipe/APropos">À propos du site</a></div> |
| 36 | <div class="menu_item"><a href="Xorg/NousContacter">Nous contacter</a></div> |
| 37 | <div class="menu_item"><a href="Xorg/FAQ">FAQ</a></div> |
| 38 | |
| 39 | {else} |
| 40 | |
| 41 | {if $smarty.session.auth == AUTH_MDP} |
| 42 | <div class="menu_item"><a href="exit">Déconnexion</a></div> |
| 43 | {elseif $smarty.cookies.ORGaccess} |
| 44 | <div class="menu_item"><a href="exit/forget">Déconnexion totale</a></div> |
| 45 | {/if} |
| 46 | |
| 47 | <div class="menu_title">Personnaliser</div> |
| 48 | {if hasPerm('mail')} |
| 49 | <div class="menu_item"><a href="emails">Mes emails</a></div> |
| 50 | {/if} |
| 51 | {if $smarty.session.user->hasProfile()} |
| 52 | <div class="menu_item"><a href="profile/edit">Mon profil</a></div> |
| 53 | {/if} |
| 54 | {if hasPerm('directory_private')} |
| 55 | <div class="menu_item"><a href="carnet/contacts">Mes contacts</a></div> |
| 56 | <div class="menu_item"><a href="carnet">Mon carnet</a></div> |
| 57 | {/if} |
| 58 | <div class="menu_item"><a href="password">Mon mot de passe</a></div> |
| 59 | <div class="menu_item"><a href="prefs">Mes préférences</a></div> |
| 60 | |
| 61 | <div class="menu_title">Services</div> |
| 62 | {if hasPerm('mail')} |
| 63 | <div class="menu_item"><a href="emails/send">Envoyer un email</a></div> |
| 64 | {/if} |
| 65 | {if hasPerm('forums')} |
| 66 | <div class="menu_item"><a href="banana/">Forums & PA</a></div> |
| 67 | {/if} |
| 68 | {if $smarty.session.user->googleapps} |
| 69 | <div class="menu_item"><a href="http://gmail.polytechnique.org/">Emails Google Apps</a></div> |
| 70 | {/if} |
| 71 | <div class="menu_item"><a href="lists">Listes de diffusion</a></div> |
| 72 | {if hasPerm('payment')} |
| 73 | <div class="menu_item"><a href="payment">Télépaiements</a></div> |
| 74 | {/if} |
| 75 | {if hasPerm('mail')} |
| 76 | <div class="menu_item"><a href="emails/antispam/submit">Soumettre un spam</a></div> |
| 77 | {/if} |
| 78 | <div class="menu_item"><a href="emails/broken">Patte cassée</a></div> |
| 79 | |
| 80 | <div class="menu_title">Communauté X</div> |
| 81 | <div class="menu_item"><a href="search">Annuaire</a></div> |
| 82 | {if hasPerm('directory_private')} |
| 83 | <div class="menu_item"><a href="jobs">Emploi & Carrières</a></div> |
| 84 | {/if} |
| 85 | {if hasPerm('groups')} |
| 86 | <div class="menu_item"><a href="groupes-x">Mes groupes X</a></div> |
| 87 | {/if} |
| 88 | <div class="menu_item"><a href="survey">Sondages</a></div> |
| 89 | |
| 90 | <div class="menu_title">Informations</div> |
| 91 | <div class="menu_item"><a href="Xorg/">Documentations</a></div> |
| 92 | <div class="menu_item"><a href="nl">Lettres mensuelles</a></div> |
| 93 | <div class="menu_item"><a href="ax">Lettres de l'AX</a></div> |
| 94 | <div class="menu_item"><a href="epletter">Lettres de l'École</a></div> |
| 95 | <div class="menu_item"><a href="Xorg/NousContacter">Nous contacter</a></div> |
| 96 | <div class="menu_item"><a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup2">Signaler un bug</a></div> |
| 97 | |
| 98 | {if hasPerm('admin')} |
| 99 | <div class="menu_title">***</div> |
| 100 | <div class="menu_item"><a href="marketing">Marketing</a></div> |
| 101 | <div class="menu_item"><a href="admin/">Administration</a></div> |
| 102 | <div class="menu_item"><a href="purge_cache?token={xsrf_token}">Clear cache</a></div> |
| 103 | <div class="menu_item"><a href="http://trackers.polytechnique.org">Trackers</a></div> |
| 104 | <div class="menu_item"><a href="http://support.polytechnique.org">Support</a></div> |
| 105 | <form method="post" action="set_skin"> |
| 106 | {xsrf_token_field} |
| 107 | <div class="menu_item" style="clear: both"> |
| 108 | Skin |
| 109 | <select name="change_skin" onchange="this.form.submit()" style="margin: 0; padding: 0; float: |
| 110 | right"> |
| 111 | {foreach from=$skin_list item=name key=tpl} |
| 112 | <option value="{$tpl}" {if $smarty.session.skin eq $tpl}selected="selected"{/if}>{$name}</option> |
| 113 | {/foreach} |
| 114 | </select> |
| 115 | </div> |
| 116 | </form> |
| 117 | <form method="post" action="get_rights"> |
| 118 | {xsrf_token_field} |
| 119 | <div class="menu_item" style="clear: both"> |
| 120 | Droits |
| 121 | <select name="account_type" onchange="this.form.submit()" style="margin: 0; padding: 0; float: |
| 122 | right"> |
| 123 | <option value="admin">Admin</option> |
| 124 | {foreach from=$account_types_list item=type} |
| 125 | <option value="{$type}">{$type}</option> |
| 126 | {/foreach} |
| 127 | </select> |
| 128 | </div> |
| 129 | </form> |
| 130 | |
| 131 | <table class="bicol" style="font-weight:normal;text-align:center; border-left:0px; border-right:0px; margin-top:0.5em; width:100%; margin-left: 0; font-size: smaller;"> |
| 132 | <tr><th>Validations</th></tr> |
| 133 | <tr class="impair"> |
| 134 | <td> |
| 135 | <a href="admin/validate"> |
| 136 | {if $globals->core->NbValid|smarty:nodefaults eq 0}-{else}{$globals->core->NbValid|default:'-'}{/if} |
| 137 | </a> |
| 138 | </td> |
| 139 | </tr> |
| 140 | </table> |
| 141 | {/if} |
| 142 | |
| 143 | {if hasPerm('edit_directory')} |
| 144 | <div class="menu_title">Administration</div> |
| 145 | <div class="menu_item"><a href="admin/profile">Modifications</a></div> |
| 146 | <div class="menu_item"><a href="admin/jobs">Entreprises</a></div> |
| 147 | <div class="menu_item"><a href="admin/validate">Validations</a></div> |
| 148 | {/if} |
| 149 | |
| 150 | {/if} |
| 151 | |
| 152 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |