</head>
<body>
{include core=plpage.devel.tpl}
- {if !$simple}
+ {if !t($simple)}
{include file=skin/common.bandeau.tpl}
{/if}
<table id="layout" cellspacing="0" cellpadding="0">
- {if !$simple}
+ {if !t($simple)}
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" id="top">
<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}
+ {if t($xnet_type)}
<img src="images/logo_{$xnet_type}.png" alt="Logo {$xnet_type}" width="106" height="96" />
{else}
- <img src="images/logo_institutions.png" alt="Logo {$xnet_type}" width="106" height="96" />
+ <img src="images/logo_institutions.png" alt="Logo institutions" width="106" height="96" />
{/if}
</td>
<td style="width: 44px">
<td style="width: auto;">
<img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
</td>
- {if $xnet_type}
+ {if t($xnet_type)}
<td style="width: 280px">
- <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>
+ <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}
+ {if t($asso)}
<td class="logo">
- {if $asso.site}
- <a href="{$asso.site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
+ {if t($asso->site)}
+ <a href="{$asso->site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
{else}
<img src='{$platal->ns}logo' alt="LOGO" height="80"/>
{/if}
</tr>
{/if}{* fin simple *}
- {if $menu && !$simple}
+ {if $menu && !t($simple)}
<tr>
<td id="menu">
{foreach from=$menu key=title item=submenu}
{/if}
{/foreach}
{/foreach}
- {if $asso && ($is_admin ||
- ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') ||
- $smarty.session.suid.may_update[$asso.id])))}
+ {if t($asso)}{assign var=asso_id value=$asso->id}{/if}
+ {if t($smarty.session.suid)}{assign var=suid value=true}{else}{assign var=suid value=false}{/if}
+ {if $asso && $is_admin ||
+ ($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'))}
+ {if hasPerm('admin') || ($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>
{include core=plpage.content.tpl}
</td>
</tr>
- {if !$simple}
+ {if !t($simple)}
<tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
<tr class="hideable">
</tr>
{/if}
{/if}
- {if !$simple}
+ {if !t($simple)}
<tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
<tr class="hideable">