";
$r.="";
$requete="select location_libelle,idlocation from docs_location where location_visible_opac=1";
$result = mysql_query($requete, $dbh);
if (mysql_numrows($result)){
while (($loc = mysql_fetch_object($result))) {
$selected="";
if ($recherche_loc==$loc->idlocation) {$selected="selected";}
$r.= "";
}
}
$r.="";
return $r;
}
function search_other_function_clause(&$clause) {
global $recherche_loc;
if ($recherche_loc) {
$r=",exemplaires ".$clause." and notices.notice_id=exemplaires.expl_notice and expl_location=$recherche_loc";
} else $r=$clause;
if (!$r) $r=$clause;
if ($clause==$r) return false; else {
$clause=$r;
return true;
}
}
function search_other_function_has_values() {
global $recherche_loc;
if ($recherche_loc) return true; else return false;
}
function search_other_function_rec_history($n) {
global $recherche_loc;
$_SESSION["recherche_loc".$n]=$recherche_loc;
}
function search_other_function_get_history($n) {
global $recherche_loc;
$recherche_loc=$_SESSION["recherche_loc".$n];
}
function search_other_function_human_query($n) {
global $recherche_loc,$msg;
$r="";
$recherche_loc=$_SESSION["recherche_loc".$n];
if ($recherche_loc) {
$requete="select location_libelle from docs_location where idlocation='".$recherche_loc."' limit 1";
$res=mysql_query($requete);
$r=$msg["search_history_localisation_title"].@mysql_result($res,0,0);
}
return $r;
}
function search_other_function_post_values() {
global $recherche_loc;
return "\n";
}
?>