"; print "

".$msg["l_browse_title"]."

"; print "
"; if($opac_view_filter_class){ $requete="select idlocation, location_libelle, location_pic, css_style from docs_location where location_visible_opac=1 and idlocation in(". implode(",",$opac_view_filter_class->params["nav_sections"]).") order by location_libelle "; } else $requete="select idlocation, location_libelle, location_pic, css_style from docs_location where location_visible_opac=1 order by location_libelle "; $resultat=pmb_mysql_query($requete); if (pmb_mysql_num_rows($resultat)>1) { print ""; $npl=0; $ids=array(); $tab_locations = array(); while ($r=pmb_mysql_fetch_object($resultat)) { if($opac_map_activate==1 || $opac_map_activate==3) { $ids[] = $r->idlocation; $tab_locations[$r->idlocation]=array(); $tab_locations[$r->idlocation]["id"] = $r->idlocation; $tab_locations[$r->idlocation]['libelle'] = $r->location_libelle; $tab_locations[$r->idlocation]['code_champ'] = 90; $tab_locations[$r->idlocation]['code_ss_champ'] = 4; $tab_locations[$r->idlocation]['url'] = "./index.php?lvl=section_see"; $tab_locations[$r->idlocation]['param'] = "&location=" . $r->idlocation . ($r->css_style?"&opac_css=" . $r->css_style:""); $tab_locations[$r->idlocation]['flag_home_page'] = true; } else { if ($npl==0) print ""; if ($r->location_pic) $image_src = $r->location_pic ; else $image_src = get_url_icon("bibli-small.png"); print ""; $npl++; if ($npl==$opac_nb_localisations_per_line) { print ""; $npl=0; } } } if($opac_map_activate==1 || $opac_map_activate==3) { print ''; } if ($npl!=0) { while ($npl<$opac_nb_localisations_per_line) { print ""; $npl++; } print ""; } print "
".$r->location_libelle."
".$r->location_libelle."
' . map_location_home_page_controler::get_map_location_home_page( $ids, $tab_locations, array(), array()) . '
"; } else { if (pmb_mysql_num_rows($resultat)) { $location=pmb_mysql_result($resultat,0,0); $requete="select idsection, section_libelle, section_pic from docs_section, exemplaires where expl_location=$location and section_visible_opac=1 and expl_section=idsection group by idsection order by section_libelle "; $resultat=pmb_mysql_query($requete); print ""; $npl=0; while ($r=pmb_mysql_fetch_object($resultat)) { if ($npl==0) print ""; if ($r->section_pic) $image_src = $r->section_pic ; else $image_src = get_url_icon("rayonnage-small.png"); print ""; $npl++; if ($npl==$opac_nb_sections_per_line) { print ""; $npl=0; } } if ($npl!=0) { while ($npl<$opac_nb_sections_per_line) { print ""; $npl++; } print ""; } print "
".$r->section_libelle."
".$r->section_libelle."
"; } } print "
"; print ""; ?>