Ejemplo n.º 1
0
             $ObjStage->SetIsIntegrationEntiteIndependante($ValIsIntegrationEntiteIndependante);
             $ObjStage->SetRemarquesGenerales(ProtectApos($ValRemarquesGenerales));
             $ObjStage->SetNbPersCentreInfo($ValNbPersCentreInfo);
             $ObjStage->SetAreOldStagiaires($ValAreOldStagiaires);
             $ObjStage->SetNbStagesProposes($ValNbStagesProposes);
             $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");