updateFields(array(0=>$la->id_ligne),array('statut'=>$lgstat)); break; default : break; } switch($quoifaire){ case 'get_comment': switch($typ_com){ case 'comment_lg': ajax_http_send_response($la->commentaires_gestion); break; case 'comment_lo': ajax_http_send_response($la->commentaires_opac); break; default : break; } break; case 'upd_comment': switch($typ_com){ case 'comment_lg': $la->commentaires_gestion=$comment; $la->updateFields(array(0=>$la->id_ligne), array('commentaires_gestion'=>$comment)); ajax_http_send_response(nl2br(stripslashes($la->commentaires_gestion))); break; case 'comment_lo': $la->commentaires_opac=$comment; $la->updateFields(array(0=>$la->id_ligne), array('commentaires_opac'=>$comment)); ajax_http_send_response(nl2br(stripslashes($la->commentaires_opac))); break; default : break; } break; default : break; }