admin
2021-01-23 0a18a8cb0a7a57bf1f82df425251334c57f8c39a
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
<%@page import="com.yeshi.buwan.domain.web.StatisticXY"%>
<%@page import="com.yeshi.buwan.util.BeanUtil"%>
<%@page import="com.yeshi.buwan.service.imp.StatisticsService"%>
<%@page import="com.yeshi.buwan.service.imp.SystemService"%>
<%@page import="com.yeshi.buwan.util.Utils"%>
<%@page import="com.yeshi.buwan.domain.Config"%>
<%@page import="com.yeshi.buwan.domain.DetailSystem"%>
<%@page import="com.yeshi.buwan.domain.VideoIntersection"%>
<%@page import="com.yeshi.buwan.domain.HomeType"%>
<%@page import="com.yeshi.buwan.util.TimeUtil"%>
<%@page import="java.util.concurrent.TimeUnit"%>
<%@page import="com.yeshi.buwan.web.tag.PageEntity"%>
<%@page import="com.yeshi.buwan.util.StringUtil"%>
<%@page import="com.yeshi.buwan.domain.VideoInfo"%>
<%@page import="com.yeshi.buwan.domain.SystemInfo"%>
<%@ page language="java" import="java.util.*"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%><%@ taglib prefix="page" uri="/pagelib"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>首页banner</title>
<link rel="stylesheet" href="/BuWan/css/gongyong.css" type="text/css" />
<link rel="stylesheet" href="/BuWan/css/video_config.css"
    type="text/css" />
<LINK rel=stylesheet href="/BuWan/js/jquery-ui-1.11.4/jquery-ui.css" />
<script type="text/javascript" src="/BuWan/js/jquery.min.js"></script>
<script type="text/javascript" src="/BuWan/js/check.js"></script>
<script type="text/javascript" src="/BuWan/js/jquery.js"></script>
<script type="text/javascript"
    src="/BuWan/js/jquery-ui-1.11.4/jquery-ui.js"></script>
<link rel="stylesheet"
    href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="js/highcharts.js"></script>
 
<link rel="stylesheet" href="css/style.css" media="screen"
    type="text/css" />
 
 
 
<script type="text/javascript">
    $(function() {
        $("#tabs").tabs();
        $("#systemlist").selectmenu();
        $( "#systemlist" ).selectmenu({
           change: function( event, ui ) {
           $("#detailsystem").val($(this).val());
           }
       });
        //$("#fastdate").selectmenu();
        $("#datepickerfrom").datepicker({
        showAnim:'slideDown',
        dateFormat:'yy-mm-dd'
        });
        $("#datepickerto").datepicker({
        showAnim:'slideDown',
        dateFormat:'yy-mm-dd'
        });
        
        $(".button").button();
        
    });
    
    
</script>
</head>
<%
    List<DetailSystem> list = (List<DetailSystem>) request.getAttribute("list");
    String detailsystem = request.getAttribute("detailsystem") + "";
    DetailSystem detailSystem = (DetailSystem) request.getAttribute("detailSystem");
    String fastdate = request.getAttribute("fastdate") + "";
    String from = request.getAttribute("from") + "";
    String to = request.getAttribute("to") + "";
    String time = (String) request.getAttribute("time");
    String count = (String) request.getAttribute("count");
    List<StatisticXY> detailList = (List<StatisticXY>) request.getAttribute("detailList");
%>
 
 
<script type="text/javascript">
        var chart;
        $(document).ready(function() {
            chart = new Highcharts.Chart({
                chart: {
                    renderTo: 'container',
                    defaultSeriesType: 'line',
                    margin: [50, 150, 60, 80]
                },
                title: {
                    text: '观看次数统计',
                    style: {
                        margin: '10px 100px 0 0' // center it
                    }
                },
                subtitle: {
                    text: '',
                    style: {
                        margin: '0 100px 0 0' // center it
                    }
                },
                xAxis: {
                    categories: [<%=time%>],
                    title: {
                        text: 'Month'
                    }
                },
                yAxis: {
                    title: {
                        text: '观看次数(次)'
                    },
                    plotLines: [{
                        value: 0,
                        width: 1,
                        color: '#808080'
                    }]
                },
                tooltip: {
                    formatter: function() {
                            return '<b>'+ this.series.name +'</b><br/>'+
                            this.x +': '+ this.y +'次';
                    }
                },
                legend: {
                    layout: 'vertical',
                    style: {
                        left: 'auto',
                        bottom: 'auto',
                        right: '10px',
                        top: '100px'
                    }
                },
                series: [{
                          name: '<%=detailSystem == null
                    ? "全部"
                    : detailSystem.getAppName() + "("
                            + ("1".equalsIgnoreCase(detailSystem.getPlatform() + "") ? "A" : "I") + ")"%>',
                                        data : [
<%=count%>
    ]
                                    } ]
                                });
                    });
