Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<cfquery datasource="#application.dbconnACC#" name="sitesDownQuery">
 
    select siteid, sitename from acc_cellsupervision_list_v where severity='critical' order by sitename asc
 
</cfquery>
 
 
 
<cfquery datasource="#application.dbconnACC#" name="escInfQuery">
 
    SELECT DISTINCT
 
    a.resource_group,
 
    CASE
 
    WHEN b.text_message IS NULL THEN b.emailmessage
 
    ELSE b.text_message
 
    END
 
    MESSAGE,
 
    c.t_number siteid,
 
    c.site,
 
    d.create_date,
 
    tmn.remedy_pkg.asdate(d.create_date)  date_created
 
    FROM aradmin.evt_escalationdestination a,
 
    aradmin.evt_escalationinformationaudit b,
 
    aradmin.evt_eventlog c,
 
    aradmin.evt_escalationandinformation d
 
    WHERE a.guid = b.guid AND c.status = 0 AND d.smcref = c.eventlog_id
 
    AND b.escalationid = d.request_id
 
    and A.RESOURCE_GROUP IS NOT NULL
 
    and (resource_group Like '%SMC%')
 
    order by d.create_date desc
 
 
 
    <!---and tmn.remedy_pkg.asdate(d.create_date) >= sysdate-1--->
 
</cfquery>
 
 
 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml"1>
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
<title>Marquee</title>
 
<link rel="stylesheet" type="text/css" href="../common/css/default.css">
 
</head>
 
 
 
<body>
 
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border:1px;border-style:solid;">
 
    <tr>
 
        <td width="10%" nowrap><strong>Escalations (<cfoutput>#escInfQuery.RecordCount#</cfoutput>)<br></strong>
 
        </td>
 
        <td width="100%">
 
            <marquee align="left" behavior="scroll" direction="left" loop="-1" scrollamount="3">
 
                <cfset bgColor = "##EEEEEE">
 
                <cfset count = 0>
 
                <cfoutput query="escInfQuery">
 
                    <span style="background:#bgColor#;padding:2px 2px 2px 2px;"><strong>#count + 1#/#escInfQuery.RecordCount#:</strong> #date_created# - #resource_group# - #siteid# - #site# - #message#</span>
 
                    <cfset count = count + 1>
 
                    <cfif count mod 2 is 1>
 
                        <cfset bgColor = "##EEEEEE">
 
                    <cfelse>
 
                        <cfset bgColor = "##DDDDDD">
 
                    </cfif>
 
                </cfoutput>
 
            </marquee>
 
            <br />
 
 
 
        </td>
 
    </tr>
 
    <tr>
 
        <td width="10%" nowrap><strong>Critical Sites down (<cfoutput>#sitesDownQuery.RecordCount#)</cfoutput></strong>&nbsp;
 
        </td>
 
        <td>
 
            <marquee align="left" behavior="scroll" direction="left" loop="-1" scrollamount="5">
 
                <cfset bgColor = "##FFFFFF">
 
                <cfset count = 0>
 
                <cfoutput query="sitesDownQuery">
 
                    <span style="background:#bgColor#;padding:2px 2px 2px 2px;"><strong>#count + 1#/#sitesDownQuery.RecordCount#:</strong> #siteid# - #sitename#</span>&nbsp;|&nbsp;
 
                    <cfset count = count + 1>
 
                    <cfif count mod 2 is 1>
 
                        <cfset bgColor = "##DDDDDD">
 
                    <cfelse>
 
                        <cfset bgColor = "##FFFFFF">
 
                    </cfif>
 
                </cfoutput>
 
            </marquee>
 
            </marquee>
 
 
 
        </td>
 
</table>
 
 
 
</body>
 
</html>