Skip to content
Extraits de code Groupes Projets
Valider edf2ff16 rédigé par Killian's avatar Killian
Parcourir les fichiers

chage

parents a766053b 0022f9ee
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -100,8 +100,6 @@ ...@@ -100,8 +100,6 @@
<?php <?php
} ?> } ?>
</ul> </ul>
</nav> </nav>
</header> </header>
...@@ -11,26 +11,20 @@ function match_script($student, $userRepository){ ...@@ -11,26 +11,20 @@ function match_script($student, $userRepository){
#$nameProf = $p->getName(); #$nameProf = $p->getName();
$subjectProf = $p->getSubject(); $subjectProf = $p->getSubject();
$dispoProf = $p->getDispo(); $dispoProf = $p->getDispo();
$mailProf = $p->getMail();
foreach($subjectStudent as $ss){ foreach($subjectStudent as $ss){
foreach($subjectProf as $sp){ foreach($subjectProf as $sp){
foreach($dispoStudent as $ds){ foreach($dispoStudent as $ds){
foreach($dispoProf as $dp){ foreach($dispoProf as $dp){
if (($ss==$sp)&&($ds==$dp)){ if (($ss==$sp)&&($ds==$dp)){
$match = [ $match = [
"teacher" => $p, "teacher" => $p,
"subject" => $sp, "subject" => $sp,
"dispo" => $dp, "dispo" => $dp
"mail" => $mailProf
]; ];
$matchs[] = $match; $matchs[] = $match;
#echo "Le professeur <b>$firstnameProf $nameProf</b> est disponible pour l'élève le <b>$ds</b> pour un cours de <b>$sp</b> </br>"; #echo "Le professeur <b>$firstnameProf $nameProf</b> est disponible pour l'élève le <b>$ds</b> pour un cours de <b>$sp</b> </br>";
#$bool = true; #$bool = true;
#echo "Le mail du <b>$firstnameProf $nameProf</b> est <b>$mailProf</b>
} }
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter