-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinearLogAnalytics.html
executable file
·287 lines (277 loc) · 12.2 KB
/
LinearLogAnalytics.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LinearLog Analytics</title>
<link rel="shortcut icon" href="favicon.ico">
<!---CSS Files-->
<link rel="stylesheet" href="css/master.css">
<link rel="stylesheet" href="css/tables.css">
<!---jQuery Files-->
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/jquery-ui-1.8.17.min.js"></script>
<script src="js/styler.js"></script>
<script src="js/jquery.tipTip.js"></script>
<script src="js/colorpicker.js"></script>
<script src="js/sticky.full.js"></script>
<script src="js/global.js"></script>
<script src="js/flot/jquery.flot.min.js"></script>
<script src="js/flot/jquery.flot.pie.min.js"></script>
<script src="js/flot/jquery.flot.resize.min.js"></script>
<script src="js/check.js"></script>
<script src="js/LogShow.js"></script>
<script src="js/VisitCollect.js"></script>
<script src="js/cookie.js"></script>
<script src="js/log4javascript.js"></script>
<script src="js/log4jsService.js"></script>
<!---HighCharts-->
<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
<script src="https://img.hcharts.cn/highcharts/highcharts-3d.js"></script>
<!---Fonts-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lte IE 8]>
<script language="javascript" type="text/javascript" src="js/flot/excanvas.min.js"></script>
<![endif]-->
</head>
<body>
<div class="top-bar">
<ul id="nav">
<li>
<ul id="top-nav">
<li class="nav-item">
<a href="LoginLog.html"><img src="img/nav/tb.png" alt="" /><p>Login Log</p></a>
</li>
<li class="nav-item">
<a href="LoginLogAnalytics.html"><img src="img/nav/anlt.png" alt="" /><p>LoginLog Analytics</p></a>
</li>
<li class="nav-item">
<a href="SystemLog.html"><img src="img/nav/tb.png" alt="" /><p>System Log</p></a>
</li>
<li class="nav-item">
<a href="SystemLogAnalytics.html"><img src="img/nav/anlt.png" alt="" /><p>SystemLog Analytics</p></a>
</li>
<li class="nav-item">
<a href="VisitLog.html"><img src="img/nav/tb.png" alt="" /><p>Visit Log</p></a>
</li>
<li class="nav-item">
<a href="VisitLogAnalytics.html"><img src="img/nav/anlt.png" alt="" /><p>VisitLog Analytics</p></a>
</li>
<li class="nav-item">
<a href="#"><img src="img/nav/tb.png" alt="" /><p>Operation Log</p></a>
<ul class="sub-nav">
<li><a href="LinearLog.html">Linear</a></li>
<li><a href="VolcanoLog.html">Volcano</a></li>
<li><a href="MountainLog.html">Mountain</a></li>
</ul>
</li>
<li class="nav-item">
<a href="#"><img src="img/nav/anlt.png" alt="" /><p>OperationLog Analytics</p></a>
<ul class="sub-nav">
<li><a href="LinearLogAnalytics.html">Linear Analytics</a></li>
<li><a href="VolcanoLogAnalytics.html">Volcano Analytics</a></li>
<li><a href="MountainLogAnalytics.html">Mountain Analytics</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<!--- CONTENT AREA -->
<div class="content container_12">
<div class="box grid_12 search_input4">
<table id="LinearLogChart">
<tr>
<td>Account:</td>
<td>
<input type="text" name="account4" id="account" onBlur="checkAccount()">
</td>
<td>IP:   <input type="text" name="ip4" id="ip" onblur="checkIP()">
</td>
<td>BeginDate:</td>
<td>
<input type="date" name="beginDate4" id="beginDate" onblur="checkDate()">
</td>
<td>
EndDate:  
</td>
<td>
<input type="date" name="endDate4" id="endDate" onblur="checkDate()">
</td>
</tr>
<tr>
<td>
<select name="cancerType4" id="cancerType" >
<option value="">-CancerType-</option>
</select>
</td>
<td>
<select name="dataType4" id="dataType">
<option value="">-dataType-X-</option>
<option value="e">mRNA expression</option>
<option value="c">Copy number variations</option>
<option value="m">Methylation values</option>
<option value="mu">mutations</option>
</select>
</td>
<td>
<select name="dataType24" id="dataType2">
<option value="">-dataType-Y-</option>
<option value="e">mRNA expression</option>
<option value="c">Copy number variations</option>
<option value="m">Methylation values</option>
<option value="mu">mutations</option>
</select>
</td>
<td>
<select name="sampleType4" id="sampleType">
<option value="">-SampleType-</option>
<option value="t">Tumor</option>
<option value="n">Normal</option>
</select>
</td>
<td>
<!--这个SQL语句要模糊查询!!-->
<input type="text" name="geneName4" id="geneName" tipMsg="基因名:如,AQP7P1" >
</td>
<td>
<select name="isLog4" id="isLog">
<option value="">-log-</option>
<option value="l">Yes</option>
<option value="y">No</option>
</select>
</td>
<td>
<button id="showCharts" class="input-head">Search</button>
</td>
</tr>
</table>
<!--默认灰色框-->
<script>
$(function(){
inputTipText(); //初始化Input的灰色提示信息
});
</script>
</div>
<div class="box grid_6">
<div class="box-head"><h2>Line Chart</h2></div>
<div class="box-content">
<div id="flot-lines"></div>
</div>
</div>
<div class="box grid_12 draw_input">
<!--这个table的输入并不向后台发出请求,仅能对本图进行修改-->
<table>
<tr>
<td>Select what you want to analyze</td>
<td>
<select id="pie-chart" name="pie-chart">
<!--<option value=""></option>-->
<option value="Year">Year</option>
<option value="Month">Month</option>
<option value="Hour">Hour</option>
<option value="Account">Account</option>
<option value="IP">IP</option>
<option value="GeneName">GeneName</option>
<option value="CancerType">CancerType</option>
<option value="DataType_X">DataType_X</option>
<option value="DataType_Y">DataType_Y</option>
<option value="SampleType">SampleType</option>
<option value="IsLog">IsLog</option>
</select>
<select id="chartStyle" name="column-chart">
<option value="Pie">Pie</option>
<option value="Column">Column</option>
</select>
</td>
<td>
<button id="showCharts2" class="input-head">Draw</button>
</td>
</tr>
</table>
</div>
<div class="box grid_6">
<div class="box-head"><h2>Pie Chart</h2></div>
<div class="box-content">
<div id="flot-pie"></div>
<div id="sliders" class="column-chart">
<table class="angle">
<tr>
<td>α 角(内旋转角)</td>
<td><input id="alpha" type="range" min="0" max="45" value="15"/> <span id="alpha-value" class="value"></span></td>
</tr>
<tr>
<td>β 角(外旋转角)</td>
<td><input id="beta" type="range" min="-45" max="45" value="15"/> <span id="beta-value" class="value"></span></td>
</tr>
<tr>
<td>深度</td>
<td><input id="depth" type="range" min="20" max="100" value="50"/> <span id="depth-value" class="value"></span></td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="footer container_12">
<p class="grid_12">Powered by ClickGwas</p>
</div>
</body>
</html>
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
<script>
var cip = returnCitySN["cip"];
var city = returnCitySN["cname"];
city=isChinese(city);
</script>
<script>
// 这里也要实现向后台提交数据
function collectArgs() {
addCookie("token","122334234fsdafdsf",1);
var token = getCookie("token"); // 在本地中禁止获取cookies,所以先用字符串代替
token = "122334234fsdafdsf";
var account = $("#account").val().trim();
var ip = $("#ip").val().trim();
var beginDate = ChangeIntoMilliSeconds($("#beginDate").val());
var endDate = ChangeIntoMilliSeconds($("#endDate").val());
var cancerType = $("#cancerType").val();
var sampleType = $("#sampleType").val();
var dataType = $("#dataType").val();
var dataType2 = $("#dataType2").val();
var geneName = ($("#geneName").val().trim()=="基因名:如,AQP7P1")?"":$("#geneName").val().trim();
var isLog = $("#isLog").val();
var originArgs=[account,ip,beginDate,endDate,cancerType,geneName,dataType,dataType2,sampleType,isLog,token];
return originArgs;
}
document.onkeydown = function (event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if (e && e.keyCode == 13) {
var type = "charts"; // 用来标识绘制图的类型
args=collectArgs();
args.unshift(type);
log.Operate.getLogData(args);
}
};
$("#showCharts").click(function () {
var type = "charts"; // 用来标识绘制图的类型
args=collectArgs();
args.unshift(type);
log.Operate.getLogData(args);
});
$("#showCharts2").click(function () {
var type = "pie"; // 用来标识绘制图的类型
args=collectArgs();
args.unshift(type);
log.Operate.getLogData(args);
});
</script>
<script>
for (var i = 0; i < cancer_arr.length; i++) {
var r = /\[(.+?)\]/; //正则获取方括号内容并转为小写
$("#cancerType").append("<option value='" + cancer_arr[i].match(r)[1].toLowerCase() + "'>" + cancer_arr[i].match(r)[1].toLowerCase() + "</option>");
}
</script>