forked from Salmandabbakuti/Shop-Now
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexs.html
116 lines (116 loc) · 4.56 KB
/
indexs.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Shop NoW</title>
<link rel="stylesheet" href="seller.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<center><h1>Shop NoW</h1><h6>Sellers</h6></center>
<div id ="main">
<div style="text-align: center;">
<button id="allOrderListings" onclick="initOrdersPlaced()">Orders</button>
<div id= "left" style="text-align: center;">
<input type="text" id="sellerName" class="example" placeholder="Enter Your Name.." name="search2" style="width:100px">
<button id="createSellerAccount">Register<i class="fa fa-user-plus"></i></button>
<button id="modal-btn" style="margin-left: 20px;">New Product</a><i class="fa fa-user-plus"></i></button>
<div style="text-align: center; margin:1px;">
<center><h3>Refunds</h3></center>
<input type="text" id="refundProductId" class="example" placeholder="Enter ProductId..." name="search1" style="width:90px">
<input type="text" id="refundPurchaseId" class="example" placeholder="Enter PurchaseId..." name="search2" style="width:90px">
<input type="text" id="refundPrice" class="example" placeholder=" Price in Ether.." name="search2" style="width:60px">
<button id="refund" style="width:60px">Refund</button>
</div>
<hr>
<div style="text-align: center; margin:1px;">
<center><h3 style="margin-bottom: 3px;">Shipments</h3></center>
<input type="text" id="shipPurchaseId" class="example" placeholder="Enter PurchaseId.." name="search2" style="width:40%">
</div>
<div style="text-align: center;">
<textarea type="text" rows="4" class="content" id="shipmentDetails" placeholder="Update Shipment Details.." required /></textarea>
</div>
<button id="updateShipment" style="width:40%;">Update Shipment Details</button>
<br/>
<div style="text-align: center;">
<input type="text" id="searchPurchaseId" class="example" placeholder="Enter PurchaseId...." name="search2" style="margin:auto;max-width:300px">
<button type="submit" id="getShipments" style="width: 60px;"><i class="fa fa-search"></i></button>
</div>
<div id = "response" style="text-align: center;">
<p><b>ProductId:</b></p>
<span id="getProductId">??</span>
<p><b>Shipment Status:</p></b>
<span id="getShipmentStatus">??</span>
<p><b>Ordered By:</b></p>
<span id="getOrderedBy">??</span>
<p><b>DeliveryAddress:</b></p>
<span id="getShipmentAddress">??</span>
</div>
</div>
<div class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<div id="center" style="text-align: center;">
<form>
<div class="container">
<h1>List Your Product</h1>
<hr>
<div style="text-align: center;">
<label for="name"><b>ProductId</b></label>
<input type="text" id="addProductId" placeholder="Enter Your ProductId.."required>
</div>
<div style="text-align: center;">
<label for="address"><b>Product Name</b></label>
<input type="text" id="addProductName" placeholder="Enter Product Name."required>
</div>
<div style="text-align: center;">
<label for="address"><b>Price</b></label>
<input type="text" id="addProductPrice" placeholder="Enter Your Listing Price in Ether..."required>
</div>
<div style="text-align: center;">
<label for="address"><b>Product Description</b></label>
<input type="text" id="addProductDescription" placeholder="Enter Product Description."required>
</div>
<div style="text-align: center;">
<label for="about"><b>Category</b></label>
<input type="text" id="addProductCategory" placeholder="Enter Product Category.." required>
<hr>
</div>
<div style="text-align: center;">
<button id="addProduct" class="registerbtn">List Your Product</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="allOrdersPlaced" style="text-align: center;"></div>
</div>
</div>
</br>
</div>
</div>
<div id="log" style="text-align: center;"></div>
<script>
let modalBtn = document.getElementById("modal-btn")
let modal = document.querySelector(".modal")
let closeBtn = document.querySelector(".close-btn")
modalBtn.onclick = function(){
modal.style.display = "block"
}
closeBtn.onclick = function(){
modal.style.display = "none"
}
window.onclick = function(e){
if(e.target == modal){
modal.style.display = "none"
}
}
</script>
<script src="web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src ="seller.js"></script>
</body>
<footer style="text-align: right;">
<h6>© Salman Dabbakuti </h6>
</footer>
</html>