{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2009 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="images/favicon.png" type="image/png" />
+ <link rel="apple-touch-icon" href="images/logo-xnet.png" type="image/png" />
<link rel="stylesheet" type="text/css" href="css/xnet.css" media="screen" />
+ <link rel="stylesheet" type="text/css" href="css/base.css" media="screen" />
<link rel="bookmark" href="http://www.polytechnique.fr/" title="| École polytechnique" />
<link rel="bookmark" href="http://www.polytechnique.edu/" title="| Institutionnal site" />
<link rel="bookmark" href="http://www.polytechnique.org/" title="| Polytechnique.org" />
<link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
- {foreach from=$xorg_css item=css}
- <link rel="stylesheet" type="text/css" href="css/{$css}" />
- {/foreach}
- {foreach from=$xorg_js item=js}
- <script type="text/javascript" src="javascript/{$js}"></script>
- {/foreach}
- <script type="text/javascript" src="javascript/overlib.js"></script>
-
- {if $xorg_rss}
- <link rel="alternate" type="application/rss+xml" title="{$xorg_rss.title}" href="{$xorg_rss.href}" />
- {/if}
-
- {if $xorg_extra_header}
- {$xorg_extra_header|smarty:nodefaults}
- {/if}
-
- <title>Les associations polytechniciennes</title>
+ {include core=plpage.header.tpl}
+ <script type="text/javascript">
+ var platal_baseurl = "{$globals->baseurl}/"
+ if (window.top != window)
+ document.write('<link rel="stylesheet" type="text/css" href="css/onlycontent.css" media="all"/>');
+ </script>
+ {javascript name=overlib}
{include file=skin/common.bandeau.head.tpl}
</head>
<body>
- {include file=skin/common.devel.tpl}
+ {include core=plpage.devel.tpl}
{if !$simple}
{include file=skin/common.bandeau.tpl}
{/if}
<table cellspacing="0" cellpadding="0" id="top">
<tr>
<td style="width: 150px">
- <a href=""><img src="images/asso-montants.png" alt="Logo Assos" /></a>
+ <a href="{if $is_logged}login{/if}"><img src="images/asso-montants.png" alt="Logo Assos" /></a>
</td>
<td style="width: 106px">
{if $xnet_type}
</td>
{if $xnet_type}
<td style="width: 280px">
- <img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" />
+ <a href="{if $xnet_type eq plan}plan{else}groups/{$xnet_type}{/if}"><img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" /></a>
</td>
{if $asso}
<td class="logo">
{/if}
{/foreach}
{/foreach}
+ {if $asso && ($is_admin ||
+ ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') ||
+ $smarty.session.suid.may_update[$asso.id])))}
+ <h1>Voir le site comme...</h1>
+ <form method="post" action="{$platal->ns}change_rights">
+ <div>
+ <select name="right" onchange="this.form.submit()" style="margin: 0; padding: 0">
+ {if hasPerm('admin') || ($smarty.session.suid && $smarty.session.suid.perms->hasFlag('admin'))}
+ <option value="admin" {if hasPerm('admin')}selected="selected"{/if}>Administrateur</option>
+ {/if}
+ <option value="anim" {if $is_admin && !hasPerm('admin')}selected="selected"{/if}>Animateur</option>
+ <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option>
+ <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option>
+ </select>
+ </div>
+ </form>
+ {/if}
</td>
<td id="body">
- {if $asso && ($is_admin || $smarty.session.suid.perms eq 'admin' || $smarty.session.suid.may_update[$asso.id])}
- <div style="float: right" class="breadcrumb">
- <form method="post" action="{$platal->ns}change_rights">
- <div style="display: inline">
- <small>voir le site en tant que...
- <select name="right" onchange="this.form.submit()">
- {if $smarty.session.perms eq 'admin' || $smarty.session.suid.perms eq 'admin'}
- <option value="admin" {if $smarty.session.perms eq 'admin'}selected="selected"{/if}>Administrateur</option>
- {/if}
- <option value="anim" {if $is_admin && $smarty.session.perms neq 'admin'}selected="selected"{/if}>Animateur</option>
- <option value="member" {if !$is_admin && $is_member}selected="selected"{/if}>Membre</option>
- <option value="logged" {if !$is_admin && !$is_member}selected="selected"{/if}>Non-membre</option>
- </select>
- </small>
- </div>
- </form>
- </div>
- {/if}
- <div class="breadcrumb">
- <a href=".">X.net</a> »
- {if $asso}
- <a href="groups/{$asso.cat}">{$asso.cat|cat_pp}</a> »
- {if $asso.dom}
- <a href="groups/{$asso.cat}/{$asso.dom}">{$asso.domnom}</a> »
- {/if}
- {$asso.nom}
- {elseif $cat}
- <a href="groups/{$cat}">{$cat|cat_pp}</a> »
- {if $dom || !$doms}
- {if $cat eq 'promotions'}
- Choix de la promotion
- {else}
- Choix de l'Asso
- {/if}
- {else}
- Choix du domaine
- {/if}
- {elseif $wikipage}
- <a href="Xnet">Documentation</a>
- {/if}
- </div>
- <div style="clear: both">
- {include file="skin/common.content.tpl"}
- </div>
+ {include core=plpage.content.tpl}
</td>
</tr>
{else}
<tr>
<td colspan="2">
- {include file="skin/common.content.tpl"}
+ {include core=plpage.content.tpl}
</td>
</tr>
{if !$simple}
- <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
+ <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
- <tr>
+ <tr class="hideable">
<td colspan="2">
<table class="links" summary="liens" cellspacing="0" cellpadding="0">
<tr>
{/if}
{/if}
{if !$simple}
- <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
+ <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
- <tr>
+ <tr class="hideable">
<td colspan="2">
<table style="width: 100%">
<tr>
<td id="perso">
{list_all_my_groups}
{if !$smarty.session.auth}
- <div>Me connecter :</div>
- <a class='gp' href="login/{$platal->pl_self()}">polytechnicien</a>
+ <div>Me connecter :</div>
+ <a class='gp' href="login/{if $platal->pl_self() eq 'exit'}index{else}{$platal->pl_self()}{/if}">polytechnicien</a>
+ {if $platal->pl_self() neq 'exit'}
+ <!-- <script type="text/javascript" src="login/autologin/{$platal->pl_self()}?forceXml=1"></script> -->
+ {/if}
{/if}
</td>
<td class="right" style="vertical-align: middle">
- {if $smarty.session.perms eq admin}
+ {if hasPerm('admin')}
<a href="admin" title="Administration des groupes">
Gérer les groupes
{icon name=wrench title="Administration"}
</td>
</tr>
- <tr><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
+ <tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
- <tr>
+ <tr class="hideable">
<td colspan="2" id="credits">
<a href="plan">plan du site</a> -
<a href="Xnet/Services">services proposés</a> -
<a href="Xnet/APropos">à propos de ce site</a> -
- {mailto address="contact@polytechnique.org" text="nous contacter" encode="javascript"}
+ <a href="mailto:contact@polytechnique.org">nous contacter</a>
{if $smarty.session.auth}
- - <a href="send_bug" class="popup_840x600">signaler un bug</a>
+ - <a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup_840x600">signaler un bug</a>
{/if}
<br />
- © Copyright 2000-2007 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
+ Plat/al {#globals.version#} - © Copyright 2000-2009 <a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
+ <div class="pem">
+ <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/200">Liste1</a>
+ <a href="{$globals->baseurl}/pem/{$platal->pl_self()|replace:'/':'_'}/400">Liste2</a>
+ <!--
+ {poison count=20}
+ -->
+ </div>
</td>
</tr>
{/if}
</table>
- </body>
+ </body>
</html>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}