-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataTable.html
127 lines (125 loc) · 6.58 KB
/
dataTable.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Data Table</title>
<link rel="shortcut icon" href="images/m.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section id="main">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="registerform">
<div class="panel panel-primary">
<div class="panel-heading">
<h4><a class="btn btn-danger btn-sm" href="form.html">User Registration</a>
    
User Information</h4>
</div>
<div class="panel-body table-responsive">
<table class="table table-striped" id="myTable">
<thead>
<tr class="danger"">
<th>Name</th>
<th>Gender</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mehedi Hasan</td>
<td>Male</td>
<td>23</td>
</tr>
<tr>
<td>Neymar Jr</td>
<td>Male</td>
<td>26</td>
</tr>
<tr>
<td>Marcelo</td>
<td>Male</td>
<td>30</td>
</tr>
<tr>
<td>Marta</td>
<td>Female</td>
<td>32</td>
</tr>
<tr>
<td>Philippe Coutinho</td>
<td>Male</td>
<td>26</td>
</tr>
<tr>
<td>Oliveira</td>
<td>Female</td>
<td>27</td>
</tr>
<tr>
<td>Alisson Becker</td>
<td>Male</td>
<td>26</td>
</tr>
<tr>
<td>Dias Gomes</td>
<td>Female</td>
<td>31</td>
</tr>
<tr>
<td>Erika</td>
<td>Female</td>
<td>30</td>
</tr>
<tr>
<td>Arthur Melo</td>
<td>Male</td>
<td>22</td>
</tr>
<tr>
<td>Thaisa</td>
<td>Female</td>
<td>29</td>
</tr>
<tr>
<td>Thiago Silva</td>
<td>Male</td>
<td>34</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.dataTables.js"></script>
<script src="js/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function() {
$('#myTable').DataTable({
//bFilter: false,
"language": {
"info": "(_START_ to _END_) of _TOTAL_ peoples",
"paginate": {
"next": '»',
"previous": '«'
},
"sLengthMenu": "_MENU_ records",
"sSearch": "Find"
},
"aLengthMenu": [[5, 10, -1], [5, 10, "All"]],
"iDisplayLength": 5
});
});
</script>
</body>
</html>