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