diff --git a/htdocs/header.php b/htdocs/header.php index 5cb2cdf3b279ad31d43c3889922976f6b5cc89d8..88b5145e40b64fd70307588c6e91702532c89e40 100644 --- a/htdocs/header.php +++ b/htdocs/header.php @@ -50,13 +50,13 @@ <?php } - if ($_SESSION['connected'] == true){ + if ($_SESSION['connected'] == true) { if ($_SESSION['currentType'] == 'Student') { ?> <li - + <?php if (basename(getcwd()) == 'student') echo 'class="current"'; @@ -70,7 +70,7 @@ ?> <li - + <?php if (basename(getcwd()) == 'requests') echo 'class="current"'; @@ -100,8 +100,6 @@ <?php } ?> - - </ul> </nav> - </header> \ No newline at end of file + </header> diff --git a/htdocs/match_script.php b/htdocs/match_script.php index dbb9e2ac7f701e0b45200e2c02c405006c9127a1..64e458f2b996e5d6c0b0376f2e488fdfe46d1349 100644 --- a/htdocs/match_script.php +++ b/htdocs/match_script.php @@ -11,26 +11,20 @@ function match_script($student, $userRepository){ #$nameProf = $p->getName(); $subjectProf = $p->getSubject(); $dispoProf = $p->getDispo(); - $mailProf = $p->getMail(); foreach($subjectStudent as $ss){ foreach($subjectProf as $sp){ foreach($dispoStudent as $ds){ foreach($dispoProf as $dp){ if (($ss==$sp)&&($ds==$dp)){ - $match = [ "teacher" => $p, "subject" => $sp, - "dispo" => $dp, - "mail" => $mailProf + "dispo" => $dp ]; - - $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>"; #$bool = true; - #echo "Le mail du <b>$firstnameProf $nameProf</b> est <b>$mailProf</b> } } }