forked from jrsouth/in-out
-
Notifications
You must be signed in to change notification settings - Fork 0
/
floors.php
39 lines (28 loc) · 816 Bytes
/
floors.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require('settings.php');
require('functions.php');
require('data.php');
?>
<html>
<head>
<title>LLR Staff in the building (by floor)</title>
<link rel="stylesheet" href="style.css" />
<?php
if ($settings['refresh-rate'] > 0) {
echo('<meta http-equiv="refresh" content="'.$settings['refresh-rate'].'">');
}
?>
</head>
<body>
<h1>LLR Staff currently signed in</h1>
<p>( <a href="floors.php">View by floor</a> | <a href="teams.php">View by team</a> )<br /><br /></p>
<?php
foreach ($floors as $floor) {
$list = getEmployees('status = 1 AND floor = ' . $floor['id'], 'firstname, surname');
if (count($list)>0) {
displayFloorPresenceSolo($list, $floor['name']);
}
}
?>
</body>
</html>