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 = "
"; $form .= "\n"; if (function_exists("search_other_function_post_values")){ $form .=search_other_function_post_values(); } $form .= "\n"; $form .= "\n"; $form .= ""; $form .= "\n"; $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 "
"; print "".$msg["titres_uniformes"]." ".$nb_result_titres_uniformes." ".$msg["results"]." "; /* while($mesEditeurs = mysql_fetch_object($found)) { print "
  • ".$mesEditeurs->ed_name."
  • \n"; } */ // si il y a d'autres résultats, je met le lien 'plus de résultats' // Le lien validant le formulaire est inséré dans le code avant le formulaire, cela évite les blancs à l'écran print "$msg[suite] "; print $form; print "
    "; } } if ($nb_result_titres_uniformes) { $_SESSION["level1"]["titre_uniforme"]["form"]=$form; $_SESSION["level1"]["titre_uniforme"]["count"]=$nb_result_titres_uniformes; }