"; $sel_header = "
"; //------------------------------------------- // $sel_footer : footer //------------------------------------------- $sel_footer = "
"; $baseurl = "./select.php?what=lang&caller=$caller&p1=$p1&p2=$p2&no_display=$no_display&bt_ajouter=$bt_ajouter"; require_once("$class_path/marc_table.class.php"); // récupération des codes langues if (!count($s_lang)) { $s_lang = new marc_list('lang'); } $alang=$s_lang->table; foreach($alang as $key => $val) { $alphabet[] = strtoupper(convert_diacrit(pmb_substr($val,0,1))); if ($s_lang->tablefav[$key]) $favorite=true; } $alphabet = array_unique($alphabet); if(!$letter) if ($favorite) $letter = "Fav"; else $letter = "a"; print $sel_header; print $jscript; // affichage d'un sommaire par lettres print "
"; if ($favorite) { if ($letter!='Fav') print "".$msg['favoris']." "; else print "".$msg['favoris']." "; } foreach($alphabet as $dummykey=>$char) { $present = pmb_preg_grep("/^$char/i", $s_lang->table); if(sizeof($present) && strcasecmp($letter, $char)) print "$char "; else if(!strcasecmp($letter, $char)) print "$char "; } print "

"; foreach($s_lang->table as $index=>$value ) { if((preg_match("/^$letter/i", convert_diacrit($value))) ||(($letter=='Fav')&&($s_lang->tablefav[$index]))) { $display[] = "
$value
$index
"; } } print "
"; foreach($display as $dummykey=>$link) print $link; print "
"; print $sel_footer;