-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperosn.html
75 lines (62 loc) · 2.71 KB
/
perosn.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 lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Person Adding Console</title>
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-primary" style="border-radius: 0;padding: 10px">
<div class="navbar-brand text-white">Persons v.01 <p class="text-light" style="font-size: 10px">smart contract - V</p></div>
</nav>
<div class="container h-100 text-center mt-5">
<div class="row h-100">
<div class="col-md-12">
<div class="form-group text-left">
<label for="personName">Enter Person Name </label>
<input type="text" class="form-control" id="personName" placeholder="Name Here">
<br>
<button class="btn btn-success" id="addName" onclick="return App.addPersonFun();">Add Person</button>
</div>
<div class="form-group text-left">
<label for="personID">Enter Person ID </label>
<input type="text" class="form-control" id="personID" placeholder="ID Here">
<br>
<button class="btn btn-danger" id="deletePerson" onclick="return App.deletePersonFun();">Delete Person</button>
</div>
<table class="table table-dark text-left table-striped" id="example">
<thead class="bg-primary">
<tr>
<th> Person Index </th>
<th> Person ID </th>
<th> Person Name </th>
</tr>
</thead>
<tbody id="getData" class="bg-success">
</tbody>
</table>
</div>
</div>
</div>
<script>
$(document).ready(function() {
var table = $('#example').DataTable( {
lengthChange: false,
buttons: [ 'copy', 'excel', 'pdf', 'colvis' ]
} );
table.buttons().container()
.appendTo( '#example_wrapper .col-md-6:eq(0)' );
} );
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/web3.min.js"></script>
<script src="../js/truffle-contract.js"></script>
<script src="../js/app.js"></script>
</body>
</html>