Repository navigation
Expand file tree
/
Copy pathtableDemo.html
More file actions
343 lines (335 loc) · 10.4 KB
/
Copy pathtableDemo.html
File metadata and controls
343 lines (335 loc) · 10.4 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>tableDemo</title>
<link href="/trs/html/images/favicon.ico" rel="shortcut icon">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>header</title>
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="asset/css/header.css">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="asset/js/bootstrap.js"></script>
</head>
<body>
<style>
.container{
width: 730px;
}
.toCost, .toEarn{
overflow: hidden;
}
.foot-banner{
background: #eef5ed;
padding: 7px;
border-radius: 3px;
-webkit-border-radius:3px;
-moz-border-radius:3px;
-o-border-radius:3px;
-ms-border-radius:3px;
}
.g-right{
margin-top: 7px;
}
</style>
<div class="container">
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#1" data-toggle="tab">积分明细</a></li>
<li><a href="#2" data-toggle="tab">积分收入</a></li>
<li><a href="#3" data-toggle="tab">积分支出</a></li>
<li><a href="#4" data-toggle="tab">冻结积分</a></li>
<li><a href="#5" data-toggle="tab">已经过期</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="1">
<h6>
您的总学习积分:<span class="badge badge-info">144.5</span> 即将过期积分:<span class="badge badge-info">44.5</span><small>(2013年12月31日)</small>
</h6>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>来源/用途</th>
<th>积分变化</th>
<th>日期</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>课酬积分</td>
<td><strong class="text-success">+20</strong></td>
<td>2013年10月1日</td>
<td></td>
</tr>
<tr>
<td>冻结积分返还</td>
<td><strong class="text-success">+3.24</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>培训《XXXXX》消耗</td>
<td><strong class="text-error">-6.76</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>培训《XXXXX》报名冻结积分</td>
<td><strong class="text-warning"> 10</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>提问积分</td>
<td><strong class="text-success">+1.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
</tbody>
</table>
<div class="pagination pagination-right">
<ul>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
<div class="tab-pane" id="2">
<h6>
您的总学习积分:<span class="badge badge-info">144.5</span> 即将过期积分:<span class="badge badge-info">44.5</span><small>(2013年12月31日)</small>
</h6>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>来源/用途</th>
<th>积分变化</th>
<th>日期</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>课酬积分</td>
<td><strong class="text-success">+20</strong></td>
<td>2013年10月1日</td>
<td></td>
</tr>
<tr>
<td>提问积分</td>
<td><strong class="text-success">+1.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
<tr>
<td>回答积分</td>
<td><strong class="text-success">+2.0</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
</tbody>
</table>
<div class="pagination pagination-right">
<ul>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
<div class="tab-pane" id="3">
<h6>
您的总学习积分:<span class="badge badge-info">144.5</span> 即将过期积分:<span class="badge badge-info">44.5</span><small>(2013年12月31日)</small>
</h6>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>来源/用途</th>
<th>积分变化</th>
<th>日期</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>培训《XXXXX》消耗</td>
<td><strong class="text-error">-6.76</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
</tbody>
</table>
<div class="pagination pagination-right">
<ul>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
<div class="tab-pane" id="4">
<h6>
您的总学习积分:<span class="badge badge-info">144.5</span> 即将过期积分:<span class="badge badge-info">44.5</span><small>(2013年12月31日)</small>
</h6>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>来源/用途</th>
<th>积分变化</th>
<th>日期</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>培训《XXXXX》消耗</td>
<td><strong class="text-warning"> 10</strong></td>
<td>2013年10月1日</td>
<td>内容</td>
</tr>
</tbody>
</table>
</div>
<div class="tab-pane" id="5">
<h6>
您的总学习积分:<span class="badge badge-info">144.5</span> 即将过期积分:<span class="badge badge-info">44.5</span><small>(2013年12月31日)</small>
</h6>
<p>您当前没有过期积分明细</p>
</div>
</div>
</div>
<div class="foot-banner hide">
<div class="toCost">
<h5 class="pull-left">
在学习平台赚了积分可以这样花
</h5>
<div class="btn-group pull-right g-right">
<button class="btn btn-success btn-small">培训听课</button>
<button class="btn btn-success btn-small">享学购买</button>
<button class="btn btn-success btn-small">转赠他人</button>
</div>
</div>
<div class="toEarn">
<h5 class="pull-left">
在学习平台可以这样赚积分
</h5>
<div class="btn-group pull-right g-right">
<button class="btn btn-success btn-small">授课奖励</button>
<button class="btn btn-success btn-small">享学分享</button>
<button class="btn btn-success btn-small">发布视频</button>
<button class="btn btn-success btn-small">上传文档</button>
<button class="btn btn-success btn-small">提出&回答问题</button>
</div>
</div>
</div>
</div>
<button onclick="setSearch()">设定查询字串</button>
<script>
var EventUtil = {
addHandler: function (element, type, handler) {
if (element.addEventListener) {
element.addEventListener(type, handler, false);
} else if (element.attachEvent) {
element.attachEvent("on" + type, handler);
} else {
element["on" + type] = handler;
}
}
};
EventUtil.addHandler(document, "DOMContentLoaded", function (event) {
var a = location.search;
if(a.indexOf('open') >= 0){
view();
};
});
function view(){
$('.foot-banner').fadeIn('slow');
}
function setSearch(){
location.search = "";
}
</script>
</body>
</html>