get_result(); $nb_result = $search_all_fields->get_nb_results(); $l_typdoc= implode(",",$search_all_fields->get_typdocs()); //définition du formulaire $form = "
"; if (function_exists("search_other_function_post_values")){ $form .=search_other_function_post_values(); } $form .= " "; if($opac_indexation_docnum_allfields) $form .= ""; $form .= "
"; if($opac_allow_affiliate_search){ $libelle=($opac_indexation_docnum_allfields ? " [".$msg['docnum_search_with']."] " : ''); $search_result_affiliate_all = str_replace("!!mode!!","all",$search_result_affiliate_lvl1); $search_result_affiliate_all = str_replace("!!search_type!!","notices",$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!label!!",$msg['tous'],$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!nb_result!!",$nb_result,$search_result_affiliate_all); if($nb_result){ $link = "".$msg['suite']." "; }else $link = ""; $search_result_affiliate_all = str_replace("!!link!!",$link,$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!style!!","",$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!user_query!!",rawurlencode(stripslashes((($charset == "utf-8")?$user_query:utf8_encode($user_query)))),$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!form_name!!","search_tous",$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!form!!",$form,$search_result_affiliate_all); print $search_result_affiliate_all; if($opac_show_results_first_page && $nb_result>0) { print "
\n"; if ($opac_notices_depliable) print $begin_result_liste; $nb=0; $recherche_ajax_mode=0; $notices = array(); $notices = $search_all_fields->get_sorted_result("default",0,$opac_nb_results_first_page); for ($i =0 ; $i<$opac_nb_results_first_page;$i++){ if($i>4)$recherche_ajax_mode=1; if($i==count($notices))break; print pmb_bidi(aff_notice($notices[$i], 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode)); } print '
'; } }else{ if($nb_result){ $libelle=($opac_indexation_docnum_allfields ? " [".$msg['docnum_search_with']."] " : ''); if($opac_show_results_first_page && $nb_result > $opac_nb_results_first_page) { print "".$msg['tous'].$libelle." ".$opac_nb_results_first_page." ".$msg['notice_premiere']." ".$nb_result." ".$msg['results']." "; print "".$msg['notice_toute']." 
"; } else { print "".$msg['tous'].$libelle." ".$nb_result." ".$msg['results']." "; print " ".$msg['suite']." 
"; } if($opac_show_results_first_page) { print "
\n"; if ($opac_notices_depliable) print $begin_result_liste; $nb=0; $recherche_ajax_mode=0; $notices = array(); $notices = $search_all_fields->get_sorted_result("default",0,$opac_nb_results_first_page); for ($i =0 ; $i<$opac_nb_results_first_page;$i++){ if($i>4)$recherche_ajax_mode=1; if($i==count($notices))break; print pmb_bidi(aff_notice($notices[$i], 0, 1, 0, "", "", 0, 0, $recherche_ajax_mode)); } print '
'; } $form = "
$form
"; print $form; } } if ($nb_result) { $_SESSION["level1"]["tous"]["form"]=$form; $_SESSION["level1"]["tous"]["count"]=$nb_result; }