This repository has been archived by the owner on Nov 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
368 lines (302 loc) · 19.9 KB
/
index.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
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
<!DOCTYPE html>
<html >
<head>
<meta name="description" content="DHIS 2">
<meta name="keywords" content="DHIS 2">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="../dhis-web-commons/font-awesome/css/font-awesome.min.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen" href="../dhis-web-commons/javascripts/jQuery/ui/css/redmond/jquery-ui.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen,print" href="../dhis-web-commons/css/light_blue/light_blue.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen,print" href="../dhis-web-commons/css/widgets.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="print" href="../dhis-web-commons/css/print.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen" href="../dhis-web-commons/javascripts/jQuery/calendars/css/jquery.calendars.picker.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen" href="../dhis-web-commons/select2/select2.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen" href="style/dashboard.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" media="screen" href="../dhis-web-commons/material-design-icons/material-icons.css?_rev=@cacheBuster" />
<link type="text/css" rel="stylesheet" href="../api/files/style?_rev=@cacheBuster" />
<link rel="shortcut icon" href="../favicon.ico" />
<!-- Material UI fonts -->
<link href="../dhis-web-commons/fonts/roboto.css" rel="stylesheet" type="text/css">
<link href="../dhis-web-commons/material-design-icons/material-icons.css" rel="stylesheet" type="text/css">
<style>
html {
font-size: 14px;
}
#header * {
font-family: 'Roboto';
}
</style>
<!-- DHIS2 Settings initialization for a baseUrl that is used for the menu -->
<script>
window.dhis2 = window.dhis2 || {};
dhis2.settings = dhis2.settings || {};
</script>
<script type="text/javascript">
var dateFormat = 'yy-mm-dd';
</script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/ext/ext-all.js"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.min.js?_rev=@cacheBuster"></script>
<!-- Menu dependencies -->
<script type="text/javascript" src="../dhis-web-core-resource/react-15/react-15.min.js"></script>
<script type="text/javascript" src="../dhis-web-core-resource/rxjs/4.1.0/rx.lite.min.js"></script>
<script type="text/javascript" src="../dhis-web-core-resource/lodash/4.15.0/lodash.min.js"></script>
<script type="text/javascript" src="../dhis-web-core-resource/lodash-functional/lodash-functional.js"></script>
<!-- Menu script is up here due to perceived loading time increase -->
<script type="text/javascript" src="../dhis-web-commons/javascripts/header-bar/babel-polyfill.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/header-bar/header-bar.js?_rev=@cacheBuster"></script>
<!-- // End menu -->
<script>
// Needs to be wrapped in jQuery to be sure the DOM is parsed as the script is not at the bottom.
jQuery(function () {
try {
if ('Dhis2HeaderBar' in window) {
Dhis2HeaderBar.initHeaderBar(document.querySelector('#header'), undefined, {noLoadingIndicator: true});
}
} catch (e) {
if ('console' in window ) {
console.error(e);
}
}
});
</script>
<!-- Menu scripts -->
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.translate.js?_rev=@cacheBuster"></script>
<!--[if lte IE 8]><script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/placeholders.jquery.min.js?_rev=@cacheBuster"></script><![endif]-->
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.utils.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.ext.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.metadata.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.tablesorter.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.upload-1.0.2.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.dhisAjaxSelect.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/ui/jquery-ui.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/ui/jquery.blockUI.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.validate.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.validate.ext.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.cookie.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.glob.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.date.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.tmpl.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.autogrow.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/jquery.fileupload.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/underscore.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/filesize.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.util.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/commons.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/commons.ajax.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/lists.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/periodType.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/date.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/json2.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/validationRules.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.array.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.select.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.plus.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/moment/moment-with-langs.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/select2/select2.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.period.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/jQuery/calendars/jquery.calendars.picker.min.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.selected.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.comparator.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.availability.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.trigger.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.validation.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.storage.ss.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.storage.ls.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.storage.idb.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.storage.memory.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.storage.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.appcache.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/dhis2/dhis2.sharing.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/i18nJavaScript.action?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../main.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../request.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../api/files/script?_rev=@cacheBuster"></script>
<!-- Create global system calendar -->
<script>
dhis2.period.format = 'yyyy-mm-dd';
dhis2.period.calendar = $.calendars.instance('gregorian');
dhis2.period.generator = new dhis2.period.PeriodGenerator( dhis2.period.calendar, dhis2.period.format );
dhis2.period.picker = new dhis2.period.DatePicker( dhis2.period.calendar, dhis2.period.format );
</script>
<script type="text/javascript" src="./app.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-pivot/reporttable.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-visualizer/chart.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-mapping/map.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-event-reports/eventreport.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-event-visualizer/eventchart.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/oust/oust.js?_rev=@cacheBuster"></script>
<script type="text/javascript" src="../dhis-web-commons/javascripts/date.js?_rev=@cacheBuster"></script>
</head>
<body class="x-body x-webkit x-chrome x-mac x-reset">
<div id="header">
<img id="headerBanner" src="../api/staticContent/logo_banner" onclick="window.location.href='../dhis-web-commons-about/redirect.action'" style="cursor:pointer" title="">
<div id="dhisDropDownMenu"></div>
</div>
<span id="showLeftBar">
<a href="javascript:dhis2.leftBar.showAnimated()" name="i18n_show_menu">
<i class="fa fa-arrow-right leftBarIcon"></i>
</a>
</span>
<div id="headerMessage" class="bold"></div>
<script type="text/javascript">
jQuery( document ).ready( function() {
dhis2.leftBar.resetPosition();
});
</script>
<div class="page" id="mainPage"> <!-- Do not set style attr -->
<div id="interpretationPopup">
<div id="dashboardItemInterpretationContainer" style="width:50%;float:left;"></div>
<div id="interpretationContainer" style="width:46%;float:right;"></div>
</div>
<div id="dashboardHeader"><h3>
<div style="display:none" id="updateProfileCont">
<a class="alert" href="../../../dhis-web-user-profile/#/profile" id="i18n_update_profile"></a> •
</div>
<a href="../dhis-web-messaging/showSendFeedback.action" id="i18n_write_feedback"></a>
<span style="display:none;inline;" id="messageCont">
• <a class="alert" href="../dhis-web-messaging/message.action" id="messageCount"></a>
</span>
<span style="display:none" id="interpretationCont">
• <a class="alert" href="../dhis-web-interpretation/index.html" id="interpretationCount">
</a>
</span>
• <span id="dashboardTitle"></span>
</h3></div>
<div id="dashboardMenu" class="horizontalMenu">
<ul>
<li><a class="greyButtonLink" href="../dhis-web-messaging/message.action" name="i18n_messages"></a></li>
<li><a class="greyButtonLink" href="../dhis-web-interpretation/index.html" name="i18n_interpretations"></a></li>
</ul>
</div>
<div id="searchDiv"><input type="text" id="searchField" autocomplete="off" placeholder=""></div>
<div id="hitDiv"></div>
<div id="searchButton"><a class="blueButtonLink" href="javascript:dhis2.db.search()" id="i18n_search"></a></div>
<div id="cogButton"><a class="greyButtonLink" href="javascript:dhis2.db.viewOrgUnitSelector()"><i class="fa fa-cog"></i></a></div>
<div style="display: inline-grid;margin-top: 48px;position: relative;">
<div id="dashboardControl" class="horizontalMenu dashboardList">
<ul>
<li><a class='bold' href='javascript:dhis2.db.openAddDashboardForm()' ><label id="i18n_add"></label></a></li>
<li id="manageDashboard"><a class='bold' name="i18n_manage"></a></li>
<li id="manageSharing"><a class='bold' name="i18n_share"></a></li>
<li><a class='bold' href='javascript:dhis2.db.scrollLeft()' title='$i18n.getString( "previous" )'><</a></li>
<li><a class='bold' href='javascript:dhis2.db.scrollRight()' title='$i18n.getString( "next" )'>></a></li>
</ul>
</div>
<div id="dashboardListContainer" class="horizontalMenu">
<div id="dashboardListWrapper" class="dashboardList">
<ul id="dashboardList"></ul>
</div>
</div>
</div>
<div id="contentDiv">
<ul id="contentList" class="horizontalMenu"></ul>
</div>
<div id="chartView" class="page">
<div id="chartViewHeader">
<span><a id="chartImageDownload" href="javascript:dhis2.db.downloadImage()">$i18n.getString( "download" )</a></span>
<span>$i18n.getString( "api_link" ): <a id="chartImageUrl" target="_blank"></a></span>
</div>
<div><img id="chartImage" src="" style="padding: 10px;"></div>
</div>
<div id="reportDialogView" class="page"></div>
<div id="shareForm">
<textarea id="interpretationArea" class="interpretationArea" ></textarea>
<input type="button" class="interpretationButton" value="" onclick="dhis2.db.shareInterpretation()">
</div>
<div id="shareFormError">
<p>$i18n.getString( 'cannot_write_interpretation' )</p>
<a class="greyButtonLink" href="javascript:void(0);" onclick="dhis2.db.closeDialog(this)"
style="margin-top: 1px">$i18n.getString( "close" )</a>
</div>
<div id="shareHelpForm">
<ul>
<li><label name="i18n_from"></label> <a href="../dhis-web-pivot/index.html" id="i18n_pivot_table"></a>, <label id="i18n_generate_pivot_table_click_share"></label> </li>
<li><label name="i18n_from"></label> </label> <a href="../dhis-web-visualizer/index.html" id="i18n_data_visualizer"></a>, <label id="i18n_load_favorite_click_share"></label></li>
<li><label name="i18n_from"></label> </label> <a href="../dhis-web-mapping/index.html" id="i18n_gis"></a>, <label name="i18n_load_favorite_click_share"></label></li>
<li><label name="i18n_from"></label> </label> <a href="../dhis-web-reporting/showDataSetReportForm.action" id="i18n_data_set_report"></a>, <label id="i18n_generate_data_set_report_click_share"></label></li>
</ul>
</div>
<div id="addDashboardForm">
<label style="margin-right: 10px" name="i18n_name"></label><input type="text" id="dashboardName" style="width: 240px; padding: 5px; margin-right: 10px;">
<a class="greyButtonLink" href="javascript:dhis2.db.addDashboard()" style="margin-top: 1px" name="i18n_create"></a>
</div>
<div id="manageDashboardForm" class="page">
<h4 id="i18n_rename_current_dashboard"></h4>
<div><label style="margin-right: 10px" name="i18n_name"></label><input type="text" id="dashboardRename" style="width: 230px; padding: 5px; margin-right: 10px;">
<a class="greyButtonLink" href="javascript:dhis2.db.renameDashboard()" style="margin-top: 1px" name="i18n_rename"></a></div>
<h4 id="i18n_add_items_to_current_dashboard"></h4>
<div><a class="greyButtonLink" href="javascript:dhis2.db.addMessagesContent()" name="i18n_messages"></a></div>
<h4 id="i18n_delete_current_dashboard"></h4>
<div><a class="greyButtonLink" href="javascript:dhis2.db.removeDashboard()" name="i18n_delete"></a></div>
<h4 id="i18n_translate_current_dashboard"></h4>
<div><a class="greyButtonLink" href="javascript:dhis2.db.translateDashboard()" name="i18n_translate"></a></div>
</div>
<div id="orgUnitSelectorForm" class="page">
<div class="tipText" style="padding: 2px 0 4px 0" id="i18n_applies_to_favorites_with_user_org_units_only" ></div>
<div id="selectionTree" style="width:339px; height:376px"></div>
<div style="padding-top:15px; float:right;">
<a class="greyButtonLink" href="javascript:dhis2.db.clearSelectedOrgUnits()" name="i18n_clear"></a>
<a class="greyButtonLink" href="javascript:dhis2.db.updateSelectedOrgUnits()" name="i18n_update"></a>
</div>
</div>
</div>
<div id="rightBar">
<span id="hideRightBar"><a href="javascript:hideHelpContent()" name="i18n_close" >
<i class="fa fa-times leftBarIcon"></i></a>
</span>
<div id="rightBarContents"></div>
</div>
<div id="sharingSettings" style="display: none;" class="page">
<table style="width: 100%;">
<tbody>
<tr>
<td colspan="2" style="height: 40px"><span class="settingHeader" id="sharingName"></span></td>
</tr>
<tr>
<td><input style="width: 100%;" id="sharingSearch" placeholder=""/></td>
<td style="width: 24px;"><button id="addAccess" disabled="disabled" style="width:24px; margin-left:2px; text-align:center;">+</button></td>
</tr>
</tbody>
</table>
<table id="sharingAccessTable" style="width: 100%; margin-top: 6px;">
<tbody>
<tr>
<td colspan="2" style="padding: 5px 0"><span class="tipText" id="i18n_created_by"></span><span class="tipText" id="sharingUser"></span></td>
</tr>
<tr>
<td style="width: 300px; padding: 5px 0;" id="i18n_external_access"></td>
<td style="text-align: right;">
<input id="sharingExternalAccess" type="checkbox" value="true" />
</td>
<td style="width: 25px; text-align: center;"></td>
</tr>
<tr>
<td style="width: 300px;" id="i18n_public_access"></td>
<td>
<select id="sharingPublicAccess" style="width: 150px;">
<option selected="selected" value="--------" name="i18n_none"></option>
<option value="r-------" name="i18n_can_view"></option>
<option value="rw------" name="i18n_can_edit_and_view"></option>
</select>
</td>
<td style="width: 25px; text-align: center;"></td>
</tr>
</tbody>
</table>
</div>
<script id="access-template" type="text/template">
<tr id="<%= id %>" type="<%= type %>">
<td class="sharingName" style="width: 300px;"><%= label %></td>
<td>
<select class="sharingAccess" style="width: 150px;">
<option value="r-------" <% if(access == 'r-------') { %>selected<% } %>><%=label_can_view%></option>
<option value="rw------" <% if(access == 'rw------') { %>selected<% } %>><%=label_can_edit_and_view%></option>
</select>
</td>
<td style="width: 25px; text-align: center;"><a href="" class="removeUserGroupAccess">X</a></td>
</tr>
</script>
</body>
</html>