exec("CREATE TABLE IF NOT EXISTS room_restrictions ( id_restriction INT AUTO_INCREMENT PRIMARY KEY, day_of_week VARCHAR(20) NOT NULL, time_from TIME NOT NULL, time_to TIME NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"); // Fetch all restrictions $stmt = $pdo->query("SELECT * FROM room_restrictions ORDER BY FIELD(day_of_week, 'Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday','Every Day'), time_from ASC"); $restrictions = $stmt->fetchAll(); include 'header.php'; ?>

Room

Manage room access restrictions, Set restricted hours for the room!

Add Restriction

Define the time period when the room cannot be accessed via fingerprint.

:
:

Restricted Hours

No Day From To Action
No restrictions have been set yet