</script>
 
<body>
    <div class="div_bj">
        <div class="div_ban">观看数据统计</div>
        <div class="div_rdtg"></div>
        <div style="width: 1700px; padding-left: 60px; padding-top: 30px;">
            <div style="float: left; width: 190px;">
                <select id="systemlist" name="detailsystem">
                    <option value="0">全部</option>
                    <%
                        for (DetailSystem ds : list) {
                            if (!ds.getId().equalsIgnoreCase(detailsystem))
                                out.print("<option value=" + ds.getId() + ">" + ds.getAppName() + "("
                                        + (ds.getPlatform() == 1 ? "A" : "I") + ")" + "</option>");
                            else
                                out.print("<option selected='selected' value=" + ds.getId() + ">" + ds.getAppName() + "("
                                        + (ds.getPlatform() == 1 ? "A" : "I") + ")" + "</option>");
                        }
                    %>
 
                </select>
            </div>
            <div style="float: right; width: 1500px;">
 
                <div id="tabs">
 
                    <form action="getStatisticList.action"
                        style="margin-bottom: 200px;">
                        <input type="hidden" name="detailsystem" id="detailsystem"
                            value="<%=detailsystem%>">
                        <div>
                            <b>从</b><input type="text" id="datepickerfrom" value="<%=from%>"
                                name="from" style="width: 130px; margin-left: 5px;"><b>
                                到</b><input value="<%=to%>" type="text" name="to"
                                style="width: 130px; margin-left: 5px;" id="datepickerto">
                            <select id="fastdate" name="fastdate" style="height: 30px;">
                                <option value="0"
                                    <%="0".equalsIgnoreCase(fastdate) ? "selected='selected'" : ""%>>/</option>
                                <option value="1"
                                    <%="1".equalsIgnoreCase(fastdate) ? "selected='selected'" : ""%>>今天</option>
                                <option value="2"
                                    <%="2".equalsIgnoreCase(fastdate) ? "selected='selected'" : ""%>>昨天</option>
                                <option value="7"
                                    <%="7".equalsIgnoreCase(fastdate) ? "selected='selected'" : ""%>>最近七天</option>
                                <option value="30"
                                    <%="30".equalsIgnoreCase(fastdate) ? "selected='selected'" : ""%>>最近一个月</option>
                            </select> <input style="margin-left: 20px;" type="submit" value="确定"
                                class="button">
                        </div>
                    </form>
                    <ul style="margin-top: 20px;">
                        <li><a href="#tabs-1">观看次数统计</a></li>
                        <li><a href="#tabs-2">观看详情统计</a></li>
 
                    </ul>
 
 
 
                    <div id="tabs-1">
 
                        <div id="container"
                            style="width: 1500px; height: 400px; margin: 0 auto"></div>
 
                    </div>
                    <div id="tabs-2">
                        <%
                            for (int i = 0; i < detailList.size(); i++) {
                        %>
                        <div class="skillbar clearfix "
                            data-percent="<%=((float) detailList.get(i).getY() / detailList.get(0).getY()) * 100%>%">
                            <div class="skillbar-title" style="background: #d35400;">
                                <span><%=detailList.get(i).getTime()%></span>
                            </div>
                            <div class="skillbar-bar"
                                style="background:<%=i < 10 ? "#FF0000" : "#3498db"%>;"></div>
                            <div class="skill-bar-percent">
                                <b><%=detailList.get(i).getY()%></b>
                            </div>
                        </div>
                        <%
                            }
                        %>
 
                        <div style="text-align: center; clear: both;">
                            <script src="/gg_bd_ad_720x90.js" type="text/javascript"></script>
                            <script src="/follow.js" type="text/javascript"></script>
                        </div>
 
 
                        <script src="js/index.js"></script>
                    </div>
 
                </div>
 
            </div>
 
        </div>
    </div>
</body>
 
<script type="text/javascript" src="/BuWan/js/countheight.js">
    
</script>
 
</html>