forked from chenfeishao/console.easemob.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_collection_counters.html
executable file
·569 lines (536 loc) · 22.6 KB
/
app_collection_counters.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>环信开发者中心</title>
<!--
<link href="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" media="screen"/>
-->
<link href="assets/css/bootstrap-2.3.2.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/bootstrap-responsive-2.3.2.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/font-awesome-3.1.0.min.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE 7]>
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--fonts-->
<!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" /> -->
<!--ace styles-->
<link href="assets/css/ace.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/ace-responsive.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/ace-skins.min.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
<![endif]-->
<link href="assets/css/management.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/manage.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/SpryTabbedPanels.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" media="screen"/>
<!--
<script src="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/json2/20130526/json2.min.js"></script>
-->
<script src="assets/js/jquery-1.7.2.min.js"></script>
<script src="assets/theme/bootstrap/js/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
<script src="assets/js/jquery.cookie-1.3.js"></script>
<script src="assets/js/bootstrap-2.3.2.min.js"></script>
<script src="assets/js/json2.js"></script>
<script src="assets/js/ace-elements.min.js"></script>
<script src="assets/js/ace.min.js"></script>
<script type="text/javascript" src="assets/js/ichart.1.2.js"></script>
<script src="assets/js/Chart.min.js"></script>
<script src="assets/js/management.js"></script>
<!-- 时间控件 -->
<script src="assets/js/Calendar3.js"></script>
<script language="javascript" type="text/javascript" src="assets/js/My97DatePicker/WdatePicker.js"></script>
<script src="assets/js/time.js"></script>
<!-- 曲线图 -->
<!--<link href="assets/swf/FusionCharts/Charts/style.css" rel="stylesheet" type="text/css" />-->
<!--<link href="assets/swf/FusionCharts/Charts/prettify.css" rel="stylesheet" type="text/css" />-->
<script type="text/javascript" src="assets/swf/FusionCharts/Charts/FusionCharts.js"></script>
<script type="text/javascript" src="assets/swf/FusionCharts/Charts/prettify.js"></script>
<script type="text/javascript" src="assets/swf/FusionCharts/Charts/json2.js"></script>
<script type="text/javascript" src="assets/swf/FusionCharts/Charts/lib.js" ></script>
<!-- 曲线图 -->
<script tyep="text/javascript" charset="utf-8">
var appUuid = getQueryString('appUuid');
var Application = $.cookie('Application');
var time; //记录当前时间
var satatime;//记录计算过后的时间
var company="天";//记录单位(天。小时,六小时)
var yName="用户数量变化";
//获取年-月-日 时:分:秒
var type ="Y-M-D h:m";
var myDate = new Date();
Y = myDate.getFullYear();//年份:如2013
M = myDate.getMonth()+1<10?"0"+(myDate.getMonth()+1):myDate.getMonth()+1;//月份:如06
D = myDate.getDate()<10?"0"+myDate.getDate():myDate.getDate();//日:如15
h = myDate.getHours()<10?"0"+myDate.getHours():myDate.getHours();
m = myDate.getMinutes()<10?"0"+myDate.getMinutes():myDate.getMinutes();
s = myDate.getSeconds()<10?"0"+myDate.getSeconds():myDate.getSeconds();
//获取年-月-日 时:分:秒end
$(function(){
$('#showName').text(Application);
if (!getToken() || getToken()==''){
logout();
}
//初始开始时间段
//计算当前时间
time = type.replace("Y",Y);
time = time.replace("M",M);
time = time.replace("D",D);
time = time.replace("h",h);
time = time.replace("m",m);
//time = time.replace("s",s);
//计算前7天时间
if(D-6<=0){
satatime=new Date(Y,M-1,D-6,h,m).format('yyyy-MM-dd hh:mm');
}else{
satatime=new Date(Y,M-1,D-6,h,m).format('yyyy-MM-dd hh:mm');
}
document.getElementById('control_date').value = satatime;
document.getElementById('control_date2').value = time;
//初始开始时间段end
// 初始化先绘制好两幅图,默认把用户数据图显示
$('#canvasMsgDiv').hide();
$('#canvasUserDiv').show();
$('#userDiv').attr('checked', true);
$('#msgDiv').attr('checked', false);
//控制图的显示
$('#userDiv').click(function(){
$('#userDiv').checked = true;
$('#msgDiv').checked = false;
$('#canvasMsgDiv').hide();
$('#canvasUserDiv').show();
drawLineUserSmoothly(7);
});
$('#msgDiv').click(function(){
$('#msgDiv').checked = true;
$('#userDiv').checked = false;
$('#canvasUserDiv').hide();
$('#canvasMsgDiv').show();
//drawChatMessagesLineSmoothly(7);
});
});
// 当前时间的时间戳
function getNowTTamp(){
return new Date().getTime();
}
// 时间格式转换 1399434332770 ->
function add1(m){
return m<10?'0'+m:m;
}
function format1(timeST){
return date('Y-m-d H:i',timeST);
}
function getMaximin (arr,maximin) {
if (maximin == "max") {
return Math.max.apply(Math, arr);
}else if (maximin == "min") {
return Math.min.apply(Math, arr);
}
}
// 获取消息数据
var applyRequest = {
orgName:$.cookie('orgName'),
access_token:$.cookie('access_token'),
appUuid:appUuid,
start_time:'',
end_time:'',
resolution:'day',
pad:'true'
};
function applyChatMessagesData(applyRequest,flow,labels,url){
var startTime=$("#control_date").val();
var endTime=$("#control_date2").val();
var dt = Date.parse(startTime.replace(/-/g,"/"));//开始时间
var startTime1 = new Date(dt);
var nowtime = startTime1.getTime();
var dt1 = Date.parse(endTime.replace(/-/g,"/"));//结束时间
var theTime =new Date(dt1);
var nowtime1 = theTime.getTime();
applyRequest.start_time=nowtime;
applyRequest.end_time=nowtime1;
$.ajax({
url:baseUrl+'/'+ applyRequest.orgName +'/' + applyRequest.appUuid + '/counters?counter='+url+'&start_time='+applyRequest.start_time+'&end_time='+applyRequest.end_time+'&resolution='+applyRequest.resolution+'&pad='+applyRequest.pad,
type:'GET',
async:false,
headers:{
'Authorization':'Bearer ' + applyRequest.access_token,
'Content-Type':'application/json'
},
success: function(respData, textStatus, jqXHR) {
//alert(JSON.stringify(respData))
$.each(respData.counters,function(){
if(this.values.length == 0){
flow.push(0);
labels.push(0);
} else {
$.each(this.values,function(){
flow.push(this.value);
labels.push(format1(this.timestamp));
});
}
});
},
error: function(jqXHR, textStatus, errorThrown) {
alert('提示\n\n数据获取失败!');
},
});
}
function determine(){
var statime=$("#control_date").val();
var endtime=$("#control_date2").val();
if(statime>endtime){
alert("请重新选择时间,开始时间不能大于结束时间");
return;
}
}
function getDiv(){
//determine();
var flow=[], labels=[];
var url;
var danwei;
var divRadio1 = document.getElementsByName("divRadio1");
var timeValue;
for(var i=0;i<divRadio1.length;i++){
if(divRadio1[i].checked){
timeValue=divRadio1[i].value;
}
}
if(timeValue == "六小时"){
//计算当前时间
time = type.replace("Y",Y);
time = time.replace("M",M);
time = time.replace("D",D);
time = time.replace("h",h);
time = time.replace("m",m);
if(h-6<=0){
satatime=new Date(Y,M-1,D-1,h-6,m).format('yyyy-MM-dd hh:mm');
}else{
satatime=new Date(Y,M-1,D,h-6,m).format('yyyy-MM-dd hh:mm');
}
company="小时";
applyRequest.resolution='hour';
document.getElementById('control_date').value = satatime;
document.getElementById('control_date2').value = time;
}else if(timeValue == "十二小时"){
//计算当前时间
time = type.replace("Y",Y);
time = time.replace("M",M);
time = time.replace("D",D);
time = time.replace("h",h);
time = time.replace("m",m);
if(h-12<=0){
satatime=new Date(Y,M-1,D-1,h-12,m).format('yyyy-MM-dd hh:mm');
}else{
satatime=new Date(Y,M-1,D,h-12,m).format('yyyy-MM-dd hh:mm');
}
company="小时";
applyRequest.resolution='hour';
document.getElementById('control_date').value = satatime;
document.getElementById('control_date2').value = time;
}else if(timeValue == "一天"){
//计算当前时间
time = type.replace("Y",Y);
time = time.replace("M",M);
time = time.replace("D",D);
time = time.replace("h",h);
time = time.replace("m",m);
if(D-1<=0){
satatime=new Date(Y,M-1,D-1,h,m).format('yyyy-MM-dd hh:mm');
}else{
satatime=new Date(Y,M-1,D-1,h,m).format('yyyy-MM-dd hh:mm');
}
company="六小时";
applyRequest.resolution='six_hour';
document.getElementById('control_date').value = satatime;
document.getElementById('control_date2').value = time;
}else if(timeValue == "七天"){
//计算当前时间
time = type.replace("Y",Y);
time = time.replace("M",M);
time = time.replace("D",D);
time = time.replace("h",h);
time = time.replace("m",m);
if(D-6<=0){
satatime=new Date(Y,M-1,D-6,h,m).format('yyyy-MM-dd hh:mm');
}else{
satatime=new Date(Y,M-1,D-6,h,m).format('yyyy-MM-dd hh:mm');
}
company="六小时";
applyRequest.resolution='six_hour';
document.getElementById('control_date').value = satatime;
document.getElementById('control_date2').value = time;
}
var textStateTime=$("#control_date").val();
var textEndtime=$("#control_date2").val();
if(textStateTime>textEndtime || textStateTime==textEndtime){
alert("请重新选择时间,开始时间必须小于结束时间");
return;
}else if(textEndtime>time){
alert("请重新选择结束日期,结束日期不能大于本日日期");
return;
}else{
if($(':radio:checked').val()=="IM用户数量变化"){
url='application.collection.users';
danwei='个(正数表示新增,负数表示删除)';
yName="IM用户数量";
};
if($(':radio:checked').val()=="消息发送量"){
url='application.collection.chatmessages';
danwei='条';
yName="消息数(单位:条)";
};
};
applyChatMessagesData(applyRequest,flow,labels,url);
var dataString ='<chart rotateYAxisName="0" yAxisName="'+yName+'" chartRightMargin="50" xAxisName="时间 (按'+company+'计)" caption="'+$(':radio:checked').val()+'" subCaption="(单位:'+danwei+')" useRoundEdges="1" color="333333" bgColor="FFFFFF,FFFFFF" showBorder="0">';
for(var i=0;i<labels.length;i++){
dataString+='<set label="'+labels[i]+'" value="'+flow[i]+'" />';
}
dataString+='</chart>';
if (GALLERY_RENDERER && GALLERY_RENDERER.search(/javascript|flash/i)==0)
FusionCharts.setCurrentRenderer(GALLERY_RENDERER);
var chart = new FusionCharts("assets/swf/FusionCharts/Charts/Line.swf", "ChartId_flash", "1000", "500", "0", "1" );
chart.setXMLData( dataString );
chart.render("canvasUserDiv3");
}
function getDiv1(){
//determine();
company="天";
applyRequest.resolution='day';
var flow=[], labels=[];
var url;
var danwei;
var statime=$("#control_date").val();
var endtime=$("#control_date2").val();
var divRadio1 = document.getElementsByName("divRadio1");
for(var i=0;i<divRadio1.length;i++){
if(divRadio1[i].checked){
divRadio1[i].checked=false;
}
}
if(statime>endtime || statime==endtime){
alert("请重新选择时间,开始时间必须小于结束时间");
return;
}else if(endtime>time){
alert("请重新选择结束日期,结束日期不能大于本日日期");
return;
}else{
var dt = Date.parse(statime.replace(/-/g,"/"));//开始时间
var startTime = new Date(dt);
var dt1 = Date.parse(endtime.replace(/-/g,"/"));//结束时间
var theTime =new Date(dt1);
var timeDifference=theTime.getTime()-startTime.getTime(); //时间差的毫秒数
var days=Math.floor(timeDifference/(24*3600*1000));//计算相差天数
//计算出小时数
var leave1=timeDifference%(24*3600*1000); //计算天数后剩余的毫秒数
var hours=Math.floor(leave1/(3600*1000));
//计算相差分钟数
var leave2=leave1%(3600*1000); //计算小时数后剩余的毫秒数
var minutes=Math.floor(leave2/(60*1000));
if(days>30){//超过一月按月算
company="月";
applyRequest.resolution='month';
}else{//否则按天算
company="天";
applyRequest.resolution='day';
}
if(days==0){//没有超过一月就对比天数
if(hours>24){//超过一天按天算
company="天";
applyRequest.resolution='day';
}else{//没有超过一天就按小时算
company="小时";
applyRequest.resolution='hour';
}
}
if(days==0 && hours==0){//没有超过一个月,又没有超过一天
if(minutes<30){//没有超过半小时按分钟计
company="五分钟";
applyRequest.resolution='five_minutes';
}else{//超过30分钟,按小时计
company="小时";
applyRequest.resolution='hour';
}
}
if($(':radio:checked').val()=="IM用户数量变化"){
url='application.collection.users';
danwei='个(正数表示新增,负数表示删除)';
yName="IM用户数量";
};
if($(':radio:checked').val()=="消息发送量"){
url='application.collection.chatmessages';
danwei='条';
yName="消息数(单位:条)";
};
};
applyChatMessagesData(applyRequest,flow,labels,url);
var dataString ='<chart rotateYAxisName="0" yAxisName="'+yName+'" chartRightMargin="50" xAxisName="时间 (按'+company+'计)" caption="'+$(':radio:checked').val()+'" subCaption="(单位:'+danwei+')" useRoundEdges="1" color="333333" bgColor="FFFFFF,FFFFFF" showBorder="0">';
for(var i=0;i<labels.length;i++){dataString+='<set label="'+labels[i]+'" value="'+flow[i]+'" />';
}
dataString+='</chart>';
if (GALLERY_RENDERER && GALLERY_RENDERER.search(/javascript|flash/i)==0) FusionCharts.setCurrentRenderer(GALLERY_RENDERER);
var chart = new FusionCharts("assets/swf/FusionCharts/Charts/Line.swf", "ChartId_flash", "1000", "500", "0", "1" );
chart.setXMLData( dataString );
chart.render("canvasUserDiv3");
}
// 应用概述页
function toApppofile(){
window.location.href = 'app_profile.html?appUuid='+appUuid;
}
// 用户管理页
function toAppUsersPage(){
window.location.href = 'app_users.html?appUuid='+appUuid;
}
// 群组页面
function togroupAppAdmin(){
window.location.href = 'app_chatgroups.html?appUuid=' + appUuid;
}
// 推送证书管理页
function toAppCredentialsPage(){
window.location.href = 'app_notifiers.html?appUuid='+appUuid;
}
// 数据统计页面
function toApppofileCounter(){
window.location.href = 'app_collection_counters.html?appUuid='+appUuid;
}
// 应用管理员创建页面
function toCreateAppAdmin(){
window.location.href = 'app_admin_create.html?appUuid='+appUuid;
}
//管理员列表页面
function toAppUserAdmin(){
window.location.href = 'app_users_admin.html?appUuid='+appUuid;
}
window.onresize = function(){
var w,h;
if(!!(window.attachEvent && !window.opera)) {
h = document.documentElement.clientHeight;
w = document.documentElement.clientWidth;
}else{
h = window.innerHeight;
w = window.innerWidth;
}
$("#headerlogo").width(w/6.5);
$("#headerlogo").height(h/16)
}
window.onload = function(){
var w,h;
if(!!(window.attachEvent && !window.opera)) {
h = document.documentElement.clientHeight;
w = document.documentElement.clientWidth;
}else{
h = window.innerHeight;
w = window.innerWidth;
}
$("#headerlogo").width(w/6.5);
$("#headerlogo").height(h/16)
getDiv();
}
</script>
</head>
<body>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="javascript:void(0);"><img id="headerlogo" src="assets/images/home_logo.png" alt="管理后台"/></a>
<div id="headhref" class="lianjie" style="width:40%; margin-left:20%;">
<ol>
<li style="width:20%;"><a href="http://www.easemob.com" target="_blank"><h5>主页</h5></a></li>
<li style="width:20%;"><a href="ttp://www.easemob.com/docs/gettingstart" target="_blank"><h5>文档</h5></a></li>
<li style="width:20%;"><a href="http://www.easemob.com/faq" target="_blank"><h5>帮助</h5></a></li>
<li style="width:20%;"><a href="http://www.imgeek.org/forum.php" target="_blank"><h5>社区</h5></a></li>
<li style="width:20%;"><a href="http://www.easemob.com/sdk" target="_blank"><h5>下载SDK</h5></a></li>
</ol>
</div>
<ul class="nav ace-nav pull-right" style="top:5px; margin-right:0">
<li class="light-blue user-profile"> <a class="user-menu dropdown-toggle" href="javascript:void(0);" data-toggle="dropdown"> <span id="user_info"></span> <i class="icon-caret-down"></i> </a>
<ul id="user_menu" class="pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
<li class="divider"></li>
<li> <a href="admin_home.html"> <i class="icon-user"></i> 账户 </a> </li>
<li> <a onClick="logout();" href="javascript:void(0);"> <i class="icon-off"></i> 退出 </a> </li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="main-container" class="container-fluid"> <a href="javascript:void(0);" id="menu-toggler"> <span></span> </a>
<div id="sidebar">
<div id="sidebar-shortcuts">
<div style="min-height: 40px;" id="sidebar-shortcuts-large"> </div>
<div style="min-height: 40px;" id="sidebar-shortcuts-mini"> </div>
</div>
<ul class="nav nav-list">
<li class="active"> <a href="app_list.html" target="_self"> <i class="icon-ambulance"></i> <span>我的应用</span> </a></li>
<li> <a href="admin_home.html" target="_self"> <i class="icon-user"></i> <span>个人信息</span> </a></li>
</ul>
<div id="sidebar-collapse"> <i class="icon-double-angle-left"></i> </div>
</div>
<div class="clearfix" id="main-content">
<div id="breadcrumbs">
<ul class="breadcrumb">
<li> <i class="icon-home"></i> 我的应用 <span class="divider"> <i class="icon-angle-right"></i> </span> </li>
<li> <a href="javascript:void(0);" target="_self"> <span id="showName"></span></a></li>
</ul>
</div>
<div class="clearfix" id="page-content">
<div class="row-fluid">
<div class="pagination pagination-left">
<ul>
<li> <a href="javascript:toApppofile()">应用概况</a> </li>
</ul>
<ul>
<li> <a href="javascript:toAppUsersPage()">IM用户</a> </li>
</ul>
<ul>
<li> <a href="javascript:togroupAppAdmin()">群组</a> </li>
</ul>
<ul>
<li> <a href="javascript:toAppCredentialsPage()">推送证书</a> </li>
</ul>
<ul>
<li> <a href="javascript:toApppofileCounter()"><font color="green">统计数据</font></a> </li>
</ul>
<hr/>
</div>
<div style="width:1000px; margin:0 auto; overflow:visible;">
<div style="float:right;">
<input type="hidden" id="dtp_input2" value="" /><br/>
<input type="radio" name="divRadio" id="userDiv" value="IM用户数量变化" onclick="getDiv()"/><span class="lbl">IM用户数量变化</span>
<input type="radio" name="divRadio" id="msgDiv" value="消息发送量" onclick="getDiv()" /><span class="lbl">消息发送量</span>
</div>
<div style="position:absolute;right:180px;top:185px;z-index:100;">
<input type="hidden" id="dtp_input2" value="" /><br/><span class="lbl">快速查询:</span>
<input type="radio" name="divRadio1" id="userDiv1" value="六小时" onclick="getDiv()"/><span class="lbl">六小时</span>
<input type="radio" name="divRadio1" id="msgDiv1" value="十二小时" onclick="getDiv()" /><span class="lbl">十二小时</span>
<input type="radio" name="divRadio1" id="getDiv1" value="一天" onclick="getDiv()" /><span class="lbl">一天</span>
<input type="radio" name="divRadio1" id="postDiv1" value="七天" onclick="getDiv()" /><span class="lbl">七天</span>
</div>
<div style="position:absolute;right:100px;top:250px;z-index:100;">
<span>查询时间段:</span>
<span>从<!-- onclick="new Calendar().show(this);" -->
<input name="control_date" type="text" value="" id="control_date" style="width:120px;" size="10" maxlength="10" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" readonly="readonly" /></span>
<span>至
<input name="control_date2" type="text" id="control_date2" style="width:120px;" size="10" maxlength="10" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" readonly="readonly" /></span>
<input type="button" name="commit" id="commit" onclick="getDiv1()" value="查询"/>
</div><div> </div>
<!-- 用户数据 -->
<!--<div id='canvasUserDiv'></div>-->
<!-- 消息数据 -->
<!--<div id='canvasMsgDiv'></div>-->
<!-- 用户数据 -->
<div id='canvasUserDiv3' style="position:absolute;top:300px;z-index:100;"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>