예제 #1
0
    }
    $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 "<div id='res_first_page'>\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 '</div>';
    }
} 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) {