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 '
'; }