-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
193 lines (176 loc) · 7.7 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
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Parmigiano reggiano</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body class = "font">
<h1>Parmigiano Reggiano Supply Chain</h1>
<div class = "step">
<p class = "step"> Step 1: Add Address to appropriate role</p>
<p class = "step"> If false, try again! </p>
<p class = "step" id = "divType"></p>
<div class = "outline"style = "height: 100px; display: flex;">
<button class = "button" data-id="1">Add Farmer</button>
<input id = "farmerID" class = "inputFeilds">
<p id = "isFarmer" class = "inputFeilds"></p>
</div>
<div class = "outline" style = "height: 100px; display: flex;">
<button class = "button " data-id="2">Add Distributor</button>
<input id = "distributorID" class = "inputFeilds">
<p id = "isDistributor" class = "inputFeilds"></p>
</div>
<div class = "outline" style = "height: 100px; display: flex;">
<button class = "button" data-id="3">Add Retailer</button>
<input id = "retailerID" class = "inputFeilds">
<p id = "isRetailer" class = "inputFeilds"></p>
</div>
<div class = "outline" style = "height: 100px; display: flex;">
<button class = "button" data-id="4">Add Consumer</button>
<input id = "consumerID" class = "inputFeilds">
<p id = "isConsumer" class = "inputFeilds"></p>
</div>
</div>
<div class = "step">
<p class = "step ">Validate the authenticity of the product</p>
<div class = "outline">
<div class = "contain">
<p class = 'font'>Universal Product Code:</p><input class = "inputFeilds" id = "upc1">
</div>
</div>
<div class = "outline" style="
margin: 1%;">
<button class = "button" data-id="5" style="height: 40px; margin: auto;">Fetch Item BufferOne</button>
<button class = "button" data-id="6" style="height: 40px; margin: auto;">Fetch Item BufferTwo</button>
<button class = "button" data-id="7" style="height: 40px; margin: auto;">Fetch Item History</button>
</div>
<div id = "BlockInfoBufferOne">
</div>
</div>
<div class = "step">
<p class = "step">Farmer Produced Product (ONLY FARMER)</p>
<div class = "outline">
<div class = "contain font">
<p>Origin Farm Name:</p><input id = "FN" class = "inputFeilds" value="Gonzaga P.pe Corrado" >
<p>Origin Farm Information:</p><input id = "FI" class = "inputFeilds" value="Province of Parma, Italy" >
<p>Origin Farm Latitude:</p><input id = "FLA" class = "inputFeilds" value="44 48 01.5">
<p>Origin Farm Longitiude:</p><input id = "FLO" class = "inputFeilds" value="10 19 51.4">
<p>Product Notes:</p><input id = "PN" class = "inputFeilds" value="Grade A">
<p>Product Price:</p><input id = "PP" class = "inputFeilds" value="899" >
<p>Universal Product Code:</p><input id = "upc" class = "inputFeilds" value = "1" type="number">
</div>
</div>
<div class = "outline" style="
margin: 1%;">
<button class = "button" data-id="8">Step 2: Produce Item By Farmer</button>
<p id = "pr" class = "font">
</p>
</div>
</div>
<div class = "step">
<p class = "step">Process Product (ONLY DISTRIBUTOR) </p>
<div class = "outline">
<div class = "contain font">
<p>Universal Product Code:</p><input id = "processupc" class = "inputFeilds">
<p>Number of cheese slices:</p><input id = "processnumber" type="number" class = "inputFeilds">
</div>
</div>
<div>
<div class = "outline" style="margin: 1%;">
<button class = "button" data-id="13"> Step 7: Process Item By Distributor</button>
<p id = "pibd" class = "font"></p>
</div>
</div>
</div>
<div class = "step">
<p class = "step">Package Product (ONLY DISTRIBUTOR) </p>
<div class = "outline">
<div class = "contain font">
<p>Universal Product Code:</p><input id = "packageupc" class = "inputFeilds">
</div>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="14"> Step 8: Package Item By Distributor</button>
<p id = "paibd" class = "font"></p>
</div>
</div>
<div class = "step">
<p class = "step">Sell Product </p>
<div class = "outline">
<div class = "contain font">
<p>Universal Product Code:</p><input id = "sellupc" class = "inputFeilds">
<p>Product Price:</p><input id = "sellprice" class = "inputFeilds">
</div>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="9">Step 3: Sell Item By Farmer</button>
<p id = "srf" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="15">Step 9: Sell Item By Distributor</button>
<p id = "srd" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="19">Step 13: Sell Item By Retailer</button>
<p id = "sibr" class = "font"></p>
</div>
</div>
<div class = "step">
<p class = "step">Purchased Product </p>
<div class = "outline">
<div class = "contain">
<p>Universal Product Code:</p><input id = "purchaseupc" class = "inputFeilds">
</div>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="10">Step 4: Purchase Item By Distributor</button>
<p id = "pid" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="16" >Step 10: Purchase Item By Retailer</button>
<p id = "pir" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%; display: flex;">
<button class = "button" data-id="20">Step 14: Purchase Item By Consumer</button>
<p id = "pic" class = "font"></p>
</div>
</div>
<div class = "step">
<p class = "step">Ship Product </p>
<div class = "outline">
<div class = "contain">
<p>Universal Product Code:</p><input id = "shipupc" class = "inputFeilds">
</div>
</div>
<div class = "outline" style="margin: 1%;">
<button class = "button" data-id="11" >Step 5: Ship Item By Farmer</button>
<p id = "sibf" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%;">
<button class = "button" data-id="17" >Step 11: Ship Item By Distributor</button>
<p id = "sibd" class = "font"></p>
</div>
</div>
<div class = "step">
<p class = "step">Received Product </p>
<div class = "outline">
<div class = "contain">
<p>Universal Product Code:</p><input id = "receiveupc" class = "inputFeilds">
</div>
</div>
<div class = "outline" style="margin: 1%;">
<button class = "button" data-id="12">Step 6: Received Item By Distributor</button>
<p id = "ribd" class = "font"></p>
</div>
<div class = "outline" style="margin: 1%;">
<button class = "button" data-id="18">Step 12: Received Item By Retailer</button>
<p id = "ribr" class = "font"></p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.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>