예제 #1
0
     $ValMIT = $ObjTuple->GetMIT();
     $ValidMIT = ESPACE;
     $ValMT = $ObjTuple->GetMT();
     $ValidMT = ESPACE;
     $ValMMT = $ObjTuple->GetMMT();
     $ValidMMT = ESPACE;
     $ValEmb = $ObjTuple->GetEmb();
     $ValidEmb = ESPACE;
     $ValTut = $ObjTuple->GetFK_User();
     break;
 case 'InitNew':
     // Préparation du nouvel enreg.
     $ObjTuple = new CStage();
     $ValPK_Stage = $ObjTuple->GetPK_Stage();
     $ValidPK_Stage = ESPACE;
     $ValFK_Entreprise = $ObjTuple->GetFK_Entreprise();
     $ValidFK_Entreprise = ESPACE;
     $ValMateriel = $ObjTuple->GetMateriel();
     $ValidMateriel = ESPACE;
     $ValResLocaux = $ObjTuple->GetResLocaux();
     $ValidResLocaux = ESPACE;
     $ValAutresRL = $ObjTuple->GetAutresRL();
     $ValidAutresRL = ESPACE;
     $ValResPublics = $ObjTuple->GetResPublics();
     $ValidResPublics = ESPACE;
     $ValAutresRP = $ObjTuple->GetAutresRP();
     $ValidAutresRP = ESPACE;
     $ValLangages = $ObjTuple->GetLangages();
     $ValidLangages = ESPACE;
     $ValAutresL = $ObjTuple->GetAutresL();
     $ValidAutresL = ESPACE;
예제 #2
0
 }
 $ValidNiveauStage = $ValidFK_Entreprise = $ValidFK_Tuteur = $ValidMateriel = $ValidLangages = $ValidAutresLangages = $ValidBD = $ValidAutresBD = $ValidLogicielsSpecifiques = $ValidMethodesAnalyse = $ValidMethodesConception = $ValidMethodesProgrammation = $ValidMethodesControleQL = $ValidMethodesGestionProjet = $ValidSujet = $ValidIsNatureTacheProgr = $ValidIsNatureStageAnalyse = $ValidIsIntegrationProjetGlobal = $ValidIsIntegrationEntiteIndependante = $ValidRemarquesGenerales = $ValidNbPersCentreInfo = $ValidAreOldStagiaires = $ValidNbStagesProposes = $ValidNbStagesRestant = $ValidNbPersonnesService = $ValidIsStagiaireSeul = $ValidIndemnitesMensuellesStage = $ValidIndemnitesRepas = $ValidIndemnitesTransport = $ValidIsEmbauchePossible = $ValidAdr1Stage = $ValidAdr2Stage = $ValidCPStage = $ValidVilleStage = ESPACE;
 $ValPossiblesNbPerson = array();
 $ValPossiblesNbPerson[0] = '0';
 $ValPossiblesNbPerson[1] = '1';
 $ValPossiblesNbPerson[2] = '2';
 $ValPossiblesNbPerson[3] = '< 5';
 $ValPossiblesNbPerson[4] = '< 10';
 $ValPossiblesNbPerson[5] = '10 et plus';
 switch ($StepStage) {
     case 'InitModif':
     case 'InitNew':
         $ObjStage = new CStage($StepStage == 'InitModif' ? $IdentPK : 0);
         // ToDo ; Vérifier que l'utilisateur a bien accés au stage
         $ValPK_Stage = $ObjStage->GetPK_Stage();
         $ValFK_Entreprise = $Status == TUTEUR ? $FK_EntrepriseUser : $ObjStage->GetFK_Entreprise();
         if ($ValFK_Entreprise != 0) {
             $ReqSoc = $ConnectStages->query("SELECT NomE FROM {$NomTabEntreprises}\n\t\t\t                       WHERE PK_Entreprise = {$ValFK_Entreprise};");
             $ObjSoc = $ReqSoc->fetch();
             $ValNomE = $ObjSoc['NomE'];
         } else {
             $ValNomE = '';
         }
         $ValNiveauStage = $ObjStage->GetNiveauStage();
         $ValMateriel = $ObjStage->GetMateriel();
         $ValLangages = $ObjStage->GetLangages();
         $ValAutresLangages = $ObjStage->GetAutresLangages();
         $ValBD = $ObjStage->GetBD();
         $ValAutresBD = $ObjStage->GetAutresBD();
         $ValLogicielsSpecifiques = $ObjStage->GetLogicielsSpecifiques();
         $ValLogicielsSpecOuiNon = $ValLogicielsSpecifiques != '';
예제 #3
0
<?php

if ($CleOK == '069b9247591948b71d303ac66371bf0b') {
    require_once $PATH_COMMUNS . 'FctDiverses.php';
    // IsInSet()
    $ReqLangages = $ConnectStages->query("SELECT * FROM {$NomTabLangages}");
    $ReqMateriels = $ConnectStages->query("SELECT * FROM {$NomTabMateriels}");
    $ReqBDs = $ConnectStages->query("SELECT * FROM {$NomTabBasesDonnees}");
    require_once $PATH_CLASS . 'CStage.php';
    require_once $PATH_CLASS . 'CUser.php';
    require_once $PATH_CLASS . 'CEntreprise.php';
    $ObjStage = new CStage($IdentPK);
    $ObjEntreprise = new CEntreprise($ObjStage->GetFK_Entreprise());
    $ObjUser = new CUser($ObjStage->GetFK_Tuteur());
    if ($ObjStage->GetAdr1Stage() != '') {
        $Adr1Stage = $ObjStage->GetAdr1Stage();
        $Adr2Stage = $ObjStage->GetAdr2Stage();
        $CPStage = $ObjStage->GetCPStage();
        $VilleStage = $ObjStage->GetVilleStage();
    } else {
        $Adr1Stage = $ObjEntreprise->GetAdr1();
        $Adr2Stage = $ObjEntreprise->GetAdr2();
        $CPStage = $ObjEntreprise->GetCP();
        $VilleStage = $ObjEntreprise->GetVille();
    }
    $ValPK_Stage = $ObjStage->GetPK_Stage();
    $ValRemarquesGenerales = $ObjStage->GetRemarquesGenerales();
    $WidthButton = 100;
    $WidthCadre = 800;
    $MsgProposeA = array();
    $MsgProposeA[1] = 'aux étudiants de DUT';