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