Some skin updates: fix SUID location
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 7 Dec 2006 18:27:01 +0000 (18:27 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 7 Dec 2006 18:27:01 +0000 (18:27 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1255 839d8a87-29fc-0310-9880-83ba4fa771e5

14 files changed:
htdocs/css/default.css
htdocs/css/keynote.css
modules/platal.php
templates/skin/default.tpl
templates/skin/espace.tpl
templates/skin/humlinux.tpl
templates/skin/keynote.tpl
templates/skin/linux.tpl
templates/skin/liteskin.tpl
templates/skin/nbviolet.tpl
templates/skin/newxorg.tpl
templates/skin/register.tpl
templates/skin/spectral.tpl
templates/skin/trapped.tpl

index 47c2871..7dd3471 100644 (file)
@@ -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;
index 94caa22..23dbff2 100644 (file)
@@ -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;
 }
index d8fa628..234b925 100644 (file)
@@ -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)
index 8f2f63b..d9e7ad5 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -49,8 +49,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index dca26b5..9d0855d 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 3b1ebf0..95e6ce2 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 34964db..27461ff 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -49,8 +49,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 79ba9ef..89288c3 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 750d55b..d6b039c 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 819f5a5..a31fce5 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 4bd64e9..b294fe9 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index be664cb..6949952 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -46,7 +46,6 @@
       {include file="skin/common.content.tpl"}
     </div>
   {else}
-    {include file=skin/common.bandeau.tpl}
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-top">
index 69c6a06..3ccf2e1 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
index 2c7fc62..777f558 100644 (file)
   </head>
   <body>
     {include file=skin/common.devel.tpl}
-
+    {if !$simple}
+      {include file=skin/common.bandeau.tpl}
+    {/if}
     {if $smarty.session.suid}
-    <table id="suid" cellpadding="0" cellspacing="0">
-      <tr>
-        <td>
-          {$smarty.session.suid} ({$smarty.session.forlife})
-          [<a href="exit">exit</a>]
-        </td>
-      </tr>
-    </table>
+    <div id="suid">
+      <a href="exit">
+        Quitter le SU sur {$smarty.session.forlife} ({$smarty.session.perms})
+      </a>
+    </div>
     {/if}
 
   {if $simple}
@@ -51,8 +50,6 @@
 
   {else}
 
-    {include file=skin/common.bandeau.tpl}
-
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">