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