From: x2000habouzit Date: Sat, 22 Jul 2006 21:28:39 +0000 (+0000) Subject: fix skins X-Git-Tag: xorg/0.9.11~333 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=92e6a2879458b7c93be0c145192904c0a41a662e;p=platal.git fix skins git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@572 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/platal.php b/modules/platal.php index 896374c..3aaf937 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -324,9 +324,13 @@ Mail envoy XDB::execute('UPDATE auth_user_quick SET skin={?} WHERE user_id={?}', Env::getInt('newskin'), S::v('uid')); + S::kill('skin'); set_skin(); } + $res = XDB::query('SELECT id FROM skins WHERE skin_tpl={?}', S::v('skin')); + $page->assign('skin_id', $res->fetchOneCell()); + $sql = "SELECT s.*,auteur,count(*) AS nb FROM skins AS s LEFT JOIN auth_user_quick AS a ON s.id=a.skin diff --git a/templates/skins.tpl b/templates/skins.tpl index 7645bfd..9e357a2 100644 --- a/templates/skins.tpl +++ b/templates/skins.tpl @@ -39,28 +39,27 @@ Pour toute information compl {mailto address='support@polytechnique.org' subject='navigateurs'}

-
- - {iterate item=skin from=$skins} - - - - - - {/iterate} -
- - - {$skin.name} - ajoutée le {$skin.date|date_format}
- {$skin.comment} -

- Créée par {$skin.auteur} -

- Utilisée par {$skin.nb} inscrit{if $skin.nb>1}s{/if} -
-  [ CAPTURE D'ECRAN ] -
-
+ + {iterate item=skin from=$skins} + + + + + + {/iterate} +
+ + + {$skin.name} + ajoutée le {$skin.date|date_format}
+ {$skin.comment} +

+ Créée par {$skin.auteur} +

+ Utilisée par {$skin.nb} inscrit{if $skin.nb>1}s{/if} +
+  [ CAPTURE D'ECRAN ] +
{* vim:set et sw=2 sts=2 sws=2: *}