Convert source code to UTF-8
[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 <?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           {if $asso && ($is_admin || $smarty.session.suid.perms eq 'admin' || $smarty.session.suid.may_update[$asso.id])}
133           <div style="float: right" class="breadcrumb">
134             <form method="post" action="{$platal->ns}change_rights">
135               <div style="display: inline">
136                 <small>voir le site en tant que...
137                 <select name="right" onchange="this.form.submit()">
138                   {if $smarty.session.perms eq 'admin' || $smarty.session.suid.perms eq 'admin'}
139                   <option value="admin" {if $smarty.session.perms eq 'admin'}selected="selected"{/if}>Administrateur</option>
140                   {/if}
141                   <option value="anim" {if $is_admin && $smarty.session.perms neq 'admin'}selected="selected"{/if}>Animateur</option>
142                   <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option>
143                   <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option>
144                 </select>
145                 </small>
146               </div>
147             </form>
148           </div>
149           {/if}
150           <div class="breadcrumb">
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           </div>
173           <div style="clear: both">
174           {include file="skin/common.content.tpl"}
175           </div>
176         </td>
177       </tr>
178       {else}
179       <tr>
180         <td colspan="2">
181           {include file="skin/common.content.tpl"}
182         </td>
183       </tr>
184       {if !$simple}
185       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
186
187       <tr>
188         <td colspan="2">
189           <table class="links" summary="liens" cellspacing="0" cellpadding="0">
190             <tr>
191               <td class="left">   <a href="groups/groupesx">Groupes X</a> </td>
192               <td class="left"> <a href="groups/binets">Binets</a> </td>
193               <td class="center"> <a href="groups/promotions">Promotions</a> </td>
194               <td class="center"> <a href="groups/institutions">Institutions</a> </td>
195               <td class="right">  <a href="plan">Tous</a> </td>
196             </tr>
197           </table>
198         </td>
199       </tr>
200       {/if}
201       {/if}
202     {if !$simple}
203       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
204
205       <tr>
206         <td colspan="2">
207         <table style="width: 100%">
208           <tr>
209             <td id="perso">
210               {list_all_my_groups}
211               {if !$smarty.session.auth}
212               <div>Me connecter :</div>
213               <a class='gp' href="login/{$platal->pl_self()}">polytechnicien</a>
214               {/if}
215             </td>
216             <td class="right" style="vertical-align: middle">
217               {if $smarty.session.perms eq admin}
218               <a href="admin" title="Administration des groupes">
219                 Gérer les groupes
220                 {icon name=wrench title="Administration"}
221               </a><br />
222               {/if}
223               <a href="Xnet" title="Manuel d'aide en ligne">
224                 Manuel de l'utilisateur
225                 {icon name=lightbulb title="Documentation"}
226               </a>
227             </td>
228           </tr>
229         </table>
230         </td>
231       </tr>
232
233       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
234
235       <tr>
236         <td colspan="2" id="credits">
237           <a href="plan">plan du site</a> -
238           <a href="Xnet/Services">services proposés</a> -
239           <a href="Xnet/APropos">à propos de ce site</a> -
240           {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
241           {if $smarty.session.auth}
242             - <a href="send_bug" class="popup_840x600">signaler un bug</a>
243           {/if}
244           <br />
245           © Copyright 2000-2007 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
246         </td>
247       </tr>
248     {/if}
249     </table>
250   </body>
251 </html>
252 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}