Exemplo n.º 1
0
    } else {
        echo '<tr><td>' . $value->getRoom() . '</td><td><img src="green.jpg"></td></tr>';
    }
}
foreach ($list->getUsedRooms() as $value) {
    if ($value->getComputer() == true) {
        echo '<tr><td>' . $value->getRoom() . '</td><td><img src="computer.jpg"></td><td><img src="red.jpg"></td></tr>';
    } else {
        echo '<tr><td>' . $value->getRoom() . '</td><td><img src="red.jpg"></td></tr>';
    }
}
echo '<table>';
echo '<tr><th colspan=3>' . $date . '</th></tr>';
echo '<tr><th colspan=3>' . $list->getTimeSlot() . '</th></tr>';
//parametre d'entrée de getGroup() : 't' pour trier en fonction des profs, 'g' pour trier en fonction des groupes
foreach ($list->getGroups('g') as $value) {
    echo '<tr><td>' . $value->getGroup() . '</td><td>' . $value->getTeacher() . '</td><td>' . $value->getRoom() . '</td></tr>';
}
echo '</table>';
require_once 'ScheduleRoom.php';
$scheduleRoom = new ScheduleRoom('S12');
echo '<table>';
echo '<tr><th colspan=3>' . $date . '</th></tr>';
echo '<tr><th colspan=3>' . $scheduleRoom->getRoom() . '</th><th><img src="computer.jpg"></th></tr>';
$last = '08:00';
foreach ($scheduleRoom->getSchedule() as $value) {
    if ($last != $value->getStart()) {
        echo '<tr><td>' . $last . '</td><td>' . $value->getStart() . '</td><td><img src="green.jpg"></td></tr>';
    }
    echo '<tr><td>' . $value->getStart() . '</td><td>' . $value->getEnd() . '</td><td><img src="red.jpg"></td></tr>';
    $last = $value->getEnd();
Exemplo n.º 2
0
                </div>
                <div class="row">
                    <div id="horaire" class="col-md-12"><?php 
echo $classRooms->getTimeSlot();
?>
</div>
                </div>
             
            </div>

	<div class='grid'>
		<div class="row col-md-12">
			<div id="room">
			<?php 
$sort = 't';
foreach ($classRooms->getGroups($sort) as $value) {
    ?>
                            <div class="tile tile-blue col-xs-8 col-xs-offset-2"  >
                            <?php 
    if ($sort === 'g') {
        echo "<h1>" . $value->getGroup() . "</h1><p class=\"group\">" . $value->getTeacher() . "</p><p class=\"roomT\">" . $value->getRoom() . "</p></div>";
    } else {
        if ($sort === 't') {
            echo "<h1>" . $value->getTeacher() . "</h1><p class=\"group\">" . $value->getGroup() . "</p><p class=\"roomT\">" . $value->getRoom() . "</p></div>";
        }
    }
}
?>
			</div>
		</div>
	</div>