-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
74 lines (67 loc) · 1.77 KB
/
index.php
File metadata and controls
74 lines (67 loc) · 1.77 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
<!doctype html>
<html lang="en">
<head>
<title>PosgresSQL - DataTable</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Bootstrap CS -->
<link
rel="stylesheet"
href="assets/bootstrap/css/bootstrap.min.css" />
</head>
<body>
<header>
<!-- place navbar here -->
</header>
<main>
<div class="container">
<table class="table table-hover table-bordered my-0" id="dataTable">
<thead>
</thead>
<tbody>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</main>
<footer>
<!-- place footer here -->
</footer>
<!-- Bootstrap JavaScript Libraries -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/datatables.min.js"></script>
<script src="assets/js/main.js"></script>
<script>
$(document).ready(function() {
columns = [{
title: "FIRSTNAME",
data: 0
},
{
title: "LASTNAME",
data: 1
},
{
title: "MIDDLENAME",
data: 2
},
{
title: "SUFFIX",
data: 3
},
{
title: "PHONE",
data: 4
},
];
api = "script.php";
initializeDataTable(api, columns);
});
</script>
</body>
</html>