Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
8d84c630 | 3 | {* Copyright (C) 2003-2009 Polytechnique.org *} |
0337d704 | 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 | {**************************************************************************} | |
9b2e77de | 22 | |
23 | {include file="skin/common.doctype.tpl"} | |
493b6abe | 24 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
0337d704 | 25 | <meta name="description" content="Les associations polytechniciennes" /> |
26 | <meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" /> | |
06c2f76f | 27 | |
28 | <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> | |
29 | <link rel="icon" href="images/favicon.png" type="image/png" /> | |
5d81ed28 | 30 | <link rel="apple-touch-icon" href="images/logo-xnet.png" type="image/png" /> |
06c2f76f | 31 | |
7b2413f6 | 32 | <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" /> |
8935dd28 | 33 | <link rel="stylesheet" type="text/css" href="css/base.css" media="screen" /> |
0337d704 | 34 | |
a7de4ef7 | 35 | <link rel="bookmark" href="http://www.polytechnique.fr/" title="| École polytechnique" /> |
0337d704 | 36 | <link rel="bookmark" href="http://www.polytechnique.edu/" title="| Institutionnal site" /> |
37 | <link rel="bookmark" href="http://www.fondationx.org/" title="| FX" /> | |
38 | <link rel="bookmark" href="http://www.polytechniciens.com/" title="| AX" /> | |
39 | <link rel="bookmark" href="http://www.polytechnique.org/" title="| Polytechnique.org" /> | |
a7de4ef7 | 40 | <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" /> |
0337d704 | 41 | |
ff996dd2 | 42 | {include core=plpage.header.tpl} |
0337d704 | 43 | {include file=skin/common.bandeau.head.tpl} |
44 | </head> | |
9931a3c9 | 45 | <body> |
ff996dd2 | 46 | {include core=plpage.devel.tpl} |
f00c59e8 | 47 | {if !t($simple)} |
c0d230b0 | 48 | {include file=skin/common.bandeau.tpl} |
49 | {/if} | |
0337d704 | 50 | |
51 | <table id="layout" cellspacing="0" cellpadding="0"> | |
f00c59e8 | 52 | {if !t($simple)} |
49848fd7 | 53 | <tr> |
0337d704 | 54 | <td colspan="2"> |
49848fd7 | 55 | <table cellspacing="0" cellpadding="0" id="top"> |
56 | <tr> | |
57 | <td style="width: 150px"> | |
76a8d80b | 58 | <a href="{if $is_logged}login{/if}"><img src="images/asso-montants.png" alt="Logo Assos" /></a> |
49848fd7 | 59 | </td> |
60 | <td style="width: 106px"> | |
325a6411 | 61 | {if t($xnet_type)} |
49848fd7 | 62 | <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" /> |
6fb8424a | 63 | {else} |
325a6411 | 64 | <img src="images/logo_institutions.png" alt="Logo institutions" width="106" height="96" /> |
6fb8424a | 65 | {/if} |
49848fd7 | 66 | </td> |
67 | <td style="width: 44px"> | |
68 | <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" /> | |
69 | </td> | |
8175295d | 70 | <td style="width: auto;"> |
71 | <img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" /> | |
49848fd7 | 72 | </td> |
325a6411 | 73 | {if t($xnet_type)} |
8175295d | 74 | <td style="width: 280px"> |
f00c59e8 | 75 | <a href="{if $xnet_type eq 'plan'}plan{else}groups/{$xnet_type}{/if}"><img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" /></a> |
49848fd7 | 76 | </td> |
1f759655 | 77 | {if t($asso)} |
8175295d | 78 | <td class="logo"> |
1f759655 | 79 | {if t($asso->site)} |
34ade5a6 | 80 | <a href="{$asso->site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a> |
49848fd7 | 81 | {else} |
6fb8424a | 82 | <img src='{$platal->ns}logo' alt="LOGO" height="80"/> |
49848fd7 | 83 | {/if} |
49848fd7 | 84 | </td> |
8175295d | 85 | {/if} |
6fb8424a | 86 | {else} |
87 | <td class="logo"> | |
a7de4ef7 | 88 | <img src="images/asso.png" alt="Le serveur des activés associative des X" /> |
6fb8424a | 89 | <a href="http://www.polytechnique.org"> |
90 | <img src="images/logo-xorg.png" alt="Polytechnique.org" height="80" /> | |
91 | </a> | |
92 | </td> | |
93 | {/if} | |
49848fd7 | 94 | </tr> |
95 | </table> | |
0337d704 | 96 | </td> |
97 | </tr> | |
c0d230b0 | 98 | {/if}{* fin simple *} |
0337d704 | 99 | |
f00c59e8 | 100 | {if $menu && !t($simple)} |
0337d704 | 101 | <tr> |
8eccf7e0 | 102 | <td id="menu"> |
0337d704 | 103 | {foreach from=$menu key=title item=submenu} |
c0d230b0 | 104 | {if $title neq 'no_title'}<h1>{$title}</h1>{/if} |
105 | {foreach from=$submenu key=tit item=url} | |
106 | {if is_array($url)} | |
107 | <a{foreach from=$url key=var item=val} {$var}="{$val}"{/foreach}>{$tit}</a> | |
108 | {else} | |
109 | <a href="{$url}">{$tit}</a> | |
110 | {/if} | |
111 | {/foreach} | |
0337d704 | 112 | {/foreach} |
325a6411 FB |
113 | {assign var=asso_id value=$asso->id} |
114 | {if $asso && $is_admin || | |
8eccf7e0 | 115 | ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') || |
325a6411 | 116 | $smarty.session.suid.may_update[$asso_id]))} |
6e828e47 | 117 | <h1>Voir le site comme…</h1> |
8eccf7e0 | 118 | <form method="post" action="{$platal->ns}change_rights"> |
52e30b58 FB |
119 | <div> |
120 | <select name="right" onchange="this.form.submit()" style="margin: 0; padding: 0"> | |
121 | {if hasPerm('admin') || ($smarty.session.suid && $smarty.session.suid.perms->hasFlag('admin'))} | |
122 | <option value="admin" {if hasPerm('admin')}selected="selected"{/if}>Administrateur</option> | |
123 | {/if} | |
124 | <option value="anim" {if $is_admin && !hasPerm('admin')}selected="selected"{/if}>Animateur</option> | |
125 | <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option> | |
126 | <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option> | |
127 | </select> | |
128 | </div> | |
8eccf7e0 | 129 | </form> |
2ac33a69 | 130 | {/if} |
131 | </td> | |
2ac33a69 | 132 | <td id="body"> |
ff996dd2 | 133 | {include core=plpage.content.tpl} |
0337d704 | 134 | </td> |
135 | </tr> | |
136 | {else} | |
137 | <tr> | |
49848fd7 | 138 | <td colspan="2"> |
ff996dd2 | 139 | {include core=plpage.content.tpl} |
0337d704 | 140 | </td> |
141 | </tr> | |
f00c59e8 | 142 | {if !t($simple)} |
1b0cd4ab | 143 | <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr> |
0337d704 | 144 | |
1b0cd4ab | 145 | <tr class="hideable"> |
49848fd7 | 146 | <td colspan="2"> |
0337d704 | 147 | <table class="links" summary="liens" cellspacing="0" cellpadding="0"> |
148 | <tr> | |
6fb8424a | 149 | <td class="left"> <a href="groups/groupesx">Groupes X</a> </td> |
150 | <td class="left"> <a href="groups/binets">Binets</a> </td> | |
151 | <td class="center"> <a href="groups/promotions">Promotions</a> </td> | |
152 | <td class="center"> <a href="groups/institutions">Institutions</a> </td> | |
153 | <td class="right"> <a href="plan">Tous</a> </td> | |
0337d704 | 154 | </tr> |
155 | </table> | |
156 | </td> | |
157 | </tr> | |
158 | {/if} | |
c0d230b0 | 159 | {/if} |
f00c59e8 | 160 | {if !t($simple)} |
1b0cd4ab | 161 | <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr> |
0337d704 | 162 | |
1b0cd4ab | 163 | <tr class="hideable"> |
6fb8424a | 164 | <td colspan="2"> |
165 | <table style="width: 100%"> | |
166 | <tr> | |
167 | <td id="perso"> | |
168 | {list_all_my_groups} | |
169 | {if !$smarty.session.auth} | |
e8439508 | 170 | <div>Me connecter :</div> |
8c5c6d64 | 171 | <a class='gp' href="login/{if $platal->pl_self() eq 'exit'}index{else}{$platal->pl_self()}{/if}">polytechnicien</a> |
172 | {if $platal->pl_self() neq 'exit'} | |
cfefeac6 | 173 | <!-- <script type="text/javascript" src="login/autologin/{$platal->pl_self()}?forceXml=1"></script> --> |
8c5c6d64 | 174 | {/if} |
6fb8424a | 175 | {/if} |
176 | </td> | |
177 | <td class="right" style="vertical-align: middle"> | |
908db125 | 178 | {if hasPerm('admin')} |
8383ee06 | 179 | <a href="admin" title="Administration des groupes"> |
a7de4ef7 | 180 | Gérer les groupes |
8383ee06 | 181 | {icon name=wrench title="Administration"} |
182 | </a><br /> | |
183 | {/if} | |
27455960 | 184 | <a href="Xnet" title="Manuel d'aide en ligne"> |
6fb8424a | 185 | Manuel de l'utilisateur |
186 | {icon name=lightbulb title="Documentation"} | |
187 | </a> | |
188 | </td> | |
189 | </tr> | |
190 | </table> | |
0337d704 | 191 | </td> |
0337d704 | 192 | </tr> |
193 | ||
1b0cd4ab | 194 | <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr> |
0337d704 | 195 | |
1b0cd4ab | 196 | <tr class="hideable"> |
49848fd7 | 197 | <td colspan="2" id="credits"> |
6fb8424a | 198 | <a href="plan">plan du site</a> - |
a7de4ef7 | 199 | <a href="Xnet/Services">services proposés</a> - |
200 | <a href="Xnet/APropos">à propos de ce site</a> - | |
cfefeac6 | 201 | <a href="mailto:contact@polytechnique.org">nous contacter</a> |
65b1cb38 | 202 | {if $smarty.session.auth} |
b206cca9 | 203 | - <a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup_840x600">signaler un bug</a> |
65b1cb38 | 204 | {/if} |
0337d704 | 205 | <br /> |
8d84c630 | 206 | Plat/al {#globals.version#} - © Copyright 2000-2009 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a> |
8935dd28 FB |
207 | <div class="pem"> |
208 | <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a> | |
209 | <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a> | |
210 | <!-- | |
211 | {poison count=20} | |
212 | --> | |
213 | </div> | |
0337d704 | 214 | </td> |
215 | </tr> | |
c0d230b0 | 216 | {/if} |
0337d704 | 217 | </table> |
8eccf7e0 | 218 | </body> |
0337d704 | 219 | </html> |
a7de4ef7 | 220 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |