#594: Group admins can temporarily try the site without privileges
[platal.git] / templates / xnet / skin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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 <?xml version="1.0" encoding="iso-8859-15"?>
23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
24 <html xmlns="http://www.w3.org/1999/xhtml">
25   <head>
26     <base href="{$globals->baseurl}/" />
27     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
28     <meta name="description" content="Les associations polytechniciennes" />
29     <meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" />
30
31     <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
32     <link rel="icon" href="images/favicon.png" type="image/png" />
33
34     <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
35
36     <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| École polytechnique" />
37     <link rel="bookmark" href="http://www.polytechnique.edu/"       title="| Institutionnal site" />
38     <link rel="bookmark" href="http://www.fondationx.org/"          title="| FX" />
39     <link rel="bookmark" href="http://www.polytechniciens.com/"     title="| AX" />
40     <link rel="bookmark" href="http://www.polytechnique.org/"       title="| Polytechnique.org" />
41     <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
42
43     {foreach from=$xorg_css item=css}
44     <link rel="stylesheet" type="text/css" href="css/{$css}" />
45     {/foreach}
46     {foreach from=$xorg_js item=js}
47     <script type="text/javascript" src="javascript/{$js}"></script>
48     {/foreach}
49     <script type="text/javascript" src="javascript/overlib.js"></script>
50
51     {if $xorg_rss}
52     <link rel="alternate" type="application/rss+xml" title="{$xorg_rss.title}" href="{$xorg_rss.href}" />
53     {/if}
54
55     {if $xorg_extra_header}
56     {$xorg_extra_header|smarty:nodefaults}
57     {/if}
58
59     <title>Les associations polytechniciennes</title>
60     {include file=skin/common.bandeau.head.tpl}
61   </head>
62   <body>
63     {include file=skin/common.devel.tpl}
64     {if !$simple}
65       {include file=skin/common.bandeau.tpl}
66     {/if}
67
68     <table id="layout" cellspacing="0" cellpadding="0">
69     {if !$simple}
70       <tr>
71         <td colspan="2">
72         <table cellspacing="0" cellpadding="0" id="top">
73           <tr>
74             <td style="width: 150px">
75               <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
76             </td>
77             <td style="width: 106px">
78               {if $xnet_type}
79               <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
80               {else}
81               <img src="images/logo_institutions.png" alt="Logo {$xnet_type}" width="106" height="96" />
82               {/if}
83             </td>
84             <td style="width: 44px">
85               <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" />
86             </td>
87             <td style="width: auto;">
88               <img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
89             </td>
90             {if $xnet_type}
91             <td style="width: 280px">
92               <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" />
93             </td>
94             {if $asso}
95             <td class="logo">
96               {if $asso.site}
97                 <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
98               {else}
99                 <img src='{$platal->ns}logo' alt="LOGO" height="80"/>
100               {/if}
101             </td>
102             {/if}
103             {else}
104             <td class="logo">
105               <img src="images/asso.png" alt="Le serveur des activés associative des X" />
106               <a href="http://www.polytechnique.org">
107                 <img src="images/logo-xorg.png" alt="Polytechnique.org" height="80" />
108               </a>
109             </td>
110             {/if}
111           </tr>
112         </table>
113         </td>
114       </tr>
115     {/if}{* fin simple *}
116
117       {if $menu && !$simple}
118       <tr>
119         <td id="menu">
120           {foreach from=$menu key=title item=submenu}
121             {if $title neq 'no_title'}<h1>{$title}</h1>{/if}
122             {foreach from=$submenu key=tit item=url}
123               {if is_array($url)}
124                 <a{foreach from=$url key=var item=val} {$var}="{$val}"{/foreach}>{$tit}</a>
125               {else}
126                 <a href="{$url}">{$tit}</a>
127               {/if}
128             {/foreach}
129           {/foreach}
130         </td>
131         <td id="body">
132           <div class="breadcrumb">
133             <a href=".">X.net</a> »
134             {if $asso}
135               <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
136               {if $asso.dom}
137                 <a href="groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
138               {/if}
139               {$asso.nom}
140             {elseif $cat}
141               <a href="groups/{$cat}">{$cat|cat_pp}</a> »
142               {if $dom || !$doms}
143                 {if $cat eq 'promotions'}
144                   Choix de la promotion
145                 {else}
146                   Choix de l'Asso
147                 {/if}
148               {else}
149                 Choix du domaine
150               {/if}
151             {elseif $wikipage}
152               <a href="Xnet">Documentation</a>
153             {/if}
154           </div>
155           {include file="skin/common.content.tpl"}
156         </td>
157       </tr>
158       {else}
159       <tr>
160         <td colspan="2">
161           {include file="skin/common.content.tpl"}
162         </td>
163       </tr>
164       {if !$simple}
165       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
166
167       <tr>
168         <td colspan="2">
169           <table class="links" summary="liens" cellspacing="0" cellpadding="0">
170             <tr>
171               <td class="left">   <a href="groups/groupesx">Groupes X</a> </td>
172               <td class="left"> <a href="groups/binets">Binets</a> </td>
173               <td class="center"> <a href="groups/promotions">Promotions</a> </td>
174               <td class="center"> <a href="groups/institutions">Institutions</a> </td>
175               <td class="right">  <a href="plan">Tous</a> </td>
176             </tr>
177           </table>
178         </td>
179       </tr>
180       {/if}
181       {/if}
182     {if !$simple}
183       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
184
185       <tr>
186         <td colspan="2">
187         <table style="width: 100%">
188           <tr>
189             <td id="perso">
190               {list_all_my_groups}
191               {if !$smarty.session.auth}
192               <div>Me connecter :</div>
193               <a class='gp' href="login">polytechnicien</a>
194               {/if}
195             </td>
196             <td class="right" style="vertical-align: middle">
197               {if $smarty.session.perms eq admin}
198               <a href="admin" title="Administration des groupes">
199                 Gérer les groupes
200                 {icon name=wrench title="Administration"}
201               </a><br />
202               {/if}
203               <a href="Xnet" title="Manuel d'aide en ligne">
204                 Manuel de l'utilisateur
205                 {icon name=lightbulb title="Documentation"}
206               </a>
207             </td>
208           </tr>
209         </table>
210         </td>
211       </tr>
212
213       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
214
215       <tr>
216         <td colspan="2" id="credits">
217           <a href="plan">plan du site</a> -
218           <a href="Xnet/Services">services proposés</a> -
219           <a href="Xnet/APropos">à propos de ce site</a> -
220           {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
221           {if $smarty.session.auth}
222             - <a href="send_bug" class="popup_840x600">signaler un bug</a>
223           {/if}
224           <br />
225           © Copyright 2000-2006 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
226         </td>
227       </tr>
228     {/if}
229     </table>
230   </body>
231 </html>
232 {* vim:set et sw=2 sts=2 sws=2: *}