".PathToImage($diapo_accueil["note_txt".$dp_slng])."

"; } foreach($diapo_liste as $diapo_item) { if ($diapo_item[2] == "a") $dp_liste[] = array($diapo_item[3 + $dp_ilng], $diapo_item[5 + $dp_ilng], $diapo_item[1]); } sort($dp_liste); $dp_categ = ""; echo "
"; foreach($dp_liste as $dp_item) { if ($dp_categ != $dp_item[0]) { if (!empty($dp_categ)) echo "

"; $dp_categ = $dp_item[0]; echo ""; } $diapo_param = DP_ReadParam($dp_item[2]); $dp_dir_vig = $chemin.$diapo_param["dir_vig"]; $dp_hdir = opendir($dp_dir_vig); $dp_vigname = array(); while ($dp_file = readdir($dp_hdir)) { if (eregi("(jpg|jpeg|gif|png|bmp)$", $dp_file)) { $dp_vigname[] = $dp_dir_vig."/".$dp_file; } } sort($dp_vigname); echo ""; } echo "
".$dp_item[0]."
 
"; echo ""; } echo ""; echo "
"; echo "".$dp_item[1]."
"; switch (count($dp_vigname)) { case 0 : echo $diapo_adm150; break; case 1 : echo $diapo_adm151; break; default : echo count($dp_vigname).$diapo_adm152."
"; if ($diapo_accueil["nvig"] == "0") $dp_maxvig = count($dp_vigname); else $dp_maxvig = min(count($dp_vigname), $diapo_accueil["nvig"]); for ($dp_i=0; $dp_i < $dp_maxvig; $dp_i++) { echo " "; } if ($dp_maxvig != count($dp_vigname)) echo " ..."; echo "

"; if ($diapo_accueil["note_pos_acc"] == 1) { echo "

".PathToImage($diapo_accueil["note_txt".$dp_slng])."

"; } btable(); include($chemin."inc/bpage.inc"); ?>