Do keep privileges when starting a SU
[platal.git] / templates / xnet / skin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 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" />
30
7b2413f6 31 <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
0337d704 32
a7de4ef7 33 <link rel="bookmark" href="http://www.polytechnique.fr/" title="| École polytechnique" />
0337d704 34 <link rel="bookmark" href="http://www.polytechnique.edu/" title="| Institutionnal site" />
35 <link rel="bookmark" href="http://www.fondationx.org/" title="| FX" />
36 <link rel="bookmark" href="http://www.polytechniciens.com/" title="| AX" />
37 <link rel="bookmark" href="http://www.polytechnique.org/" title="| Polytechnique.org" />
a7de4ef7 38 <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
0337d704 39
40 {foreach from=$xorg_css item=css}
7b2413f6 41 <link rel="stylesheet" type="text/css" href="css/{$css}" />
0337d704 42 {/foreach}
43 {foreach from=$xorg_js item=js}
05a11a4d 44 <script type="text/javascript" src="javascript/{$js}"></script>
0337d704 45 {/foreach}
7b2413f6 46 <script type="text/javascript" src="javascript/overlib.js"></script>
24bcf50c 47
48 {if $xorg_rss}
49 <link rel="alternate" type="application/rss+xml" title="{$xorg_rss.title}" href="{$xorg_rss.href}" />
50 {/if}
51
7383676c 52 {if $xorg_extra_header}
53 {$xorg_extra_header|smarty:nodefaults}
54 {/if}
55
06c2f76f 56 <title>Les associations polytechniciennes</title>
0337d704 57 {include file=skin/common.bandeau.head.tpl}
58 </head>
9931a3c9 59 <body>
0337d704 60 {include file=skin/common.devel.tpl}
c0d230b0 61 {if !$simple}
62 {include file=skin/common.bandeau.tpl}
63 {/if}
0337d704 64
65 <table id="layout" cellspacing="0" cellpadding="0">
c0d230b0 66 {if !$simple}
49848fd7 67 <tr>
0337d704 68 <td colspan="2">
49848fd7 69 <table cellspacing="0" cellpadding="0" id="top">
70 <tr>
71 <td style="width: 150px">
72 <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
73 </td>
74 <td style="width: 106px">
6fb8424a 75 {if $xnet_type}
49848fd7 76 <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
6fb8424a 77 {else}
78 <img src="images/logo_institutions.png" alt="Logo {$xnet_type}" width="106" height="96" />
79 {/if}
49848fd7 80 </td>
81 <td style="width: 44px">
82 <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" />
83 </td>
8175295d 84 <td style="width: auto;">
85 <img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
49848fd7 86 </td>
6fb8424a 87 {if $xnet_type}
8175295d 88 <td style="width: 280px">
89 <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" />
49848fd7 90 </td>
8175295d 91 {if $asso}
92 <td class="logo">
49848fd7 93 {if $asso.site}
6fb8424a 94 <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
49848fd7 95 {else}
6fb8424a 96 <img src='{$platal->ns}logo' alt="LOGO" height="80"/>
49848fd7 97 {/if}
49848fd7 98 </td>
8175295d 99 {/if}
6fb8424a 100 {else}
101 <td class="logo">
a7de4ef7 102 <img src="images/asso.png" alt="Le serveur des activés associative des X" />
6fb8424a 103 <a href="http://www.polytechnique.org">
104 <img src="images/logo-xorg.png" alt="Polytechnique.org" height="80" />
105 </a>
106 </td>
107 {/if}
49848fd7 108 </tr>
109 </table>
0337d704 110 </td>
111 </tr>
c0d230b0 112 {/if}{* fin simple *}
0337d704 113
c0d230b0 114 {if $menu && !$simple}
0337d704 115 <tr>
116 <td id="menu">
117 {foreach from=$menu key=title item=submenu}
c0d230b0 118 {if $title neq 'no_title'}<h1>{$title}</h1>{/if}
119 {foreach from=$submenu key=tit item=url}
120 {if is_array($url)}
121 <a{foreach from=$url key=var item=val} {$var}="{$val}"{/foreach}>{$tit}</a>
122 {else}
123 <a href="{$url}">{$tit}</a>
124 {/if}
125 {/foreach}
0337d704 126 {/foreach}
127 </td>
59ff13cf 128 <td id="body">
7903a47a 129 {if $asso && ($is_admin || $smarty.session.suid.perms eq 'admin' || $smarty.session.suid.may_update[$asso.id])}
0deaff1d 130 <div style="float: right" class="breadcrumb">
131 <form method="post" action="{$platal->ns}change_rights">
132 <div style="display: inline">
133 <small>voir le site en tant que...
134 <select name="right" onchange="this.form.submit()">
135 {if $smarty.session.perms eq 'admin' || $smarty.session.suid.perms eq 'admin'}
136 <option value="admin" {if $smarty.session.perms eq 'admin'}selected="selected"{/if}>Administrateur</option>
137 {/if}
138 <option value="anim" {if $is_admin && $smarty.session.perms neq 'admin'}selected="selected"{/if}>Animateur</option>
139 <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option>
140 <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option>
141 </select>
142 </small>
143 </div>
144 </form>
145 </div>
146 {/if}
0337d704 147 <div class="breadcrumb">
a7de4ef7 148 <a href=".">X.net</a> »
0337d704 149 {if $asso}
a7de4ef7 150 <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
c0d230b0 151 {if $asso.dom}
a7de4ef7 152 <a href="groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
c0d230b0 153 {/if}
154 {$asso.nom}
0e02493e 155 {elseif $cat}
a7de4ef7 156 <a href="groups/{$cat}">{$cat|cat_pp}</a> »
c0d230b0 157 {if $dom || !$doms}
158 {if $cat eq 'promotions'}
159 Choix de la promotion
160 {else}
161 Choix de l'Asso
162 {/if}
163 {else}
164 Choix du domaine
165 {/if}
41ab970e 166 {elseif $wikipage}
c0d230b0 167 <a href="Xnet">Documentation</a>
0337d704 168 {/if}
169 </div>
10ba3144 170 <div style="clear: both">
0337d704 171 {include file="skin/common.content.tpl"}
10ba3144 172 </div>
0337d704 173 </td>
174 </tr>
175 {else}
176 <tr>
49848fd7 177 <td colspan="2">
0337d704 178 {include file="skin/common.content.tpl"}
179 </td>
180 </tr>
c0d230b0 181 {if !$simple}
87b14ce7 182 <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 183
184 <tr>
49848fd7 185 <td colspan="2">
0337d704 186 <table class="links" summary="liens" cellspacing="0" cellpadding="0">
187 <tr>
6fb8424a 188 <td class="left"> <a href="groups/groupesx">Groupes X</a> </td>
189 <td class="left"> <a href="groups/binets">Binets</a> </td>
190 <td class="center"> <a href="groups/promotions">Promotions</a> </td>
191 <td class="center"> <a href="groups/institutions">Institutions</a> </td>
192 <td class="right"> <a href="plan">Tous</a> </td>
0337d704 193 </tr>
194 </table>
195 </td>
196 </tr>
197 {/if}
c0d230b0 198 {/if}
199 {if !$simple}
87b14ce7 200 <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 201
202 <tr>
6fb8424a 203 <td colspan="2">
204 <table style="width: 100%">
205 <tr>
206 <td id="perso">
207 {list_all_my_groups}
208 {if !$smarty.session.auth}
209 <div>Me connecter :</div>
59d63e1a 210 <a class='gp' href="login/{$platal->pl_self()}">polytechnicien</a>
6fb8424a 211 {/if}
212 </td>
213 <td class="right" style="vertical-align: middle">
8383ee06 214 {if $smarty.session.perms eq admin}
215 <a href="admin" title="Administration des groupes">
a7de4ef7 216 Gérer les groupes
8383ee06 217 {icon name=wrench title="Administration"}
218 </a><br />
219 {/if}
27455960 220 <a href="Xnet" title="Manuel d'aide en ligne">
6fb8424a 221 Manuel de l'utilisateur
222 {icon name=lightbulb title="Documentation"}
223 </a>
224 </td>
225 </tr>
226 </table>
0337d704 227 </td>
0337d704 228 </tr>
229
87b14ce7 230 <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 231
232 <tr>
49848fd7 233 <td colspan="2" id="credits">
6fb8424a 234 <a href="plan">plan du site</a> -
a7de4ef7 235 <a href="Xnet/Services">services proposés</a> -
236 <a href="Xnet/APropos">à propos de ce site</a> -
0337d704 237 {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
65b1cb38 238 {if $smarty.session.auth}
c0d230b0 239 - <a href="send_bug" class="popup_840x600">signaler un bug</a>
65b1cb38 240 {/if}
0337d704 241 <br />
a7de4ef7 242 © Copyright 2000-2007 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
0337d704 243 </td>
244 </tr>
c0d230b0 245 {/if}
0337d704 246 </table>
247 </body>
248</html>
a7de4ef7 249{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}