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