-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (70 loc) · 2.77 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Pagination / Sorting / Searching</title>
<!-- Bootstrap css -->
<link rel="stylesheet" href="lib/css/bootstrap.min.css">
<!-- Bootstrap Optional theme -->
<link rel="stylesheet" href="lib/css/bootstrap-theme.min.css">
<!-- Font awesome -->
<link href="lib/css/font-awesome.min.css" rel="stylesheet">
<!-- jQuery Library -->
<script src="lib/javascript/jquery.min.js"></script>
<!-- Bootstrap JavaScript -->
<script src="lib/javascript/bootstrap.min.js"></script>
</head>
<body>
<div style="width: 650px; margin: 20px auto">
<div class="input-group" style="width: 250px; float: left">
<input type="text" class="form-control" name="onPageSearch" id="onPageSearch" placeholder="Name...">
<span class="input-group-btn">
<input type="button" class="btn btn-default ingroupBtn" name="searchBtn" value="Search">
</span>
</div><!-- /input-group -->
<input type="button" class="btn btn-warning" name="clearSearch" value="Clear Search" style="float: left">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th width="300" data-sortlabel="name">Name <i class="fa sortIcon fa-sort"></i></th>
<th width="150" data-sortlabel="age">Age <i class="fa sortIcon fa-sort"></i></th>
<th width="200" data-sortlabel="city">City <i class="fa sortIcon fa-sort"></i></th>
</tr>
</thead>
<tbody class="dataRow">
</tbody>
</table>
<div class="pagination_block"></div>
</div>
<script type="text/template" class="rowStructure">
<tr>
<td>-name-</td>
<td>-age-</td>
<td>-city-</td>
</tr>
</script>
<script src="javascript/pagination.js"></script>
<script src="javascript/sorting.js"></script>
<script src="javascript/onPageSearch.js"></script>
<script src="javascript/renderData.js"></script>
<script type="text/javascript">
var json = [
{"name": "Dheeraj Agrawal", "age": 27, "city": "Pune"},
{"name": "Umang Paunikar", "age": 27, "city": "RJN"},
{"name": "Sanjay Meravi", "age": 29, "city": "RJN"},
{"name": "Neeraj Jha", "age": 29, "city": "Durg"},
{"name": "Awhan Patnaik", "age": 37, "city": "Kolkata"},
{"name": "Prasad Mohite", "age": 26, "city": "Pune"},
{"name": "Mahesh Gawali", "age": 31, "city": "Delhi"},
{"name": "Mayur", "age": 35, "city": "Pune"},
{"name": "Prajyot Phate", "age": 23, "city": "Pune"},
{"name": "Mahendra Jadhav", "age": 25, "city": "Rajkot"},
{"name": "Prashant Agrawal", "age": 31, "city": "Ahmedabad"},
{"name": "Pankaj Agrawal", "age": 28, "city": "Gondia"},
{"name": "Mohit", "age": 27, "city": "Raipur"}
];
pagination.init(json, 5);
Sorting.init(json);
onpageSearch.init(json);
</script>
</body>
</html>