top.jsp
3.87 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
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
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<jsp:useBean id="ctx" type="com.dianping.cat.report.page.top.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.report.page.top.Payload" scope="request"/>
<jsp:useBean id="model" type="com.dianping.cat.report.page.top.Model" scope="request"/>
<c:choose>
<c:when test="${payload.fullScreen}">
<res:bean id="res" />
<script src='${model.webapp}/assets/js/jquery.min.js'> </script>
<link rel="stylesheet" href="${model.webapp}/assets/css/bootstrap.min.css">
<link rel="stylesheet" href="${model.webapp}/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="${model.webapp}/assets/css/jquery-ui.min.css">
<link rel="stylesheet" href="${model.webapp}/assets/css/ace-fonts.css">
<link rel="stylesheet" href="${model.webapp}/assets/css/ace.min.css" id="main-ace-style">
<link rel="stylesheet" href="${model.webapp}/assets/css/ace-skins.min.css">
<link rel="stylesheet" href="${model.webapp}/assets/css/ace-rtl.min.css">
<script src="${model.webapp}/assets/js/ace-extra.min.js"></script>
<script src="${model.webapp}/assets/js/bootstrap.min.js"></script>
<res:useJs value="${res.js.local['highcharts.js']}" target="head-js" />
<res:useCss value='${res.css.local.body_css}' target="head-css" />
<script src="${model.webapp}/assets/js/jquery-ui.min.js"></script>
<script src="${model.webapp}/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="${model.webapp}/assets/js/ace-elements.min.js"></script>
<script src="${model.webapp}/assets/js/ace.min.js"></script>
<div class="report">
<div id="fullScreenData">
<style>
.ui-tooltip {
max-width:36555px;
}
.tab-content table {
max-width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
</style>
<div class="row-fluid">
<div class="span12">
<%@ include file="topMetric.jsp"%>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
var id = '${payload.action.name}';
var frequency = ${payload.frequency};
var refresh = ${payload.refresh};
if(refresh){
$('#refresh${payload.frequency}').addClass('btn-danger');
setInterval(function(){
location.reload();
},frequency*1000);
};
});
</script>
</c:when>
<c:otherwise>
<a:report title="Top Report"
navUrlPrefix="domain=${model.domain}&op=view">
<jsp:attribute name="subtitle">${w:format(model.reportStart,'yyyy-MM-dd HH:mm:ss')} to ${w:format(model.reportEnd,'yyyy-MM-dd HH:mm:ss')}</jsp:attribute>
<jsp:body>
<div class="report">
<div class="text-center">
<%@ include file="timeNav.jsp"%>
</div>
<div class="">
<%@ include file="../top/topMetric.jsp"%>
</div>
<style>
.ui-tooltip {
max-width:36555px;
}
.tab-content table {
max-width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
</style>
</jsp:body>
</a:report>
</c:otherwise>
</c:choose>
<script type="text/javascript">
$(document).ready(function() {
$('#minute'+${model.minute}).addClass('disabled');
$( ".hreftip" ).tooltip({
show: true,
delay:{show:10000, hide:100000},
position: {
my: "left top",
at: "left bottom"
},
content: function() {
return $( this ).attr( "title" );
},
open: function( event, ui ) {
ui.tooltip.animate({ top: ui.tooltip.position().top + 10 }, "fast" );
}
});
$('.position').hide();
$('.switch').hide();
$('#Dashboard_report').addClass("open active");
$('#dashbord_system').addClass("active");
$('#Dependency_report').removeClass("open active");
});
</script>