Ejemplo n.º 1
0
        } else {
            $cart_[] = $id;
            $message = sprintf($msg["cart_notice_add"], $notice_header);
        }
    } else {
        $message = $msg["cart_full"];
    }
} else {
    if ($lvl) {
        switch ($lvl) {
            case "more_results":
                //changement de plan !
                switch ($mode) {
                    case "tous":
                        $searcher = new searcher_all_fields(stripslashes($user_query));
                        $notices = $searcher->get_result();
                        add_notices_to_cart($notices);
                        break;
                    case "title":
                    case "titre":
                        $searcher = new searcher_title(stripslashes($user_query));
                        $notices = $searcher->get_result();
                        add_notices_to_cart($notices);
                        break;
                    case "keyword":
                        $searcher = new searcher_keywords(stripslashes($user_query));
                        $notices = $searcher->get_result();
                        add_notices_to_cart($notices);
                        break;
                    case "abstract":
                        $searcher = new searcher_abstract(stripslashes($user_query));