Exemple #1
0
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>Edt salles</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Le styles -->
    <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>

<?php 
require_once "ListClassRooms.php";
$time = 0;
$classRooms = new ListClassRooms($time);
$lowestTime = $classRooms->getTimeSlot();
?>
<!DOCTYPE html>
<html lang="fr">
	<head>
		<meta charset="utf-8"/>
		<title>EDT Salles</title>
	</head>
	<body>
		
		<!--<button id="horairePrecedent" class="btn-group btn-group-justified" >Horaire précédent</button>-->
		<span hidden id="timeSlot" ><?php 
echo $classRooms->getTimeSlot();
?>
</span>
Exemple #2
0
<html>
    <head>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="style.css">
        <title></title>
    </head>
    <body>
        <?php 
date_default_timezone_set("Europe/Paris");
setlocale(LC_TIME, 'fr_FR.utf8', 'fra');
require_once 'Calendar.php';
$date = strftime('%d ', time()) . ucfirst(strftime('%B', time()));
require_once 'ListClassRooms.php';
$i = 0;
$list = new ListClassRooms($i);
echo '<table>';
echo '<tr><th colspan=3>' . $date . '</th></tr>';
echo '<tr><th colspan=3>' . $list->getTimeSlot() . '</th></tr>';
foreach ($list->getFreeRooms() as $value) {
    if ($value->getComputer() == true) {
        echo '<tr><td>' . $value->getRoom() . '</td><td><img src="computer.jpg"></td><td><img src="green.jpg"></td></tr>';
    } 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>';
Exemple #3
0
<?php

if (!isset($_POST['time'])) {
    die("Fatal error : time variable missing");
}
require_once "../ListClassRooms.php";
$time = $_POST['time'];
$list = new ListClassRooms($time);
$result = array("timeSlot" => $list->getTimeSlot(), "freeRooms" => array(), "occupiedRooms" => array());
$i = 0;
foreach ($list->getFreeRooms() as $room) {
    $result["freeRooms"][$i] = '<a href="room.php?room=' . $room->getRoom() . '"><div class="tile tile-lime col-md-3 col-xs-12"  >' . '<h1> ' . $room->getRoom() . '</h1>';
    if ($room->getComputer()) {
        $result["freeRooms"][$i] .= '<p><img src="computer.png"></p>';
    }
    $result["freeRooms"][$i] .= '</div></a>';
    $i++;
}
$i = 0;
foreach ($list->getUsedRooms() as $room) {
    $result["occupiedRooms"][$i] = '<a href="room.php?room=' . $room->getRoom() . '"><div class="tile tile-red col-md-3 col-xs-12"  >' . '<h1> ' . $room->getRoom() . '</h1>';
    if ($room->getComputer()) {
        $result["occupiedRooms"][$i] .= '<p><img src="computer.png"></p>';
    }
    $result["occupiedRooms"][$i] .= '</div></a>';
    $i++;
}
echo json_encode($result);
Exemple #4
0
<!DOCTYPE html>
<html lang="fr">
	<head>
		<meta charset="utf-8"/>
		<title>EDT Salles</title>
		<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">
                <link rel="icon" href="agenda.png">
	</head>
	<body>
            <?php 
require_once "ListClassRooms.php";
$time = 0;
$classRooms = new ListClassRooms($time);
$lowestTime = $classRooms->getTimeSlot();
date_default_timezone_set("Europe/Paris");
setlocale(LC_TIME, 'fr_FR.utf8', 'fra');
$date = strftime('%d ', time()) . ucfirst(strftime('%B', time()));
?>
            <div class="container">
				
		<div class="row">
                <div class="col-md-12 text-center">
		<ul class="nav nav-pills pills-center">
				  <li>
                                      <a href="index.php">Salles Libres</a></li>
                                  <li class="active"><a href="Teacher.php">Profs</a>
				  </li>
		</ul>
                </div>