$demandes = new demandes($iddemande);
$notes = new demandes_notes($idnote, $idaction);
$explnum_doc = new explnum_doc($iddocnum);
switch ($sub) {
    case 'com':
        switch ($act) {
            case 'close_fil':
                $actions->close_fil();
                break;
        }
        $actions->show_com_form();
        break;
    case 'rdv_plan':
        switch ($act) {
            case 'close_rdv':
                $actions->close_rdv();
                break;
        }
        $actions->show_planning_form();
        break;
    case 'rdv_val':
        switch ($act) {
            case 'val_rdv':
                $actions->valider_rdv();
                break;
        }
        $actions->show_rdv_val_form();
        break;
    default:
        switch ($act) {
            case 'add_action':