forked from MIKEINTOSHSYSTEMS/mikeintoshaiodashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
447 lines (427 loc) · 22.9 KB
/
main.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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dereja - M&E - System</title>
<meta name="description" content="Welcome to Dereja M&E Dashboard, Data Exploration and Administration System">
<meta name="keywords" content="Monitoring, Evaluation, EthioJobs, Dereja, Reporting, Dashboard, and, Data, Data Management, Exploration, Portal, MIKEINTOSH, Systems, System">
<meta name="author" content="MERQ Consultancy">
<link rel="icon" type="image/x-icon" href="/assets/dereja.png">
<link rel="icon" type="image/png" href="/assets/dereja.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="dist/css/menu-style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
<script type="text/javascript" src="dist/js/jquery.min.js"></script>
<script type="text/javascript" src="dist/js/menu.js"></script>
<!-- Matomo -->
<!--
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//healthemergencydashboard.moh.gov.et/analytics/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
-->
<!-- End Matomo Code -->
<!-- Google tag (gtag.js) -->
<!--
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DWXRQJ8HW4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DWXRQJ8HW4');
</script>
-->
<!-- 01 -->
<!-- Google tag (gtag.js) -->
<!--
<script async src="https://www.googletagmanager.com/gtag/js?id=G-43ZGCC253M"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-43ZGCC253M');
</script>
-->
<!-- <link rel="stylesheet" href="dist/font-awesome/css/all.css">
System Developed By MIKEINTOSHSYSTEMS AKA MICHAEL KIFLE TEFERRA
-->
<link rel="stylesheet" href="./styles.css">
<script>
function printFunction() {
var navigationBar = document.getElementById('navigations');
navigationBar.style.display = "none";
document.getElementById('graphaFrames').style.width = "100%";
window.print();
}
var selectedPreviusly = null;
var selectedPreviuslyBackgroundColor = null;
function changeIframe(url, self) {
console.log(self);
if (selectedPreviusly == null) {
selectedPreviuslyBackgroundColor = self.style.backgroundColor;
self.style.backgroundColor = "#ff9257";
selectedPreviusly = self;
} else {
selectedPreviusly.style.backgroundColor = selectedPreviuslyBackgroundColor;
selectedPreviuslyBackgroundColor = self.style.backgroundColor;
self.style.backgroundColor = "#f32770";
selectedPreviusly = self;
}
document.getElementById("iFramer").src = url;
}
</script>
</head>
<body>
<!--wrapper start-->
<div class="wrapper">
<!--sidebar start-->
<div class="sidebar">
<div class="sidebar-menu">
<center class="profile">
<a href="index.php">
<img src="https://www.dereja.com/_nuxt/img/Logo-black.7a2b5f8.svg" alt="">
<p></p>
</a>
</center>
<li class="item">
<a href="" class="menu-btn"><i class="fas fa-bar-chart-o"></i><span>Dashboard</span></a>
</li>
<!-- Start Candidates -->
<li class="item" id="candidates_report">
<a href="#candidates_report" class="menu-btn">
<i class="fas fa-users"></i><span>Candidates <i class="fas fa-chevron-down drop-down"></i></span>
</a>
<div align="left" class="sub-menu">
<span
onClick="changeIframe('https://derejademo.merqconsultancy.org/public/dashboard/d0941f92-57bd-4c4a-9fe6-f961b6a573a2',this)"
class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Candidates AIO</span></a>
</p>
</span>
<span onClick="changeIframe('https://derejademo.merqconsultancy.org/public/dashboard/225fd007-55f4-47f1-ba16-d784f64abd8f',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Summary Reports</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 03</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 04</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 05</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 06</span></a>
</p>
</span>
</div>
</li>
<!-- End Candidates -->
<li class="item" id="service_reports">
<a href="#service_reports" class="menu-btn">
<i class="fas fa-calendar"></i><span>Events <i class="fas fa-chevron-down drop-down"></i></span>
</a>
<div align="left" class="sub-menu">
<span
onClick="changeIframe('https://derejademo.merqconsultancy.org/public/dashboard/9277d4b1-7410-47e7-861e-274051922cb0',this)"
class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Event Participants AIO</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 02</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 03</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 04</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 05</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Report 06</span></a>
</p>
</span>
</div>
</li>
<li class="item" id="additional_reports">
<a href="#additional_reports" class="menu-btn">
<i class="fas fa-book"></i><span>Trainings<i class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span
onClick="changeIframe('https://derejademo.merqconsultancy.org/public/dashboard/faee4927-cfc4-4cc9-a177-9d0b8ce46c01',this)"
class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span> Training Participants AIO</span></a>
</p>
</span>
</div>
</li>
<!--Employment Start-->
<li class="item" id="employment_reports">
<a href="#employment_reports" class="menu-btn">
<i class="fas fa-briefcase"></i><span>Employment<i class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span
onClick="changeIframe('https://derejademo.merqconsultancy.org/public/dashboard/70d0fd6e-6205-499c-9cef-588659168b70',this)"
class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span> Employment AIO</span></a>
</p>
</span>
</div>
</li>
<!--Employment End-->
<li class="item" id="tabular">
<a href="#tabular" class="menu-btn">
<i class="fas fa-table"></i><span>Tabular Reports <i
class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Table 1</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Table 2</span></a>
</p>
</span>
</div>
</li>
<li class="item" id="data_admin">
<a href="#data_admin" class="menu-btn">
<i class="fas fa-cog"></i><span>Administration <i
class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span onClick="changeIframe('./app/login.php',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>User's Data Exploration </span></a>
</p>
</span>
<span onClick="changeIframe('./app/login.php',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Data Entry & Admin Login </span></a>
</p>
</span>
<span onClick="changeIframe('./backend/forms/index.php',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Forms Managment & Admin </span></a>
</p>
</span>
</div>
</li>
<li class="item">
<a href="compareData.html" class="menu-btn"><i
class="fa fa-balance-scale"></i><span>Compare</span></a>
</li>
<li class="item" id="feedback">
<a href="#feedback" class="menu-btn">
<i class="fas fa-envelope"></i><span>Feedback <i
class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span onClick="changeIframe('backend/forms/user_feedback.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>User Feedbacks</span></a>
</p>
</span>
</div>
</li>
<li class="item" id="analytics">
<a href="#analytics" class="menu-btn">
<i class="fas fa-line-chart"></i><span>Data Monitoring & Visitors Analytics <i
class="fas fa-chevron-down drop-down"></i></span>
</a>
<div class="sub-menu">
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Null Reports 1</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Null Reports 2</span></a>
</p>
</span>
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span>Dashboard Visitors Report</span></a>
</p>
</span>
</div>
</li>
</div>
<!--
<p style="text-align: center;"><strong><span style="color: #00ffff;">_______________________</span></strong></p>
<marquee behavior="scroll" direction="up" scrollamount="2">
<p style="text-align: center;"><span style="color: white;"><strong><span style="text-decoration: underline;">Users Guide</span></strong></span></p>
<p style="text-align: left;"><span style="color: #808080;"><strong><span style="text-decoration: underline;"><br></span></strong></span><span style="color: #00ccff;">Please use the <span style="text-decoration: underline;"><strong>Filters</strong> </span>available at the <span style="text-decoration: underline;"><strong>TOP</strong> </span>from <span style="text-decoration: underline;"><strong>Left</strong> </span>TO <span style="text-decoration: underline;"><strong>Right</strong> </span>starting from <span style="text-decoration: underline;"><strong>Year</strong> </span>to narrow down your filtered results!</span></p>
<div class="Card bordered rounded flex flex-column hover-parent hover--visibility">
<div class="flex-full overflow-hidden flex flex-column full-height">
<div class="CardVisualization flex-full flex-basis-none _2dBdQ">
<div class="full flex-full flex flex-column text-card-markdown dEs6g" style="text-align: left;"><span style="color: #00ccff;">If you would like to see each visualizations please use the Navigation Menu to select your desired Data set and filter accordingly.</span></div>
<div class="full flex-full flex flex-column text-card-markdown dEs6g" style="text-align: left;"><span style="color: #00ccff;"><br></span><span style="color: #00ccff;">→Keep Hovering on the Graphs to View detailed dataset values and Insights!</span></div>
<div class="full flex-full flex flex-column text-card-markdown dEs6g" style="text-align: left;"><span style="color: #00ccff;"><br>To view large visualizations please scroll down </span><span class="EKtkFWMYpwzMKOYr0GYm LQVY1Jpkk8nyJ6HBWKAk"><span style="color: #ff6600;"></span></span>
<p style="text-align: left;"><span style="color: #00ccff;"> </span></p>
</div>
</div>
</div>
</div>
</marquee>
-->
<br>
<br>
<br>
<div id="counter" align="center">Loading...</div>
<script>
// Function to fetch the current count from the server
function fetchCounter() {
fetch('./analytics/visits/counter.php') // Change 'counter.php' to the server-side script that updates the counter
.then(response => response.text())
.then(count => {
document.getElementById('counter').innerText = 'Total visitors: ' + count;
});
}
// Call the function when the page loads
fetchCounter();
// Optionally, you can refresh the counter at intervals
// setInterval(fetchCounter, 5000); // Refresh every 5 seconds (adjust as needed)
</script>
<br>
<p style="text-align: center;"><strong><span
style="color: #00ffff;">_________________________</span></strong></p>
<br>
<p style="text-align: center;"><small><span style="color: red;">Powered By MERQ Consultancy ©
2024<br /></span></small><strong><small><span style="color: red;"></span></small></strong></p>
<p style="text-align: center;"><strong><span
style="color: #00ffff;">_________________________</span></strong></p>
<br>
<br>
<br>
<br>
<p>
<!--
<div id="widgetIframe"><iframe width="100%" height="100" src="https://healthemergencydashboard.moh.gov.et/analytics/index.php?module=Widgetize&action=iframe&disableLink=1&widget=1&moduleToWidgetize=CoreVisualizations&actionToWidgetize=singleMetricView&idSite=1&period=year&date=2022-08-19" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
-->
<font color="white">By MERQ Consultancy</font>
</p>
</div>
<!--sidebar end-->
<!--header menu start-->
<div class="header">
<div class="header-menu">
<div class="title">
<a href="index.php">
<span class="title-hide">
<a href="index.php"><img src="assets/moh_logo_c.png" alt="" width="1" height="1">
<p></p>
</a></a><span class="sec-span"></span></span>
</div>
<div class="sidebar-btn">
<i class="fas fa-bars"></i>
</div>
<div align="center">
<font color="white">
<h2> Dereja - M&E - System </h2>
</font>
</div>
<ul>
<ul>
<span onClick="changeIframe('./help/index.htm',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span><i class="fas fa-question-circle"></i> </span></a>
</p>
</span>
<!--
<span onClick="changeIframe('./test.html',this)" class="parentCatagory">
<p class="subButtons">
<span><i class="fas fa-bell"></i> </span></a>
</p>
</span>
-->
<span onClick="changeIframe('./app/login.php',this)" class="parentCatagory">
<p class="subButtons">
<!-- cnd:] -->
<span><i class="fas fa-power-off"></i> </span></a>
</p>
</span>
</ul>
</ul>
</div>
</div>
<!--header menu end-->
<!--main container start-->
<div id="graphaFrames" class="main-container">
<!--
<iframe id="iFramer" src="https://metabase.healthemergencydashboard.moh.gov.et/public/dashboard/2e35785b-da15-4479-98eb-701e566d5c8b?year=2023&week="
frameborder="0" width="100%" height="100%" allowtransparency=""></iframe>
-->
<iframe id="iFramer"
src="https://derejademo.merqconsultancy.org/public/dashboard/7fe22d0e-2524-49c9-bab8-4073fb257913"
frameborder="0" width="100%" height="100%" allowtransparency=""></iframe>
</div>
<!--main container end-->
</div>
<!--wrapper end-->
</body>
</html>