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