Skin layout improvements.
[platal.git] / templates / xnet / skin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 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{**************************************************************************}
9b2e77de 22
23{include file="skin/common.doctype.tpl"}
493b6abe 24 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
0337d704 25 <meta name="description" content="Les associations polytechniciennes" />
26 <meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" />
06c2f76f 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
7b2413f6 31 <link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
0337d704 32
a7de4ef7 33 <link rel="bookmark" href="http://www.polytechnique.fr/" title="| École polytechnique" />
0337d704 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" />
a7de4ef7 38 <link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
0337d704 39
40 {foreach from=$xorg_css item=css}
7b2413f6 41 <link rel="stylesheet" type="text/css" href="css/{$css}" />
0337d704 42 {/foreach}
19413120 43 {foreach from=$xorg_inline_css item=css}
44 <style type="text/css">
45 {$css|smarty:nodefaults}
46 </style>
47 {/foreach}
1b0cd4ab 48 <script type="text/javascript">
7f304b19 49 var platal_baseurl = "{$globals->baseurl}/"
1b0cd4ab 50 if (window.top != window)
51 document.write('<link rel="stylesheet" type="text/css" href="css/onlycontent.css" media="all"/>');
52 </script>
0337d704 53 {foreach from=$xorg_js item=js}
05a11a4d 54 <script type="text/javascript" src="javascript/{$js}"></script>
0337d704 55 {/foreach}
5721c9a3 56 {javascript name=overlib}
57
24bcf50c 58 {if $xorg_rss}
59 <link rel="alternate" type="application/rss+xml" title="{$xorg_rss.title}" href="{$xorg_rss.href}" />
60 {/if}
61
7383676c 62 {if $xorg_extra_header}
63 {$xorg_extra_header|smarty:nodefaults}
64 {/if}
65
06c2f76f 66 <title>Les associations polytechniciennes</title>
0337d704 67 {include file=skin/common.bandeau.head.tpl}
68 </head>
9931a3c9 69 <body>
0337d704 70 {include file=skin/common.devel.tpl}
c0d230b0 71 {if !$simple}
72 {include file=skin/common.bandeau.tpl}
73 {/if}
0337d704 74
75 <table id="layout" cellspacing="0" cellpadding="0">
c0d230b0 76 {if !$simple}
49848fd7 77 <tr>
0337d704 78 <td colspan="2">
49848fd7 79 <table cellspacing="0" cellpadding="0" id="top">
80 <tr>
81 <td style="width: 150px">
76a8d80b 82 <a href="{if $is_logged}login{/if}"><img src="images/asso-montants.png" alt="Logo Assos" /></a>
49848fd7 83 </td>
84 <td style="width: 106px">
6fb8424a 85 {if $xnet_type}
49848fd7 86 <img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
6fb8424a 87 {else}
88 <img src="images/logo_institutions.png" alt="Logo {$xnet_type}" width="106" height="96" />
89 {/if}
49848fd7 90 </td>
91 <td style="width: 44px">
92 <img src="images/fin_logo.jpg" alt="Fin logo" width="44" height="96" />
93 </td>
8175295d 94 <td style="width: auto;">
95 <img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
49848fd7 96 </td>
6fb8424a 97 {if $xnet_type}
8175295d 98 <td style="width: 280px">
99 <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" />
49848fd7 100 </td>
8175295d 101 {if $asso}
102 <td class="logo">
49848fd7 103 {if $asso.site}
6fb8424a 104 <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
49848fd7 105 {else}
6fb8424a 106 <img src='{$platal->ns}logo' alt="LOGO" height="80"/>
49848fd7 107 {/if}
49848fd7 108 </td>
8175295d 109 {/if}
6fb8424a 110 {else}
111 <td class="logo">
a7de4ef7 112 <img src="images/asso.png" alt="Le serveur des activés associative des X" />
6fb8424a 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}
49848fd7 118 </tr>
119 </table>
0337d704 120 </td>
121 </tr>
c0d230b0 122 {/if}{* fin simple *}
0337d704 123
c0d230b0 124 {if $menu && !$simple}
0337d704 125 <tr>
8eccf7e0 126 <td id="menu">
0337d704 127 {foreach from=$menu key=title item=submenu}
c0d230b0 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}
0337d704 136 {/foreach}
b2e6db3c 137 {if $asso && ($is_admin ||
8eccf7e0
FB
138 ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') ||
139 $smarty.session.suid.may_update[$asso.id])))}
140 <h1>Voir le site comme...</h1>
141 <form method="post" action="{$platal->ns}change_rights">
142 <select name="right" onchange="this.form.submit()" style="margin: 0; padding: 0">
143 {if hasPerm('admin') || ($smarty.session.suid && $smarty.session.suid.perms->hasFlag('admin'))}
144 <option value="admin" {if hasPerm('admin')}selected="selected"{/if}>Administrateur</option>
c0d230b0 145 {/if}
8eccf7e0
FB
146 <option value="anim" {if $is_admin && !hasPerm('admin')}selected="selected"{/if}>Animateur</option>
147 <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option>
148 <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option>
149 </select>
150 </form>
2ac33a69 151 {/if}
152 </td>
2ac33a69 153 <td id="body">
0337d704 154 {include file="skin/common.content.tpl"}
155 </td>
156 </tr>
157 {else}
158 <tr>
49848fd7 159 <td colspan="2">
0337d704 160 {include file="skin/common.content.tpl"}
161 </td>
162 </tr>
c0d230b0 163 {if !$simple}
1b0cd4ab 164 <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 165
1b0cd4ab 166 <tr class="hideable">
49848fd7 167 <td colspan="2">
0337d704 168 <table class="links" summary="liens" cellspacing="0" cellpadding="0">
169 <tr>
6fb8424a 170 <td class="left"> <a href="groups/groupesx">Groupes X</a> </td>
171 <td class="left"> <a href="groups/binets">Binets</a> </td>
172 <td class="center"> <a href="groups/promotions">Promotions</a> </td>
173 <td class="center"> <a href="groups/institutions">Institutions</a> </td>
174 <td class="right"> <a href="plan">Tous</a> </td>
0337d704 175 </tr>
176 </table>
177 </td>
178 </tr>
179 {/if}
c0d230b0 180 {/if}
181 {if !$simple}
1b0cd4ab 182 <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 183
1b0cd4ab 184 <tr class="hideable">
6fb8424a 185 <td colspan="2">
186 <table style="width: 100%">
187 <tr>
188 <td id="perso">
189 {list_all_my_groups}
190 {if !$smarty.session.auth}
8c5c6d64 191 <div>Me connecter :</div>
192 <a class='gp' href="login/{if $platal->pl_self() eq 'exit'}index{else}{$platal->pl_self()}{/if}">polytechnicien</a>
193 {if $platal->pl_self() neq 'exit'}
5721c9a3 194 {javascript name=jquery}
cfefeac6 195 <!-- <script type="text/javascript" src="login/autologin/{$platal->pl_self()}?forceXml=1"></script> -->
8c5c6d64 196 {/if}
6fb8424a 197 {/if}
198 </td>
199 <td class="right" style="vertical-align: middle">
908db125 200 {if hasPerm('admin')}
8383ee06 201 <a href="admin" title="Administration des groupes">
a7de4ef7 202 Gérer les groupes
8383ee06 203 {icon name=wrench title="Administration"}
204 </a><br />
205 {/if}
27455960 206 <a href="Xnet" title="Manuel d'aide en ligne">
6fb8424a 207 Manuel de l'utilisateur
208 {icon name=lightbulb title="Documentation"}
209 </a>
210 </td>
211 </tr>
212 </table>
0337d704 213 </td>
0337d704 214 </tr>
215
1b0cd4ab 216 <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
0337d704 217
1b0cd4ab 218 <tr class="hideable">
49848fd7 219 <td colspan="2" id="credits">
6fb8424a 220 <a href="plan">plan du site</a> -
a7de4ef7 221 <a href="Xnet/Services">services proposés</a> -
222 <a href="Xnet/APropos">à propos de ce site</a> -
cfefeac6 223 <a href="mailto:contact@polytechnique.org">nous contacter</a>
65b1cb38 224 {if $smarty.session.auth}
c0d230b0 225 - <a href="send_bug" class="popup_840x600">signaler un bug</a>
65b1cb38 226 {/if}
0337d704 227 <br />
a7de4ef7 228 © Copyright 2000-2007 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
0337d704 229 </td>
230 </tr>
c0d230b0 231 {/if}
0337d704 232 </table>
8eccf7e0 233 </body>
0337d704 234</html>
a7de4ef7 235{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}