show_modif_form(); break; case 'save': $demande->set_properties_from_form(); $demande->save(); $demande->fetch_data($demande->id_demande); $demande->show_consult_form(); break; case 'modif': $demande->show_modif_form(); break; case 'suppr_noti': $requete = "SELECT num_notice FROM demandes WHERE id_demande =$iddemande AND num_notice != 0"; $result = pmb_mysql_query($requete); if (pmb_mysql_num_rows($result) > 0) { $demande->suppr_notice_form(); } else { demandes::delete($demande); $demande->show_list_form(); } break; case 'suppr': demandes::delete($demande); $demande->show_list_form(); break; case 'see_dmde': $demande->show_consult_form(); break; case 'save_action': $actions->save(); $demande->show_consult_form(); break; case 'change_state': if (!empty($chk)) { $nb_chk = count($chk); for ($i = 0; $i < $nb_chk; $i++) { $dde = new demandes($chk[$i]); $dde->change_state($state); } } else { $demande->change_state($state); $demande->fetch_data($iddemande); } $demande->show_consult_form(); break; case 'attach': $demande->show_docnum_to_attach(); break; case 'save_attach': $demande->attach_docnum(); $demande->show_consult_form(); break; case 'notice': $demande->show_notice_form(); break; case 'upd_notice': include "$base_path/demandes/update_notice.inc.php"; $demande->show_consult_form(); break; case 'rapport': $rap->showRapport(); break; case 'create_notice': $demande->create_notice(); $demande->show_consult_form(); break; case 'delete_notice': $demande->delete_notice(); $demande->show_consult_form(); break; case 'final_response': $demande->show_repfinale_form(); break; case 'save_repfinale': $demande->save_repfinale(); $demande->fetch_data($iddemande); $demande->show_consult_form(); break; case 'suppr_repfinale': $demande->suppr_repfinale(); $demande->fetch_data($iddemande); $demande->show_consult_form(); break; default: $demande->show_list_form(); break; } ?>