transaction.js
1.43 KB
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
function hourlyGraphLineChart(cell,data){
cell.style.display = 'table-cell';
cell.parentNode.style.display = 'table-cell';
cell.innerHTML = data;
data = $('#distributionChartMeta', cell).text();
if (data != null && data.length > 0) {
graphPieChart($('#distributionChart', cell)[0], eval('(' + data + ')'));
}
}
function historyGraphLineChart(cell,response){
cell.style.display = 'table-cell';
cell.parentNode.style.display = 'table-cell';
cell.innerHTML = response;
var data = $('#responseTrendMeta', cell).text();
graphLineChart($('#responseTrend', cell)[0], eval('(' + data
+ ')'));
data = $('#hitTrendMeta', cell).text();
graphLineChart($('#hitTrend', cell)[0], eval('(' + data
+ ')'));
data = $('#errorTrendMeta', cell).text();
graphLineChart($('#errorTrend', cell)[0], eval('(' + data
+ ')'));
data = $('#distributionChartMeta', cell).text();
if (data != null && data.length > 0) {
graphPieChart($('#distributionChart', cell)[0], eval('(' + data + ')'));
}
}
function selectByName(date, domain, ip, type) {
var queryname = $("#queryname").val();
window.location.href = "?domain=" + domain + "&type=" + type + "&date="
+ date + "&queryname=" + queryname + "&ip=" + ip;
}
function selectGroupByName(date, domain, ip, type) {
var queryname = $("#queryname").val();
window.location.href = "?op=groupReport&domain=" + domain + "&type=" + type + "&date="
+ date + "&queryname=" + queryname + "&ip=" + ip;
}