-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathPrevwork.html
More file actions
120 lines (102 loc) · 5.27 KB
/
Copy pathPrevwork.html
File metadata and controls
120 lines (102 loc) · 5.27 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Previous Works</title>
<link rel="shortcut icon" href="https://in-saiyan.github.io/Ascent/src/assets/favicon/favicon.svg" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<body class="bg-secondary">
<nav class="navbar navbar-expand-lg navbar-dark p-0">
<div class="container-fluid">
<div class="container-fluid flex-row d-flex mb-5">
<a class="navbar-brand" href="#"><img src="https://in-saiyan.github.io/Ascent/src/assets/AscentLogo.webp" alt="Logo" height="100px"></a>
</div>
</div>
</div>
</nav>
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://cdn.datatables.net/1.13.2/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.3.4/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/2.3.4/js/buttons.html5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<div class="container mt-5">
<div class="col-12 mt-5">
<table id="mytable" class="table table-striped DataTable table-hover mt-5">
<thead>
<tr>
<th>S.No</th>
<th>Name of client</th>
<th>Transaction ID</th>
<th>Money</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script>
$(document).ready(function () {
$("#mytable").DataTable({
dom: "Bfrtip",
buttons: ["copy", "csv", "excel", "pdf", "print"],
});
});
var a=document.querySelector("tbody");
var sum=0;
arr = [
{ Sno: 0, Name: "ARYAN", Txn: "240310532769", Fee: 999999 },
{ Sno: 1, Name: "NAMAN", Txn: "240310532746", Fee: 500000 },
{ Sno: 2, Name: "AYUSH", Txn: "457451574581", Fee: 100000 },
{ Sno: 3, Name: "RAJESH", Txn: "241057392735", Fee: 200000 },
{ Sno: 4, Name: "PRIYA", Txn: "389572839572", Fee: 300000 },
{ Sno: 5, Name: "MAYANK", Txn: "328475928374", Fee: 150000 },
{ Sno: 6, Name: "RAVI", Txn: "563829572039", Fee: 250000 },
{ Sno: 7, Name: "RITU", Txn: "675829384758", Fee: 180000 },
{ Sno: 8, Name: "SACHIN", Txn: "487653920574", Fee: 320000 },
{ Sno: 9, Name: "ANITA", Txn: "928384756829", Fee: 210000 },
{ Sno: 10, Name: "VIKAS", Txn: "174639283750", Fee: 50000 },
];
for(var i=0;i<arr.length;i++)
{
a.innerHTML+=`<tr><td>${arr[i].Sno}</td><td>${arr[i].Name}</td><td>${arr[i].Txn}</td> <td>₹ ${arr[i].Fee}</td></tr>`;
sum+=arr[i].Fee
}
</script>
<script>
var a=document.querySelector("tbody");
a.innerHTML+=`<tr><td>-</td> <td>Total</td> <td>-</td> <td>₹ ${sum}</td></tr>`;
a.innerHTML+=`<tr><td> </td> <td> </td> <td> </td> <td> </td></tr>`;
</script>
<style>
div.dt-buttons {
position: relative;
float: right;
}
</style>
<footer class="footer bg-dark p-4 d-flex flex-column align-items-center justify-content-center gap-1 mt-5">
<div class="d-flex flex-row align-items-center justify-content-center gap-3">
<a href="https://facebook.com" class="overflow-hidden text-white align-items-center p-3 rounded-pill bg-black" target="_blank">
<i class="fab fa-facebook-f"></i>
</a>
<a href="https://instagram.com" class="overflow-hidden text-white align-items-center p-3 rounded-pill bg-black" target="_blank">
<i class="fab fa-instagram"></i>
</a>
<a href="https://linkedin.com" class="overflow-hidden text-white align-items-center p-3 rounded-pill bg-black" target="_blank">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="https://github.com" class="overflow-hidden text-white align-items-center p-3 rounded-pill bg-black" target="_blank">
<i class="fab fa-github"></i>
</a>
</div>
<div class="p-2"> © 2024 Mavenix 2024</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/js/all.min.js" integrity="sha512-6sSYJqDreZRZGkJ3b+YfdhB3MzmuP9R7X1QZ6g5aIXhRvR1Y/N/P47jmnkENm7YL3oqsmI6AK+V6AD99uWDnIw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>