projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapts site inscription.
[platal.git]
/
templates
/
xnet
/
skin.tpl
diff --git
a/templates/xnet/skin.tpl
b/templates/xnet/skin.tpl
index
9322c0b
..
00b8fa8
100644
(file)
--- a/
templates/xnet/skin.tpl
+++ b/
templates/xnet/skin.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
09
Polytechnique.org *}
+{* Copyright (C) 2003-20
10
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-40,22
+40,16
@@
<link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
{include core=plpage.header.tpl}
<link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
{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 core=plpage.devel.tpl}
{include file=skin/common.bandeau.head.tpl}
</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">
{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">
<tr>
<td colspan="2">
<table cellspacing="0" cellpadding="0" id="top">
@@
-64,10
+58,10
@@
<a href="{if $is_logged}login{/if}"><img src="images/asso-montants.png" alt="Logo Assos" /></a>
</td>
<td style="width: 106px">
<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_{$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">
{/if}
</td>
<td style="width: 44px">
@@
-76,14
+70,14
@@
<td style="width: auto;">
<img src="images/bandeau.jpg" alt="bandeau" height="96" width="100%" />
</td>
<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">
<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>
</td>
- {if
$asso
}
+ {if
t($asso)
}
<td class="logo">
<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}
{else}
<img src='{$platal->ns}logo' alt="LOGO" height="80"/>
{/if}
@@
-103,7
+97,7
@@
</tr>
{/if}{* fin simple *}
</tr>
{/if}{* fin simple *}
- {if $menu && !
$simple
}
+ {if $menu && !
t($simple)
}
<tr>
<td id="menu">
{foreach from=$menu key=title item=submenu}
<tr>
<td id="menu">
{foreach from=$menu key=title item=submenu}
@@
-116,9
+110,10
@@
{/if}
{/foreach}
{/foreach}
{/if}
{/foreach}
{/foreach}
- {if $asso && ($is_admin ||
+ {assign var=asso_id value=$asso->id}
+ {if $asso && $is_admin ||
($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') ||
($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') ||
- $smarty.session.suid.may_update[$asso
.id])
))}
+ $smarty.session.suid.may_update[$asso
_id]
))}
<h1>Voir le site comme…</h1>
<form method="post" action="{$platal->ns}change_rights">
<div>
<h1>Voir le site comme…</h1>
<form method="post" action="{$platal->ns}change_rights">
<div>
@@
-144,7
+139,7
@@
{include core=plpage.content.tpl}
</td>
</tr>
{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 class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
<tr class="hideable">
@@
-162,7
+157,7
@@
</tr>
{/if}
{/if}
</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">
<tr class="hideable"><td colspan="2"><img src="images/barre.png" alt="----------" width="100%" /></td></tr>
<tr class="hideable">
@@
-208,7
+203,7
@@
- <a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup_840x600">signaler un bug</a>
{/if}
<br />
- <a href="send_bug/{ $smarty.server.REQUEST_URI }" class="popup_840x600">signaler un bug</a>
{/if}
<br />
- Plat/al {#globals.version#} - © Copyright
2000-2009
<a href="http://x-org.polytechnique.org/">Association Polytechnique.org</a>
+ Plat/al {#globals.version#} - © Copyright
1999-2010
<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>
<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>