get_display_detail()); } elseif($private && $section_id){ $avis = new avis($section_id, AVIS_SECTIONS); ajax_http_send_response($avis->get_display_detail()); } elseif($private && $notice_id) { if ($opac_notice_affichage_class) $notice_affichage=$opac_notice_affichage_class; else $notice_affichage="notice_affichage"; $notice=new $notice_affichage($notice_id); ajax_http_send_response($notice->avis_detail()); } else{ ajax_http_send_response("1"); } } else { ajax_http_send_response("0"); } break; case 'refresh': $avis=new avis($notice_id); ajax_http_send_response($avis->get_display()); break; case 'delete': $deleted = avis::delete_avis($id); if ($deleted) { if($article_id) { $avis = new avis($article_id, AVIS_ARTICLES); ajax_http_send_response($avis->get_display_detail()); } elseif($section_id) { $avis = new avis($section_id, AVIS_SECTIONS); ajax_http_send_response($avis->get_display_detail()); } else { if ($opac_notice_affichage_class) $notice_affichage=$opac_notice_affichage_class; else $notice_affichage="notice_affichage"; $notice=new $notice_affichage($notice_id); ajax_http_send_response($notice->avis_detail()); } } else { ajax_http_send_response("0"); } break; }