$ObjStage->SetNbStagesRestant($ValNbStagesProposes);
                $ObjStage->SetNbPersonnesService($ValNbPersonnesService);
                $ObjStage->SetIsStagiaireSeul($ValIsStagiaireSeul);
                $ObjStage->SetIndemnitesMensuellesStage($ValIndemnitesMensuellesStage);
                $ObjStage->SetIndemnitesRepas(ProtectApos($ValIndemnitesRepas));
                $ObjStage->SetIndemnitesTransport(ProtectApos($ValIndemnitesTransport));
                $ObjStage->SetIsEmbauchePossible($ValIsEmbauchePossible);
                $ObjStage->SetAdr1Stage(ProtectApos($ValAdr1Stage));
                $ObjStage->SetAdr2Stage(ProtectApos($ValAdr2Stage));
                $ObjStage->SetCPStage($ValCPStage);
                $ObjStage->SetVilleStage(ProtectApos($ValVilleStage));
                $ObjStage->SetFK_Tuteur($ValFK_Tuteur);
                if ($IdentPK == 0 || $SaveAsNew) {
                    $ObjStage->Insert();
                } else {
                    $ObjStage->Update();
                }
                $StepStage = 'MAJTabOK';
            }
            break;
    }
    $Bold = $Status == TUTEUR ? '' : '<b>';
    $FinBold = $Status == TUTEUR ? '' : '</b>';
    if ($Status != TUTEUR) {
        // ==> ADMIN || RESP || SECR
        $ReqTuteurs = $ConnectStages->query("SELECT DISTINCT {$NomTabUsers}.Nom, {$NomTabUsers}.Prenom, {$NomTabUsers}.PK_User, {$NomTabEntreprises}.NomE \n\t\t                          FROM {$NomTabUsers}, {$NomTabEntreprises} \n\t\t                          WHERE {$NomTabUsers}.Status = '" . TUTEUR . "'\n\t\t\t\t\t\t\t\t    AND {$NomTabUsers}.FK_Entreprise = {$NomTabEntreprises}.PK_Entreprise\n\t\t\t\t\t\t\t\t  ORDER BY NomE, Nom");
    }
    if ($StepStage == 'MAJTabOK') {
        if ($Reafficher) {
            ?>
<script>location.replace("?Trait=Form&SlxTable=tabstages&IdentPK=<?php 
            $ObjTuple->SetMIS($ValMIS);
            $ObjTuple->SetIR($ValIR);
            $ObjTuple->SetMIR($ValMIR);
            $ObjTuple->SetIT($ValIT);
            $ObjTuple->SetMIT($ValMIT);
            $ObjTuple->SetMT($ValMT);
            $ObjTuple->SetMMT($ValMMT);
            $ObjTuple->SetEmb($ValEmb);
            $ObjTuple->SetFK_User($ValTut);
            if ($IdentPK == 0) {
                $ObjTuple->Insert();
            } else {
                if ($SaveAsNew) {
                    $ObjTuple->Insert();
                } else {
                    $ObjTuple->Update();
                }
            }
            $Step = 'MAJTabOK';
        }
        break;
}
if ($Step == 'MAJTabOK') {
    if ($Reafficher) {
        ?>
             <script>location.replace("?Trait=FORM&SlxTable=tabstages&IdentPK=<?php 
        echo $IdentPK;
        ?>
");</script>
                                                                       <?php 
    } else {