get_query_members("indexint","concat(indexint_name,' ',indexint_comment)","index_indexint","indexint_id"); $clause.= "where ".$members["where"]; if ($opac_search_other_function) $add_notice=search_other_function_clause(); if ($typdoc || $add_notice) $clause = ', notices '.$clause.' and indexint=indexint_id '; if ($typdoc) $clause.=" and typdoc='".$typdoc."' "; if ($add_notice) $clause.= ' and notice_id in ('.$add_notice.')'; $tri = 'order by pert desc, index_indexint'; $pert=$members["select"]." as pert"; $indexint = mysql_query("SELECT COUNT(distinct indexint_id) FROM indexint $clause", $dbh); $nb_result_indexint = mysql_result($indexint, 0 , 0); //Enregistrement des stats if($pmb_logs_activate){ global $nb_results_tab; $nb_results_tab['indexint'] = $nb_result_indexint; } //définition du formulaire $form = "
\n"; if($opac_allow_affiliate_search){ $search_result_affiliate_all = str_replace("!!mode!!","indexint",$search_result_affiliate_lvl1); $search_result_affiliate_all = str_replace("!!search_type!!","authorities",$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!label!!",$msg['indexint'],$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!nb_result!!",$nb_result_indexint,$search_result_affiliate_all); if($nb_result_indexint){ $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($user_query)),$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!form_name!!","search_indexint",$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_indexint) { // tout bon, y'a du résultat, on lance le pataquès d'affichage print "