echo ""; $nomFichier = $Fichier; // recherche extention du fichier et affiche icone $extension=strrchr($nomFichier,'.'); if ($extension=='.gif') echo ""; else if($extension=='.jpg') echo " "; else if($extension=='.bmp') echo " "; else if($extension=='.png') echo " "; else if($extension=='.JPG') echo " "; else if($extension=='.PNG') echo " "; else if($extension=='.GIF') echo " "; else if($extension=='.BMP') echo " "; else if($extension=='.tga') echo " " ; else if($extension=='.tif') echo " "; else if($extension=='.TIF') echo " "; $count = $count + 1 ; } if ($count > 20) { echo "


" ; $count = 0 ; } } closedir($dossier); ?>