TUTTE LE FOTO DELLA 5A FESTA NAZIONALE DI AVVISO PUBBLICO. LAMEZIA TERME (CZ), 25-26 OTTOBRE 2013.
";
$i = 7;
// BEGIN LOOP
// for each folder in basepath
foreach($listfolds as $listfold){
// build the path to that folder
$dir = $basepath.$listfold.'/';
// and collect all the files contained in it (both dirs & files)
$files = scandir($dir);
// now, traverse each but files
foreach($files as $file){
// only if this entry is a real file
if( is_file($dir.$file) ){
// then append this entry to the array for the files contained within the folders in basepath ($listfolds)
//$listfiles[] = $listfold.'/'.$file;
$i++;
echo " | \n";
if ( ($i % 7) == 0 ) {
echo "
\n\n\t\t\t";
};
};
};
};
// END LOOP
// end table
echo "