id_notice) { $notice = new mono_display($expl->id_notice, 0); $expl_msg_form = str_replace('!!notice!!', $notice->header, $expl_msg_form); } elseif ($expl->id_bulletin) { $notice = new bulletinage_display($expl->id_bulletin); $expl_msg_form = str_replace('!!notice!!', $notice->display, $expl_msg_form); } $expl_msg_form = str_replace('!!message!!', htmlentities($expl->note ,ENT_QUOTES, $charset), $expl_msg_form); $expl_msg_form = str_replace('!!comment!!', htmlentities($expl->expl_comment ,ENT_QUOTES, $charset), $expl_msg_form); print pmb_bidi($expl_msg_form); } else { // action définie : mettre à jour le message pour l'exemplaire $query = "UPDATE exemplaires SET expl_note='$message_content', expl_comment='$f_ex_comment' WHERE expl_id=$id "; $result = mysql_query($query, $dbh); $form_cb_expl=$cb; include('./circ/visu_ex.inc.php'); }