Exemple #1
0
 function afficheEchiquier()
 {
     //Affichage en html, tableau
     $dao = new dao();
     $dao->connexion();
     $cmp = 0;
     //for($l = 0; $l < sizeof($this -> Entreprises); $l++) {
     foreach ($this->Entreprises as $IDent) {
         for ($e = 1; $e <= $this->LiensEntrCren[$IDent][0]; $e++) {
             for ($c = 0; $c < $this->nbCreneaux; $c++) {
                 $Etu = $this->Echiquier[$this->LiensEntrCren[$IDent][$e]][$c];
                 if ($Etu != 0) {
                     // nom de l'etudiant
                     $dao->ajoutCreneau($c, $this->Formations[$cmp], $this->Etudiants[$Etu]);
                 }
             }
             $cmp++;
         }
     }
     $dao->deconnexion();
 }