<li> <a href="index.php">Salles Libres</a></li> <li><a href="Teacher.php">Profs</a> </li> </ul> </div> </div> <div class="row"> <div id="jour" class="col-md-12 text-center"><?php echo $date; ?> </div> </div> <div class="row"> <?php if ($scheduleRoom->getSchedule()[0]->getComputer()) { $c = "<img src=\"computer.jpg\">"; } else { $c = ""; } ?> <div id="salle" class="col-md-12 text-center"><?php echo $_GET['room']; ?> <?php echo $c; ?> </div> </div>
<link rel="stylesheet" type="text/css" href="dist/css/metro-bootstrap.min.css"> <link rel="stylesheet" href="styles/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <p>INSERER LE MENU ICI</p> <center><span id="jour"><?php echo $_GET['room'] . ' - ' . $date; ?> </span></center> <div class='grid'> <div class="row col-md-12"> <div id="room"style="position:relative;"> <?php $last = '08:00'; foreach ($scheduleRoom->getSchedule() as $schedule) { if ($last != $schedule->getStart()) { ?> <div class="tile tile-lime col-xs-6 col-xs-offset-3" ><?php echo "<h1>" . $last . " - " . $schedule->getStart() . "</h1>"; //echo "<h2>".$schedule->getGroup()."</h2>"; //echo "<h2>".$schedule->getTeacher()."</h2>"; echo "</div>"; } ?> <div class="tile tile-red col-xs-6 col-xs-offset-3" ><?php echo "<h1>" . $schedule->getStart() . " - " . $schedule->getEnd() . "</h1></div>"; $last = $schedule->getEnd(); } if ($last != '21:00') { echo "<div class=\"tile tile-lime col-xs-6 col-xs-offset-3\" ><h1>" . $last . " - 21:00</h1></div>";