-
Notifications
You must be signed in to change notification settings - Fork 2
/
teams.php
40 lines (30 loc) · 945 Bytes
/
teams.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
40
<?php
require('settings.php');
require('functions.php');
require('data.php');
?>
<html>
<head>
<title>LLR Staff in the building</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
$listExec = getEmployees('team = 17 AND status = 1', 'department, team, firstname, surname');
if (count($listExec)>0) {
displayTeamPresenceSolo($listExec, 'Executive');
}
$listOthers = getEmployees('team <> 17 AND status = 1', 'department, team, firstname, surname');
if (count($listOthers)>0) {
displayTeamPresence($listOthers);
}
?>
</body>
</html>