-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.html
60 lines (43 loc) · 1.89 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
<!DOCTYPE html>
<html>
<head>
<img src="images/NExtBuylogo.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
</head>
<body>
<h1>Next Buy</h1>
<form id="add-product-form" action="/add-product" method="post">
<h2>Add Data</h2>
<label for="product-name">Product Name:</label>
<input type="text" id="product-name" name="product_name"><br>
<label for="product-price">Product Price:</label>
<input type="text" id="product-price" name="product_price"><br>
<input type="submit" value="Add Product">
</form>
<form action="/remove-product" method="post" name="remove-product-form" id="remove-product-form">
<h2>Remove Data</h2>
<label for="search-id">By ID:</label>
<input type="text" id="search-id" name="search_id"><br>
<label for="search-product">By Name:</label>
<input type="text" id="search-product" name="search_product"><br>
<button type="submit">Remove Product</button>
</form>
<br>
<h2>Display Products</h2>
<form action="/display-products" method="get">
<button id="display-button" type="submit">Display Products</button>
</form>
<script src="ajax.js"></script>
<form id="update-form" action="/update-product" method="post">
<h2>Update Data</h2>
<label for="search-product">Old Product Name:</label>
<input type="text" id="search-product" name="update-product" autocomplete="on"><br>
<label for="new-product-name">New Product Name:</label>
<input type="text" id="new-product-name" name="new-product-name"><br>
<label for="new-product-price">New Product Price:</label>
<input type="text" id="new-product-price" name="new-product-price"><br>
<button type="submit">Update Product</button>
</form>
</body>
</html>