";
} else {
$jscript = "
";
}
//-------------------------------------------
// $sel_footer : footer
//-------------------------------------------
$sel_footer = "
";
if ($dyn!=1) {
$baseurl = "./select.php?what=function&caller=$caller&p1=$p1&p2=$p2&no_display=$no_display&bt_ajouter=$bt_ajouter&dyn=$dyn";
} else {
$baseurl = "./select.php?what=function&caller=$caller¶m1=$param1¶m2=$param2&no_display=$no_display&bt_ajouter=$bt_ajouter&dyn=$dyn";
}
require_once("$class_path/marc_table.class.php");
// récupération des codes de fonction
if (!count($s_func )) {
$s_func = new marc_list('function');
}
print $sel_header;
print $jscript;
$afunc=$s_func->table;
$special = false;
$favorite = false;
$alphabet=array();
asort($afunc);
foreach($afunc as $key => $val) {
if ($key>=900) $special=true;
else $alphabet[] = pmb_substr($val,0,1);
if ($s_func->tablefav[$key]) $favorite=true;
}
$alphabet = array_unique($alphabet);
if(!$letter)
if ($favorite)
$letter = "Fav";
elseif ($special)
$letter="My";
else
$letter = "a";
// affichage d'un sommaire par lettres
print "";
if ($favorite) {
if ($letter!='Fav')
print "
".$msg['favoris']." ";
else
print "
".$msg['favoris']." ";
}
if ($special) {
if ($letter!='My')
print "
# ";
else
print "
# ";
}
foreach($alphabet as $dummykey=>$char) {
//$char = chr($i);
$present = pmb_preg_grep("/^$char/i", $s_func->table);
if(sizeof($present) && strcasecmp($letter, $char))
print "
$char ";
else if(!strcasecmp($letter, $char))
print "
$char ";
}
print "