";
$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() {
global $recherche_loc;
$r="";
if ($recherche_loc) {
$r="select distinct notice_id from notices,exemplaires where notices.notice_id=exemplaires.expl_notice and expl_location=$recherche_loc";
}
return $r;
}
function search_other_function_has_values() {
global $recherche_loc;
if ($recherche_loc) return true; else return false;
}
function search_other_function_get_values(){
global $recherche_loc;
return $recherche_loc;
}
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";
}
?>