-
Notifications
You must be signed in to change notification settings - Fork 3
/
SDB_REPORT.html
205 lines (186 loc) · 4.38 KB
/
SDB_REPORT.html
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SDB Alerts and Activities</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/dc/3.0.8/dc.css" />
<style>
body {
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif";
font-size: 10pt;
}
#title {
font-size: 1.2rem;
font-weight: 700;
}
/* On screens that are 750px wide or less */
@media only screen and (max-width: 750px) {
#tableSDB {
width: 100%;
}
}
#tableSDB{
table-layout: fixed;
padding-top: 0.5rem;
width: 100%;
border-collapse: collapse;
}
thead th:nth-child(1) {
width: 7%;
}
thead th:nth-child(2) {
width: 7%;
}
thead th:nth-child(3) {
width: 7%;
}
thead th:nth-child(4) {
width: 15%;
}
thead th:nth-child(5) {
width: 9%;
}
thead th:nth-child(6) {
width: 9%;
}
thead th:nth-child(7) {
width: 13%;
}
thead th:nth-child(8) {
width: 9%;
}
thead th:nth-child(9) {
width: 13%;
}
thead th:nth-child(10) {
width: 13%;
}
th, td {
padding: 2px;
}
#tableSDB td, tr{
border: 1px solid lightgrey;
}
#tableSDB th{
background-color: #820202;
color: white;
}
.button_list {
margin-left: 1rem;
display: inline-block;
float: right;
padding-bottom: 0.5rem;
padding-right: 1rem;
}
.button {
cursor: pointer;
display: inline-block;
width: 15rem;
margin-top: 0.2rem;
margin-left: 1rem;
border-radius: 0.4rem;
height: 1.4rem;
float: right;
}
.button:hover {
background-color: #c51919; /*#6280bf;*/
color: white;
}
#dc-team-chart {
width: 150px;
float: left;
margin-left: 1rem;
}
#dc-zone-chart {
width: 150px;
float: left;
margin-left: 2rem;
}
#dc-zone-chart g.row text {
fill: black;
font-size: 10px;
}
#dc-date-chart {
width: 360px;
float: left;
margin-left: 3rem;
}
#dc-date-chart p {
margin-bottom: 0px;
}
#dc-date-chart span {
margin-left: 4rem;
font-weight: 600;
}
#dc-result-chart {
width: 180px;
height: 200px;
float: left;
margin-left: 1rem;
margin-right: 0rem;
color: black;
}
.dc-chart .pie-slice {
fill: black;
}
.dc-chart .pie-slice :hover {
stroke: #808080;
stroke-width: 2;
fill-opacity: 0.8;
}
.dc-chart g.row text {
fill: black;
}
.row {
width: 100%;
}
.instruction {
font-weight: 500;
}
.bar{
width: 0.3rem;
}
.pie-tooltip {
position: absolute;
background-color: transparent;
margin-left: 71px;
margin-top: 52px;
}
</style>
</head>
<body>
<span id=title>SDB/EDS - Dashboard des Alertes et des Activités</span>
<div class="row">
<div id='dc-team-chart'>
<p class='instruction'>Cliquez pour sélectionner les équipes:</p>
</div>
<div id='dc-zone-chart'>
<p class='instruction'>Cliquez pour sélectionner la zone de santé:</p>
</div>
<div id='dc-date-chart'>
<p class='instruction'>Cliquez et faites glisser pour sélectionner les dates d'<i>Alert Received</i>:</p>
<span id='dates_selected'></span>
</div>
<div id='dc-result-chart'>
<p class='instruction'>Cliquez pour sélectionner les résultat:</p>
<div class="pie-tooltip"></div>
</div>
</div>
<div class='button_list row'>
<!-- <button class='button' onclick="exportData('xlsx','all_today');">Toutes données d'aujourd'hui - XLSX</button>
<button class='button' onclick="exportData('xlsx','all_yesterday');">Toutes données d'hier - XLSX</button> -->
<button class='button' onclick="exportData('xlsx','dshbrd_view');">Export sélectionné (xlsx) - dashboard</button>
<button class='button' onclick="exportData('xlsx','tbl_view');">Export sélectionné (xlsx) - table</button>
</div>
<div>
<table id="tableSDB" style="font-size: 10px"></table>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.14.0/xlsx.full.min.js"></script>
<script src="./assets/scripts/vendor/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.12/crossfilter.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dc/3.0.8/dc.min.js"></script>
<script src="./js/sdb_cod.js" type="text/javascript"></script>
</body>
</html>