From a3afa47c1b1d9ee8ad932aa3cd1523dbbfba3d24 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 7 Dec 2006 18:27:01 +0000 Subject: [PATCH] Some skin updates: fix SUID location git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1255 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/css/default.css | 19 ++++++++++++++++--- htdocs/css/keynote.css | 19 ++++++++++++++++--- modules/platal.php | 2 +- templates/skin/default.tpl | 18 ++++++++---------- templates/skin/espace.tpl | 19 ++++++++----------- templates/skin/humlinux.tpl | 19 ++++++++----------- templates/skin/keynote.tpl | 18 ++++++++---------- templates/skin/linux.tpl | 19 ++++++++----------- templates/skin/liteskin.tpl | 19 ++++++++----------- templates/skin/nbviolet.tpl | 19 ++++++++----------- templates/skin/newxorg.tpl | 19 ++++++++----------- templates/skin/register.tpl | 17 ++++++++--------- templates/skin/spectral.tpl | 19 ++++++++----------- templates/skin/trapped.tpl | 19 ++++++++----------- 14 files changed, 121 insertions(+), 124 deletions(-) diff --git a/htdocs/css/default.css b/htdocs/css/default.css index 47c2871..7dd3471 100644 --- a/htdocs/css/default.css +++ b/htdocs/css/default.css @@ -472,11 +472,24 @@ div.adresse strong { #suid { color: red; background: #ffc0cb; - width: 100%; + width: auto; font-weight: bold; + text-align: center; +} +#suid a { + color: red; + background: inherit; + text-decoration: none; + display: block; +} +#suid:hover { + color: red; + background: #ffffcb; +} +#suid a:hover { + color: #ff7000; + background: inherit; } -#suid td { padding: 2px; } -#suid a { color: red; } #body { width: 740px; diff --git a/htdocs/css/keynote.css b/htdocs/css/keynote.css index 94caa22..23dbff2 100644 --- a/htdocs/css/keynote.css +++ b/htdocs/css/keynote.css @@ -494,12 +494,25 @@ div.adresse { background: #ffc0cb; width: auto; font-weight: bold; + text-align: center; +} +#suid a { + color: red; + background: inherit; + text-decoration: none; + display: block; +} +#suid:hover { + color: red; + background: #ffffcb; +} +#suid a:hover { + color: #ff7000; + background: inherit; } -#suid td { padding: 2px; } -#suid a { color: red; background: inherit; } #body { - width: 740px; + width: 800px; margin-left: auto; margin-right: auto; } diff --git a/modules/platal.php b/modules/platal.php index d8fa628..234b925 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -349,7 +349,7 @@ Mail envoy LEFT JOIN auth_user_quick AS a ON s.id=a.skin WHERE skin_tpl != '' AND ext != '' GROUP BY id ORDER BY s.date DESC"; - $page->assign_by_ref('skins', XDB::iterator($sql)); + $page->assign('skins', XDB::iterator($sql)); } function handler_exit(&$page, $level = null) diff --git a/templates/skin/default.tpl b/templates/skin/default.tpl index 8f2f63b..d9e7ad5 100644 --- a/templates/skin/default.tpl +++ b/templates/skin/default.tpl @@ -30,15 +30,15 @@ {include file=skin/common.devel.tpl} + {if !$simple} + {include file=skin/common.bandeau.tpl} + {/if} {if $smarty.session.suid} - - - - -
- {$smarty.session.suid} ({$smarty.session.forlife}) - [exit] -
+
+ + Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms}) + +
{/if} {if $simple} @@ -49,8 +49,6 @@ {else} - {include file=skin/common.bandeau.tpl} -