case 'see': $actions->fetch_data($idaction, false); $actions->show_consultation_form(); break; case 'suppr_action': $chk = ${"chk_action_" . $iddemande}; if (sizeof($chk)) { for ($i = 0; $i < count($chk); $i++) { $action = new demandes_actions($chk[$i]); demandes_actions::delete($action); } } else { demandes_actions::delete($actions); } $demandes->fetch_data($iddemande, false); $demandes->show_consult_form(); break; case 'add_docnum': $actions->show_docnum_form(); break; case 'save_docnum': demandes_actions::get_docnum_values_from_form($explnum_doc); demandes_actions::save_docnum($actions, $explnum_doc); $actions->fetch_data($actions->id_action, false); $actions->show_consultation_form(); break; case 'suppr_docnum': demandes_actions::delete_docnum($explnum_doc); $actions->fetch_data($actions->id_action, false); $actions->show_consultation_form(); break;
} require_once $class_path . "/demandes.class.php"; require_once $class_path . "/demandes_notes.class.php"; require_once $class_path . "/demandes_actions.class.php"; $notes = new demandes_notes($idnote, $idaction); $actions = new demandes_actions($idaction); switch ($act) { case 'add_note': demandes_notes::get_values_from_form($notes); demandes_notes::save($notes); 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': $notes->show_modif_form(true); break; case 'save_note': demandes_notes::get_values_from_form($notes); demandes_notes::save($notes); 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;
die("no access"); } require_once $class_path . "/demandes.class.php"; require_once $class_path . "/demandes_actions.class.php"; require_once $class_path . "/rapport.class.php"; require_once $base_path . "/demandes/export_format/report_to_rtf.class.php"; $demande = new demandes($iddemande); $actions = new demandes_actions($idaction); $rap = new rapport_demandes($iddemande); switch ($act) { case 'new': $demande->show_modif_form(); break; case 'save': $demande->save(); $demande->show_consult_form(); break; case 'modif': $demande->show_modif_form(); break; case 'suppr_noti': $demande->suppr_notice_form(); break; case 'suppr': $demande->delete(); $demande->show_list_form(); break; case 'see_dmde': $demande->show_consult_form(); break; case 'save_action':
require_once $base_path . '/classes/demandes_actions.class.php'; print "<script type='text/javascript' src='./includes/javascript/http_request.js'></script>\n<script type='text/javascript' src='./includes/javascript/demandes.js'></script>"; $demandes = new demandes($iddemande); $demandes_action = new demandes_actions($idaction); $demande_note = new demandes_notes($idnote, $idaction); switch ($sub) { case 'save_action': demandes_actions::get_values_from_form($demandes_action); foreach ($demandes->allowed_actions as $key => $value) { if ($value['active'] && $demandes_action->type_action == $value['id']) { demandes_actions::save($demandes_action); } } demandes::dmde_majRead($demandes_action->num_demande, "_opac"); $demandes->fetch_data($demandes_action->num_demande, false); $demandes->show_consult_form($demandes_action->id_action); break; case 'save_demande': demandes::get_values_from_form($demandes); demandes::save($demandes); $demandes->fetch_data($demandes->id_demande, false); $demandes->show_consult_form(); break; case 'add_demande': $demandes->show_modif_form(); break; case 'add_action': $demandes_action->type_action = $type_action; $demandes_action->num_demande = $iddemande; $demandes_action->show_modif_form(); break;