-
Notifications
You must be signed in to change notification settings - Fork 45
/
donate.html
122 lines (120 loc) · 7.03 KB
/
donate.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
<!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="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>捐助-支持长远发展,感谢您的认可!</title>
<!-- grid.simple.min.css, grid.simple.min.js -->
<link rel="stylesheet" href="builds/merged/bsgrid.all.min.css"/>
<link rel="stylesheet" href="builds/css/skins/grid_bootstrap.min.css"/>
<style type="text/css">
body {
font-size: 16px;
color: #555;
line-height: 28px;
background-color: white;
padding: 3px;
}
.title {
font-weight: 700;
}
#searchTable {
width: 410px;;
}
</style>
<script type="text/javascript" src="plugins/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="builds/js/lang/grid.zh-CN.min.js"></script>
<script type="text/javascript" src="builds/merged/bsgrid.all.min.js"></script>
</head>
<body style="background-color: #fff;">
<table>
<tr>
<td class="title">支付宝:</td>
<td class="title">微信:</td>
</tr>
<tr>
<td><img src="documention/images/donate/alipay.jpg" width="200px" height="200px"/></td>
<td><img src="documention/images/donate/weixin.png" width="200px" height="200px"/></td>
</tr>
</table>
<span class="title" id="countMoney">捐助总额:</span>
<table id="searchTable">
<tr>
<th w_index="date" width="25%;">日期</th>
<th w_index="name" width="25%;">姓名</th>
<th w_index="money" w_align="right" width="25%;">数额</th>
<th w_index="type" width="25%;">捐助方式</th>
</tr>
</table>
<script type="text/javascript">
var localData = [
{"date": "2018.04.16", "name": "热心群友", "money": "30.00元", "type": "微信"},
{"date": "2018.02.24", "name": "微信未显示", "money": "50.00元", "type": "微信"},
{"date": "2018.01.30", "name": "微信未显示", "money": "5.00元", "type": "微信"},
{"date": "2018.01.02", "name": "微信未显示", "money": "1.00元", "type": "微信"},
{"date": "2017.10.17", "name": "微信未显示", "money": "0.10元", "type": "微信"},
{"date": "2017.07.13", "name": "微信未显示", "money": "0.50元", "type": "微信"},
{"date": "2017.06.21", "name": "微信未显示", "money": "1.00元", "type": "微信"},
{"date": "2017.06.12", "name": "微信未显示", "money": "10.00元", "type": "微信"},
{"date": "2017.03.13", "name": "微信未显示", "money": "5.00元", "type": "微信"},
{"date": "2017.02.07", "name": "微信未显示", "money": "8.80元", "type": "微信"},
{"date": "2017.01.03", "name": "微信未显示", "money": "5.00元", "type": "微信"},
{"date": "2016.12.13", "name": "微信未显示", "money": "1.00元", "type": "微信"},
{"date": "2016.11.24", "name": "微信未显示", "money": "0.50元", "type": "微信"},
{"date": "2016.11.11", "name": "微信未显示", "money": "30.00元", "type": "微信"},
{"date": "2016.11.09", "name": "微信未显示", "money": "1.00元", "type": "微信"},
{"date": "2016.11.08", "name": "微信未显示", "money": "0.50元", "type": "微信"},
{"date": "2016.10.12", "name": "微信未显示", "money": "5.00元", "type": "微信"},
{"date": "2016.10.01", "name": "微信未显示", "money": "100.00元", "type": "微信"},
{"date": "2016.09.20", "name": "微信未显示", "money": "10.00元", "type": "微信"},
{"date": "2016.09.12", "name": "四有", "money": "1.00元", "type": "支付宝"},
{"date": "2016.08.12", "name": "微信未显示", "money": "3.00元", "type": "微信"},
{"date": "2016.08.09", "name": "陈伟", "money": "0.50元", "type": "支付宝"},
{"date": "2016.07.09", "name": "宋颖超", "money": "5.00元", "type": "微信"},
{"date": "2016.06.17", "name": "(Miss)", "money": "4.00元", "type": "微信"},
{"date": "2016.06.15", "name": "(Miss)", "money": "1.00元", "type": "微信"},
{"date": "2016.05.04", "name": "AndyChen", "money": "9.00元", "type": "微信"},
{"date": "2016.04.26", "name": "张_San", "money": "10.00元", "type": "微信"},
{"date": "2016.04.22", "name": "德昌", "money": "10.00元", "type": "支付宝"},
{"date": "2016.04.02", "name": "刘付强", "money": "4.00元", "type": "微信"},
{"date": "2016.03.17", "name": "锋", "money": "5.00元", "type": "支付宝"},
{"date": "2016.03.01", "name": "EndualSX", "money": "5.00元", "type": "支付宝"},
{"date": "2016.03.01", "name": "黄杰", "money": "10.00元", "type": "支付宝"},
{"date": "2015.10.14", "name": "周昱昊", "money": "5.00元", "type": "支付宝"},
{"date": "2015.08.19", "name": "水枪首", "money": "0.10元", "type": "支付宝"},
{"date": "2015.07.24", "name": "粉饰太平", "money": "2.00元", "type": "微信"},
{"date": "2015.07.15", "name": "韦德shen", "money": "5.00元", "type": "微信"},
{"date": "2015.07.13", "name": "永成", "money": "11.10元", "type": "支付宝"},
{"date": "2015.07.08", "name": "宋强强", "money": "1.00元", "type": "支付宝"},
{"date": "2015.07.03", "name": "贡华", "money": "9.90元", "type": "支付宝"},
{"date": "2015.06.28", "name": "胡正伟", "money": "20.00元", "type": "支付宝"},
{"date": "2015.06.26", "name": "monster", "money": "0.20元", "type": "微信"},
{"date": "2015.06.05", "name": "Pany", "money": "100.00元", "type": "微信"},
{"date": "2015.06.02", "name": "黄国杰", "money": "10.00元", "type": "支付宝"},
{"date": "2015.04.03", "name": "王明杰", "money": "30.00元", "type": "支付宝"},
{"date": "2015.03.12", "name": "汤飞飞", "money": "9.90元", "type": "支付宝"},
{"date": "2015.02.25", "name": "王鑫", "money": "88.00元", "type": "支付宝"},
{"date": "2015.01.27", "name": "李凯鹏", "money": "9.90元", "type": "支付宝"},
{"date": "2015.01.22", "name": "妍", "money": "9.90元", "type": "支付宝"},
{"date": "2014.12.08", "name": "May", "money": "21.00元", "type": "微信"}
];
var countMoney = 0;
$.each(localData, function (i, data) {
if (!isNaN(data['money'].replace('元', ''))) {
countMoney += parseFloat(data['money'].replace('元', ''));
}
});
$('#countMoney').append(countMoney.toFixed(2) + '元');
var gridObj;
$(function () {
gridObj = $.fn.bsgrid.init('searchTable', {
localData: localData,
pageSize: 5,
pageSizeSelect: true,
pagingLittleToolbar: true,
pageIncorrectTurnAlert: false
});
});
</script>
</body>
</html>