-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathseller.html
154 lines (135 loc) · 6.68 KB
/
seller.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<!-- Blockchain -->
<script src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="sellerscript.js"></script>
<title>Supply Chain</title>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Supply Chain | Seller</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"></ul>
<div class="d-flex">
<a href="/index.html">
<button class="btn btn-outline-light">buyer</button>
</a>
</div>
</div>
</div>
</nav>
<!-- main layout -->
<div class="container mt-5">
<div class="row">
<div class="col-8">
<div class="row" id="_regdiv">
<h4>Register</h4>
<div>
<div>
<label for="exampleInputEmail1" class="form-label">Your name</label>
<input type="text" class="form-control" id="_regname">
</div>
<button type="submit" class="btn btn-primary" id="_regbutton">Register</button>
</div>
</div>
<div class="row mt-5">
<h4>Your product(s) <span class="badge rounded-pill bg-dark" id="_totalproduct"></span></h4>
<table class="table" id="_myproduct_table">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Price</th>
<th scope="col">Quantity</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<!-- <tr>
<th>1</th>
<td>Product 1</td>
<td>300</td>
<td>3</td>
<td><button type="button" class="btn btn-secondary btn-sm" onclick="priceUpdate(1)">Change price</button></td>
</tr> -->
</tbody>
</table>
</div>
</div>
<div class="col-4">
<div class="row mt-5">
<h4>Add product</h4>
<div>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label" id="_nameidlabel">Name</label>
<input type="text" class="form-control" id="_pname">
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label" id="_pricelabel">Price</label>
<input type="text" class="form-control" id="_price">
</div>
<div class="mb-3" id="_quantitylabel">
<label for="exampleInputPassword1" class="form-label">Quantity</label>
<input type="text" class="form-control" id="_pquantity">
</div>
<button type="submit" class="btn btn-primary" id="_addbtn">Add</button>
<button type="submit" class="btn btn-primary" id="_updatebtn">Update</button>
</div>
</div>
</div>
<div class="row mt-5">
<h4>Your order(s) <span class="badge rounded-pill bg-dark" id="_total_order"></span></h4>
<table class="table" id="_order_table">
<thead>
<tr>
<th scope="col">Order ID</th>
<th scope="col">Product ID</th>
<th scope="col">Quantity</th>
<th scope="col">Customer name</th>
<th scope="col">Delivery address</th>
<th scope="col">Status</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<!-- <tr>
<th>1</th>
<td>1</td>
<td>30</td>
<td>Amit</td>
<td>Kolkata</td>
<td>Status</td>
<td>
<button type="button" class="btn btn-primary btn-sm" onclick="delivered(1)">Delivered</button>
<button type="button" class="btn btn-secondary btn-sm" onclick="reject(1)">Reject</button>
</td>
</tr> -->
</tbody>
</table>
</div>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
-->
</body>
</html>