From 4ef5c0764190109eee23e570b9e29881f5c1ffe0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Aug 2005 14:42:15 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tiques=20mineures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/ihm.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index db9836bc0bb..d2782e8d09f 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -249,18 +249,23 @@ function show_theme($edit=0) { global $conf,$langs,$dirtheme,$bc; - $nbofthumbs=5; + $thumbsbyrow=6; print ''; - print ''; + print ''; + $var=true; + $var=!$var; + print ''; print '
'.$langs->trans("DefaultSkin").'
'.$langs->trans("DefaultSkin").'
'; + + print ''; $handle=opendir($dirtheme); - $var=false; $i=0; while (($subdir = readdir($handle))!==false) { if (is_dir($dirtheme."/".$subdir) && substr($subdir, 0, 1) <> '.' && substr($subdir, 0, 3) <> 'CVS') { - if ($i % $nbofthumbs == 0) { + if ($i % $thumbsbyrow == 0) + { print ''; } @@ -280,17 +285,19 @@ function show_theme($edit=0) $i++; - if ($i % $nbofthumbs == 0) print ''; + if ($i % $thumbsbyrow == 0) print ''; } } - if ($i % $nbofthumbs != 0) { - while ($i % $nbofthumbs != 0) { + if ($i % $thumbsbyrow != 0) { + while ($i % $thumbsbyrow != 0) { print ''; $i++; } print ''; } + print '
 
'; + print '
'; }