-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.html
71 lines (64 loc) · 2.66 KB
/
admin.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beautify Admin</title>
<link rel="stylesheet" type="text/css" href="../CSS/admin.css">
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300&family=Mulish:wght@700&family=Poppins:wght@100;200&family=Roboto:wght@100;300&display=swap"
rel="stylesheet">
</head>
<body>
<div id="add-modal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeAddModal()">×</span>
<h3 id="add-edit">Add Item</h3>
<form id="add-form">
<label for="name">Name:</label>
<input type="text" id="name" required><br>
<label for="size">Size:</label>
<input type="text" id="size" required><br>
<label for="price">Price:</label>
<input type="text" id="price" required><br>
<label for="categories">Categories:</label>
<input type="text" id="categories" required><br>
<label for="discount">Discount:</label>
<input type="text" id="discount" required><br>
<label for="avatar">Avatar:</label>
<input type="text" id="avatar" required><br>
<label for="rate">Rate:</label>
<input type="text" id="rate" required><br>
<input type="hidden" id="id">
<input class="submit" id="submit" type="button" value="Submit"><br>
<input class="submit" id="edit" type="button" value="Edit">
</form>
</div>
</div>
<div class="btn">
<button id="fetch-data-button" onclick="fetchData()">Total Products</button>
<button id="add-data-button" onclick="showAddModal()">Add & Edit Product</button>
<button id="add-data-button" onclick="window.location.href ='index.html'">Back To Home Page</button>
</div>
<div class="admin-page">
<table id="data-table">
<thead>
<tr>
<th>ID</th>
<th>Image</th>
<th>Name</th>
<th>Size</th>
<th>Price</th>
<th>Categories</th>
<th>Discount</th>
<th>Actions</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="data-table-body"></tbody>
</table>
</div>
</body>
<script src="../JavaScript/admin.js"></script>
</html>