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