set_properties_from_form();
$notes->save();
demandes_notes::note_majParent($notes->id_note, $notes->num_action, $actions->num_demande,"_gestion");
demandes_notes::note_majParent($notes->id_note, $notes->num_action, $actions->num_demande,"_opac");
$actions->fetch_data($notes->num_action,false);
if($redirectto=="demandes-show_consult_form"){
$demande=new demandes($actions->num_demande);
$demande->show_consult_form($notes->num_action);
}else{
$actions->show_consultation_form();
}
break;
case 'reponse':
print "
".$msg['demandes_gestion']." : ".$msg['demandes_notes']."
";
$notes->show_modif_form(true);
break;
case 'save_note':
$notes->set_properties_from_form();
$notes->save();
demandes_notes::note_majParent($notes->id_note, $notes->num_action, $actions->num_demande,"_gestion");
demandes_notes::note_majParent($notes->id_note, $notes->num_action, $actions->num_demande,"_opac");
$actions->fetch_data($idaction,false);
$actions->show_consultation_form();
break;
case 'modif_note':
print "".$msg['demandes_gestion']." : ".$msg['demandes_notes']."
";
$notes->show_modif_form();
break;
case 'suppr_note':
demandes_notes::delete($notes);
$actions->fetch_data($idaction,false);
$actions->show_consultation_form();
break;
}
?>