Bonjour, voila mon souci j ai une galerie de wallpaper et j aimerai que les categorie soit sur 3 colonnes au lieu de 2
voici le code
<?php
include('./menu/Haut.php');
echo '<table style="border:0px; width:100%;">',"\r\n"
,'<tr>',"\r\n"
,'<td style="LEFT: 0px; WIDTH: 159px; POSITION: absolute; TOP: 0px; HEIGHT: 319px">',"\r\n";
include('./menu/Gauche.php');
echo '</td>',"\r\n"
,'<td style="width:100%;">',"\r\n";
include('./inc/config.php');
if ($haut !== ''){
}
error_reporting(E_ALL);
$dir_connect = opendir('../Celebrite Femme');
echo '<h3></h3>',"\r\n"
,'<div style="text-align:center;"><a href="',$path,$nom_index,'Celebrite Femme" onClick="window.open(\'',$path,'new.php\',\'new_photo\',\'status=no scrollbars=yes,width=450,height=500,directories=no,location=no,resizable=yes,toolbar=no\');"></a></div>',"\r\n"
,'<br />',"\r\n"
,'<br />',"\r\n";
$list_files = array();
$Alphabet = array();
while($file = readdir($dir_connect)) {
if ($file !== 'inc' && is_dir($file) && $file !== '.' && $file !== '..' && !substr_count($file, 'menu')) {
$list_files[count($list_files)] = $file;
$Alphabet[$file{0}] = 1;
}
}
closedir($dir_connect);
/*
SORT_ASC // Classement en ascendant
SORT_DESC // Classement en descendant
*/
array_multisort($list_files, SORT_ASC);
$tmp = array();
$Acount = array();
$Alphabet = round((count($Alphabet)-1)/2);
echo '<table style="border:0px; width:48%; margin-left:230px;" align="center"><tr style="vertical-align:top;"><td style="width:24%;">',"\r\n";
foreach($list_files as $cle => $file) {
if(count($Acount)-1 == $Alphabet){
echo '</td><td style="width:24%;">',"\r\n";
$Acount[count($Acount)] = 1;
}
if(!IsSet($tmp[$file{0}])){
if(count($Acount)-1 != -1){
echo '<br />',"\r\n";
}
echo '<div style="font-size:120%;">',ucfirst($file{0}),'</div>',"\r\n";
$tmp[$file{0}] = 1;
}
echo '<a href="',$path,$nom_index,'',$file,'/index.php" style="color:#000000; text-decoration:none;">',$file,'</a><br />',"\r\n";
$Acount[$file{0}] = 1;
}
echo '</td></tr></table>',"\r\n";
if(IsSet($bas) && $bas !== ''){
}
include('./menu/Bas.php');
?>