set_segment_search(stripslashes($segment_search)); } ajax_http_send_response(encoding_normalize::json_encode($segment_facets->get_ajax_facette()),'application/json'); } else { ajax_http_send_response(encoding_normalize::json_encode(facettes::make_ajax_facette($_SESSION['tab_result'])),'application/json'); } } break; case 'see_more': if($charset != "utf-8") $sended_datas=utf8_encode($sended_datas); $sended_datas=pmb_utf8_array_decode(json_decode(stripslashes($sended_datas),true)); switch ($action) { case 'segment_results': ajax_http_send_response(search_segment_facets::see_more($sended_datas['json_facette_plus']),'application/json'); break; default: ajax_http_send_response(facettes::see_more($sended_datas['json_facette_plus']),'application/json'); break; } break; case 'compare_see_more': if($charset != "utf-8") $sended_datas=utf8_encode($sended_datas); $sended_datas=pmb_utf8_array_decode(json_decode(stripslashes($sended_datas),true)); $sended_datas['json_notices_ids']=implode(',',$sended_datas['json_notices_ids']); $tab_return=array(); $tab_return['notices'] = encoding_normalize::utf8_normalize(facette_search_compare::call_notice_display($sended_datas['json_notices_ids'], $pmb_compare_notice_nb, $pmb_compare_notice_template)); if($sended_datas['json_notices_ids']){ $tab_return['see_more'] = encoding_normalize::utf8_normalize(facette_search_compare::get_compare_see_more($sended_datas['json_notices_ids'])); } ajax_http_send_response(json_encode($tab_return),'application/json'); break; }