-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb_report_viewer.htm
37 lines (30 loc) · 1.03 KB
/
db_report_viewer.htm
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
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Operator Log</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<link href="system/styles/igrX.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table id="db_report_table1" data-record="{ name:'report_read_grouping', param:{ 'start_time':'2017-01-01 00:00:00', 'end_time':'2017-01-05 00:00:00', 'meter_id': 1, 'meter_name':'meter1' } }"></table>
<table id="db_report_table2" data-record="{ name:'report_read_simple', param:{ 'start_time':'2017-01-01 00:00:00', 'end_time':'2017-01-05 00:00:00', 'meter_id': 1, 'meter_name':'meter2' } }"></table>
</body>
<script type="text/javascript" src="system/scripts/igrX2.js"></script>
<script type="text/javascript">
var option = [
{
"type" : "static",
"DOM" : $("#db_report_table1"),
"dbgroup" : -1
},
{
"type" : "static",
"DOM" : $("#db_report_table2"),
"dbgroup" : -1
}
]
$(document).ready(function() {
var dbreport = igrx.dbreport( option );
});
</script>
</html>