Rework xnet skin :
[platal.git] / templates / xnet / skin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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-1"?>
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-1" />
28
29     <title>Les associations polytechniciennes</title>
30     <meta name="description" content="Les associations polytechniciennes" />
31     <meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" />
32     <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
33     <link rel="icon" type="image/png" href="images/favicon.png" />
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=$xorg_css item=css}
43     <link rel="stylesheet" type="text/css" href="css/{$css}" />
44     {/foreach}
45     {foreach from=$xorg_js item=js}
46     <script type="text/javascript" src="{$js}"></script>
47     {/foreach}
48     <script type="text/javascript" src="javascript/overlib.js"></script>
49     
50     {if $xorg_extra_header}
51     {$xorg_extra_header|smarty:nodefaults}
52     {/if}
53
54     {include file=skin/common.bandeau.head.tpl}
55   </head>
56   <body>
57     {include file=skin/common.devel.tpl}
58     {include file=skin/common.bandeau.tpl}
59
60     <table id="layout" cellspacing="0" cellpadding="0">
61       {if $xnet_type}
62       <tr>
63         <td colspan="2">
64         <table cellspacing="0" cellpadding="0" id="top">
65           <tr>
66             <td style="width: 150px">
67               <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
68             </td>
69             <td style="width: 106px">
70               <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
71             </td>
72             <td style="width: 44px">
73               <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" />
74             </td>
75             <td style="white-space: nowrap">
76               <img src="images/bandeau.jpg" alt="bandeau" height="96" style="width: 100%" />
77             </td>
78             <td class="logo">
79               <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" height="96" />
80             </td>
81             <td>
82               {if $asso}
83               {if $asso.site}
84                 <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="96" /></a>
85               {else}
86                 <img src='{$platal->ns}logo' alt="LOGO" height="96"/>
87               {/if}
88               {/if}
89             </td>
90           </tr>
91         </table>
92         </td>
93       </tr>
94       {else}
95       <tr id="top">
96         <td>
97           <img src="images/logo.png" alt="LOGO Assos" />
98         </td>
99         <td style="text-align: right">
100           <a href="https://www.polytechnique.org/"><img src="images/logo-xorg.png" alt="LOGO X.Org" /></a>
101           <img src="images/asso2.png" alt="titre_du_site" />
102         </td>
103       </tr>
104       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
105       {/if}
106
107       {if $menu}
108       <tr>
109         <td id="menu">
110           {foreach from=$menu key=title item=submenu}
111           <h1>{$title}</h1>
112           {foreach from=$submenu key=tit item=url}
113           <a href="{$url}">{$tit}</a>
114           {/foreach}
115           {/foreach}
116         </td>
117         <td>
118           <div class="breadcrumb">
119             {if $asso}
120             <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
121             {if $asso.dom}
122             <a href="groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
123             {/if}
124             {$asso.nom}
125             {elseif $cat}
126             <a href="groups/{$cat}">{$cat|cat_pp}</a> »
127             {if $dom || !$doms}
128             Choix de l'Asso
129             {else}
130             Choix du domaine
131             {/if}
132             {/if}
133           </div>
134           {include file="skin/common.content.tpl"}
135         </td>
136       </tr>
137       {else}
138       <tr>
139         <td colspan="2">
140           {include file="skin/common.content.tpl"}
141         </td>
142       </tr>
143
144       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
145
146       <tr>
147         <td colspan="2">
148           <table class="links" summary="liens" cellspacing="0" cellpadding="0">
149             <tr>
150               <td> <a href="plan">PLAN DU SITE</a> </td>
151               <td> <a href="groups/groupesx">groupes X</a> </td>
152               <td> <a href="groups/binets">binets</a> </td>
153               <td> <a href="groups/promotions">promotions</a> </td>
154               <td> <a href="groups/institutions">institutions</a> </td>
155             </tr>
156           </table>
157         </td>
158       </tr>
159       {/if}
160
161       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
162
163       <tr>
164         <td colspan="2" id="perso">
165           {list_all_my_groups}
166           {if !$smarty.session.auth}
167           <div>Me connecter :</div>
168           <a class='gp' href="{$smarty.session.loginX}">polytechnicien</a>
169           {/if}
170
171           <a href="manuel" title="Manuel d'aide en ligne" style="float: right"><img src="images/manuel.png" alt="manuel" /></a>
172         </td>
173       </tr>
174
175       <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="765" /></td></tr>
176
177       <tr>
178         <td colspan="2" id="credits">
179           <a href="plan">liste des associations</a> -
180           <a href="services">services proposés</a> -
181           <a href="about">à propos de ce site</a> -
182           {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
183           <br />
184           © Copyright 2000-2006 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
185         </td>
186       </tr>
187
188     </table>
189   </body>
190 </html>
191 {* vim:set et sw=2 sts=2 sws=2: *}