-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.php
More file actions
134 lines (125 loc) · 6.16 KB
/
main.php
File metadata and controls
134 lines (125 loc) · 6.16 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ezgo China社区公益捐赠计划</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="application/views/sqllesson/main.css">
<script>
window.onload = function() {
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getmain1",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
$("#computer").html(item.num);
});
}
})
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getmain2",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
$("#item").html(item.num);
});
}
})
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getmain3",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
$("#donor").html(item.num);
});
}
})
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getmain4",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
$("#donee").html(item.num);
});
}
})
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getmain5",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
$("#keeper").html(item.num);
});
}
})
}
</script>
</head>
<body>
<div class="big-about">
<div class="row">
<div class="col-md-8">
<div class="about-title"><span class="bigtitle">ABOUT</span><span class="smalltitle">关于公益捐赠计划</span></div>
<div class="about-text">
<p>如果您有不需要用的旧电脑,不再需要的旧书等有益物资,欢迎您考虑捐助给我们。我们将会把旧电脑清理、安装 ezgo 开源操作系统,对旧书等物资做整理和清洁,捐助给全国各地的公益学校。</p>
<p>捐助物资的您,我们可能没办法在物质上补偿您,但是我们会赠送您一份由ezgo社区设计的纪念卡片一份。并且您将成为我们“ezgo 公益之友”,获得我们尽最大努力能为您能提供的一些资讯和服务。</p>
<p>愿每个人都成为世间一道美丽风景,愿每一颗星星都在黑夜中熠熠生辉。</p>
<button class="btn btn-primary col-md-2" style="width:20%;border:none;margin:20px;" type="button"><a class="donate-a" style="color:white;" href="./index.php?/pages/sqllesson/login">登录</a></button>
</div>
</div>
<div class="col-md-4">
<img style="width:400px" src="application/views/sqllesson/ezgoicon.jpg">
</div>
<div class="col-md-12">
<div class="about-part col-md-2" style="width:18%">
<div class="part-num text-center" id="computer"></div>
<a class="donate-a" target="view_window" href="./index.php?/pages/sqllesson/computerlist">
<div class="part-word text-center">捐赠电脑</div>
</a>
</div>
<div class="about-part col-md-2" style="width:18%">
<div class="part-num text-center" id="item"></div>
<a class="donate-a" target="view_window" href="./index.php?/pages/sqllesson/itemlist">
<div class="part-word text-center">捐赠物资</div>
</a>
</div>
<div class="about-part col-md-2" style="width:18%">
<div class="part-num text-center" id="donor"></div>
<a class="donate-a" target="view_window" href="./index.php?/pages/sqllesson/donorlist">
<div class="part-word text-center">捐赠人</div>
</a>
</div>
<div class="about-part col-md-2" style="width:18%">
<div class="part-num text-center" id="donee"></div>
<a class="donate-a" target="view_window" href="./index.php?/pages/sqllesson/doneelist">
<div class="part-word text-center">受赠人</div>
</a>
</div>
<div class="about-part col-md-2" style="width:18%">
<div class="part-num text-center" id="keeper"></div>
<a class="donate-a" target="view_window" href="./index.php?/pages/sqllesson/keeperlist">
<div class="part-word text-center">志愿者</div>
</a>
</div>
</div>
</div>
</div>
</body>
</html>