-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPharmacyIndex.html
More file actions
48 lines (38 loc) · 1.12 KB
/
PharmacyIndex.html
File metadata and controls
48 lines (38 loc) · 1.12 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Pharmacy Contract</title>
<meta charset="utf-8">
</head>
<body>
<h1>Pharmacy Contract</h1>
<p>This is a smart contract for managing drugs in a pharmacy.</p>
<h2>Drug Creation</h2>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" name="quantity"><br>
<label for="owner">Owner:</label>
<input type="text" id="owner" name="owner"><br>
<button type="button" onclick="createDrug()">Create Drug</button>
</form>
<h2>Drug Transfer</h2>
<form>
<label for="id">ID:</label>
<input type="number" id="id" name="id"><br>
<label for="to">To:</label>
<input type="text" id="to" name="to"><br>
<button type="button" onclick="transferDrug()">Transfer Drug</button>
</form>
<h2>Drug Information</h2>
<form>
<label for="drugId">Drug ID:</label>
<input type="number" id="drugId" name="drugId"><br>
<button type="button" onclick="getDrugInfo()">Get Drug Info</button>
</form>
<script>
// JavaScript code to interact with the smart contract
</script>
</body>
</html>