-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
104 lines (79 loc) · 3.49 KB
/
table.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Peeps | decentralize everything.</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Arisen Ministries is leading a digital crusade around the world to help preserve our God-given, inalienable rights, as well as a growing fight for justice, life, faith and family.">
<meta name="keywords" content="arisen church, arisen ministries">
<!-- Favicon -->
<link rel="shortcut icon" href="assets/img/logo/peepfab.png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito:400,400i,600,600i,700,700i%7cPermanent+Marker"
rel="stylesheet">
<link href="assets/css/theme.css" rel="stylesheet" type="text/css" media="all">
<link href="assets/css/custom.css" rel="stylesheet" type="text/css" media="all">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PB2B20HRJV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-PB2B20HRJV');
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.1/axios.min.js"> </script>
</head>
<body>
<h3 class="donation-head">Subscribers Details</h3>
<table id="tabledata" class="backend-data">
<tr>
<th>S.No</th>
<th>PaymentType</th>
<th>SubscriptionId</th>
<th>PaymentStatus</th>
<th>Name</th>
<th>Email</th>
<th>AddressOne</th>
<th>AddressTwo</th>
<th>City</th>
<th>State</th>
<th>Zipcode</th>
<th>phoneNo</th>
</tr>
<tbody id="tbody">
</tbody>
</table>
<script>
window.onload = function () {
var list;
axios.get('https://payments.peepsx.com/users/alldetails')
.then((result) => {
list = result.data.data
console.log("?????????lidt", list)
var html = "<table border='1|1'>";
for (var i = 0; i < list.length; i++) {
html += "<tr>";
html += "<td>" + (i+1) + "</td>";
html += "<td>" + list[i].paymentType + "</td>";
html += "<td>" + list[i].subscriptionId + "</td>";
html += "<td>" + list[i].subscriptionStatus + "</td>";
html += "<td>" + list[i].fName + " " + list[i].lName + "</td>";
html += "<td>" + list[i].email + "</td>";
html += "<td>" + list[i].addressOne + "</td>";
html += "<td>" + list[i].addressTwo + "</td>";
html += "<td>" + list[i].city + "</td>";
html += "<td>" + list[i].state + "</td>";
html += "<td>" + list[i].zipcode + "</td>";
html += "<td>" + list[i].phoneNo + "</td>";
html += "</tr>";
}
html += "</table>";
document.getElementById("tbody").innerHTML = html;
})
.catch((errors) => {
})
};
</script>
</body>
</html>