forked from kkaiser1952/NCM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolColorAssign.php
85 lines (74 loc) · 2.64 KB
/
colColorAssign.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
//colColorAssign.php Written: 2019-04-04
// This PHP is used in getactivities.php and checkIn.php to assign column colors
// These background color assignments are in something of a priority direction
// The most important are on the bottom so they don't get over ridden by some less imporant
// on the top.
// Sombody missing is primary importnat, followed by any of the control operators
// Any one who has left the net should also be important to know
if (in_array($row[Mode], $digimodes )) {
$brbCols = 'bgcolor="#fbc1ab"';
$digitalKey = 1;
}
/* if (in_array($row[Mode], $mobilemode )) {
//$brbCols = 'bgcolor="#fbc1ab"';
//$digitalKey = 1;
} */
if (in_array($row[active], $statmodes )) {
$brbCols = 'bgcolor="#cacaca"';
//$brbKey = 1;
}
if (in_array($row[traffic], $netTypes )) {
$brbCols = 'bgcolor="#ff9cc2"';
$digitalKey = 1;
}
if ($row[active] == 'MISSING') {
//$brbCols = 'bgcolor="red"';
$important1 = 'bgcolor="red"';
$prioritykey = 1;
$f = '<font color="black">';
}
if ($row[traffic] == 'Pending' | $row[traffic] == 'Priority' | $row[traffic] == 'Routine' | $row[traffic] == 'Welfare' | $row[traffic] == 'Question' | $row[traffic] == 'Announcement' | $row[traffic] == 'Comment' | $row[traffic] == 'Bulletin' | $row[traffic] == 'Traffic' ) {
$important2 = 'bgcolor="#ff9cc2"';
$trafficKey = 1;
}
if ($row[traffic] == 'Emergency') {
//$brbCols = 'bgcolor="red"';
$important2 = 'bgcolor="red"';
$prioritykey = 1;
$f = '<font color="black">';
}
if ($row[active] == "BRB") {
$brbCols = 'bgcolor="#d783ff"';
$brbKey = 1;
}
if ($row[active] == "OUT" | $row[active] == 'In-Out') {
$brbCols = 'bgcolor="#cdd3bc"';
$logoutKey = 1;
}
if (in_array($row[netcontrol], $os)) {
$brbCols = 'bgcolor="#bae5fc"';
$f = '<font color="black">';
}
// First Log In
if ($row[firstLogIn] == 1) {
$newCall = 'bgcolor="#ffdb2b"';
$fliKey = 1;
}
if ($row[comments] == 'First Log In') {
$timeline = 'bgcolor="#ffdb2b"';
// no fliKey definition needed here
}
if ($row[comments] == "No FCC Record" OR $row[comments] == "This is a dupe") {
$badCols = 'bgcolor="pink"';
$redKey = 1;
}
if ($row[comments] == "Not a Valid W3W entry<br>Please re-enter.") {
$badCols = 'bgcolor="pink"';
$redKey = 1;
}
if (in_array($row[Mode], $digimodes )) {
$modCols = 'bgcolor="#fbc1ab"';
$digitalKey = 1;
}
?>