if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . "/demandes_actions.class.php";
require_once $class_path . "/demandes.class.php";
require_once $class_path . "/demandes_notes.class.php";
require_once $class_path . "/explnum_doc.class.php";
$actions = new demandes_actions($idaction);
$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':