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