예제 #1
0
파일: algo.php 프로젝트: SimylinK/JobDating
 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();
 }