-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeeperlist.php
More file actions
55 lines (51 loc) · 2 KB
/
keeperlist.php
File metadata and controls
55 lines (51 loc) · 2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>志愿者列表</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 href="https://unpkg.com/bootstrap-table@1.14.2/dist/bootstrap-table.min.css" rel="stylesheet">
<script src="https://unpkg.com/bootstrap-table@1.14.2/dist/bootstrap-table.min.js"></script>
<link rel="stylesheet" href="application/views/sqllesson/main.css">
<link rel="stylesheet" href="application/views/sqllesson/list.css">
<link rel="stylesheet" href="application/views/sqllesson/donate.css">
<script>
window.onload = function() {
var str1 = "";
$.ajax({
type: "POST",
async: false,
url: "./index.php?/pages/sqlGet/getkeeper",
dataType: "json",
success: function(result) {
var dataObj = result; //初始化表格信息
$.each(dataObj, function(index, item) {
str1 += "<tr>";
str1 += "<td>" + item.ID + "</td>";
str1 += "<td>" + item.name + "</td>";
str1 += "<td>" + item.email + "</td>";
str1 += "</tr>";
});
}
})
$("#table").html(str1); //把内容入到这个div中即完成
}
</script>
</head>
<body>
<div class="donate-big-title">捐赠公益</div>
<table class="text-center table">
<thead>
<tr>
<th>ID</th>
<th>姓名</th>
<th>邮箱地址</th>
</tr>
</thead>
<tbody id="table">
</tbody>
</table>
</body>
</html>