get_result(); $nb_result_titres = $search_title->get_nb_results(); $l_typdoc= implode(",",$search_title->get_typdocs()); //définition du formulaire $form = "
"; if (function_exists("search_other_function_post_values")){ $form .=search_other_function_post_values(); } $form .= "
"; if($opac_allow_affiliate_search){ $search_result_affiliate_all = str_replace("!!mode!!","title",$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['titles'],$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!nb_result!!",$nb_result_titres,$search_result_affiliate_all); if($nb_result_titres){ $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_objects",$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!form!!",$form,$search_result_affiliate_all); print $search_result_affiliate_all; }else{ if ($nb_result_titres) { // tout bon, y'a du résultat, on lance le pataquès d'affichage // (affichage sur une ligne cliquable, maybe... print "$msg[titles] ".$nb_result_titres." $msg[results] "; // $found = mysql_query("select * from notices $clause $tri LIMIT $opac_search_results_first_level", $dbh); // si il y a d'autres résultats, je met le lien 'plus de résultats' // Le lien validant le formulaire est inséré avant le formulaire, cela évite les blancs à l'écran print "$msg[suite] "; print "
$form
"; } } if ($nb_result_titres) { $_SESSION["level1"]["title"]["form"]=$form; $_SESSION["level1"]["title"]["count"]=$nb_result_titres; }