get_query_members("titres_uniformes","tu_name","index_tu","tu_id"); $clause.= "where ".$members["where"]; if ($opac_search_other_function) $add_notice=search_other_function_clause(); if ($typdoc || $add_notice) $clause.=',notices, notices_titres_uniformes '.$clause; if ($typdoc) $clause.= " and ntu_num_notice=notice_id and typdoc='".$typdoc."' "; if ($add_notice) $clause.= ' and notice_id in ('.$add_notice.')'; $tri = "order by pert desc, index_tu"; $pert=$members["select"]." as pert"; $tu = mysql_query("SELECT COUNT(distinct tu_id) FROM titres_uniformes $clause", $dbh); $nb_result_titres_uniformes = mysql_result($tu, 0 , 0); //Enregistrement des stats if($pmb_logs_activate){ global $nb_results_tab; $nb_results_tab['titres_uniformes'] = $nb_result_titres_uniformes; } //définition du formulaire... $form = "
\n"; if($opac_allow_affiliate_search){ $search_result_affiliate_all = str_replace("!!mode!!","titre_uniforme",$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['titres_uniformes'],$search_result_affiliate_all); $search_result_affiliate_all = str_replace("!!nb_result!!",$nb_result_titres_uniformes,$search_result_affiliate_all); if($nb_result_titres_uniformes){ $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_titres_uniformes",$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_uniformes ) { // tout bon, y'a du résultat, on lance le pataquès d'affichage $requete = "select tu_id,tu_name from titres_uniformes $clause $tri LIMIT $opac_search_results_first_level"; // ??? ER : $found = mysql_query($requete, $dbh); print "