error) {
error_message($msg["searcher_syntax_error"],sprintf($msg["searcher_syntax_error_desc"],$aq->current_car,$aq->input_html,$aq->error_message));
exit;
}
$nbr_lignes = entites::getNbFournisseurs($id_bibli, $aq);
}
if (!$page) $page=1;
$debut = ($page-1)*$nb_per_page;
if($nbr_lignes) {
//liste
if($user_input=="") {
$res = entites::list_fournisseurs($id_bibli, $debut, $nb_per_page);
} else {
$res = entites::list_fournisseurs($id_bibli, $debut, $nb_per_page, $aq);
}
while(($row=mysql_fetch_object($res))) {
$entry = $row->raison_sociale;
$adresse = '';
if ($caller!='form_abonnement') {
$coord = entites::get_coordonnees($row->id_entite, '1');
if (mysql_num_rows($coord) != 0) {
$coord = mysql_fetch_object($coord);
if($coord->libelle != '') $adresse = htmlentities(addslashes($coord->libelle), ENT_QUOTES, $charset)."\\n";
if($coord->contact !='') $adresse.= htmlentities(addslashes($coord->contact), ENT_QUOTES, $charset)."\\n";
if($coord->adr1 != '') $adresse.= htmlentities(addslashes($coord->adr1), ENT_QUOTES, $charset)."\\n";
if($coord->adr2 != '') $adresse.= htmlentities(addslashes($coord->adr2), ENT_QUOTES, $charset)."\\n";
if($coord->cp !='') $adresse.= htmlentities(addslashes($coord->cp), ENT_QUOTES, $charset).' ';
if($coord->ville != '') $adresse.= htmlentities(addslashes($coord->ville), ENT_QUOTES, $charset);
}
}
print pmb_bidi("
id_entite', '".htmlentities(addslashes($entry),ENT_QUOTES,$charset)."', '$adresse' )\">$entry");
print "
";
}
mysql_free_result($res);
// constitution des liens
$nbepages = ceil($nbr_lignes/$nb_per_page);
$suivante = $page+1;
$precedente = $page-1;
// affichage du lien précédent si nécessaire
print '