$author_entry
| ";
//Numéros d'autorite
if($num_auth_present){
$requete="SELECT authority_number,origin_authorities_name, origin_authorities_country FROM authorities_sources JOIN origin_authorities ON num_origin_authority=id_origin_authorities WHERE authority_type='author' AND num_authority='".$author->author_id."' AND TRIM(authority_number) !='' GROUP BY authority_number,origin_authorities_name,origin_authorities_country ORDER BY authority_favorite DESC, origin_authorities_name";
$res_aut=mysql_query($requete,$dbh);
if($res_aut && mysql_num_rows($res_aut)){
$author_list .= "";
$first=true;
while ($aut = mysql_fetch_object($res_aut)) {
if(!$first)$author_list .=", ";
$author_list .=htmlentities($aut->authority_number,ENT_QUOTES,$charset);
if($tmp=trim($aut->origin_authorities_name)){
$author_list .=htmlentities(" (".$aut->origin_authorities_name.")",ENT_QUOTES,$charset);
}
$first=false;
}
$author_list .= " | ";
}else{
$author_list .= " | ";
}
}
if($notice_count && $notice_count!=0)
$author_list .= "author_id';\">".($notice_count)." | ";
else $author_list .= " | ";
$author_list .= "
";
} // fin while
mysql_free_result($res);
$url_base = $url_base."&type_autorite=".$type_autorite;
if (!$last_param) $nav_bar = aff_pagination ($url_base, $nbr_lignes, $nb_per_page, $page, 10, false, true) ;
else $nav_bar = "";
// affichage du résultat
list_authors($user_input, $author_list, $nav_bar,$type_autorite);
} else {
// la requête n'a produit aucun résultat
auteur::search_form($type_autorite);
error_message($msg[211], str_replace('!!author_cle!!', stripslashes($user_input), $msg[212]), 0, './autorites.php?categ=auteurs&sub=&id=');
}
function list_authors($cle, $author_list, $nav_bar,$type_autorite) {
global $authors_list_tmpl;
global $charset ;
$authors_list_tmpl = str_replace("!!cle!!", htmlentities(stripslashes($cle),ENT_QUOTES, $charset), $authors_list_tmpl);
$authors_list_tmpl = str_replace("!!list!!", $author_list, $authors_list_tmpl);
$authors_list_tmpl = str_replace("!!nav_bar!!", $nav_bar, $authors_list_tmpl);
auteur::search_form($type_autorite);
print pmb_bidi($authors_list_tmpl);
}