-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin.html
167 lines (159 loc) · 8.42 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
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
<!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>Admin</title>
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.3.1/firebase-database.js"></script>
<link rel="stylesheet" href="./admin.css">
<script src="https://kit.fontawesome.com/a5e2fc3f3f.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="navbar">
<img src="https://m.licious.in/image/rebranding/svg/licious-logo.svg" alt="">
<h3>Admin Panel</h3>
<h3>Hi,Welcome Back Admin</h3>
</div>
<div class="main-container">
<div class="sidebar">
<div class="products" id="products">
<i class="fa-solid fa-clipboard"></i>
<a href="">Products</a>
</div>
<div class="products" id="category">
<i class="fa-solid fa-folder-open"></i>
<a href="">Category</a>
</div>
<div class="products">
<i class="fa-solid fa-truck-fast"></i>
<a href="">Manage Orders</a>
</div>
<div class="products logout-session">
<i class="fa-solid fa-right-from-bracket"></i>
<a href="./index.html">Logout</a>
</div>
</div>
<div class="main-area">
<div class="data_base">
<div class="data total_product">
<i class="fa-solid fa-clipboard"></i>
<p>Total No of Products</p>
<p id="product_count">0</p>
</div>
<div class="data total_categories">
<i class="fa-solid fa-folder-open"></i>
<p>Total No of Categories</p>
<p id="category_count">0</p>
</div>
<div class="data total_orders">
<i class="fa-solid fa-truck-fast"></i>
<p>Total No of Orders</p>
<p id="order_count"> 14</p>
</div>
</div>
<div class="form_products">
<div class="form_head">
<h3>Products</h3>
<button id="addNewProd">Add</button>
<div id="addproductform">
<div id="add_product_form">
<h3>Add Product <span class="closeprodform">X</span></h3>
<input type="text" id="product_id" placeholder="Enter Product ID">
<input type="text" id="product_name" placeholder="Enter Product Name">
<input type="text" id="product_desc" placeholder="Enter Product desc">
<input type="file" id="product_image" placeholder="Choose Product Image">
<input type="text" id="product_MRP" placeholder="Enter Product Price">
<button id="add_product_btn">Add Product</button>
</div>
</div>
<button id="update_cur_prod">Update</button>
<div id="update_product_form">
<div id="add_product_form">
<h3>Update Product <span class="closeupdform">X</span></h3>
<input type="text" id="update_product_id" placeholder="Enter Product ID">
<input type="text" id="update_product_name" placeholder="Enter Product Name">
<input type="text" id="update_product_desc" placeholder="Enter Product desc">
<input type="text" id="update_product_MRP" placeholder="Enter Product Price">
<button id="add_update_btn">Update Product</button>
</div>
</div>
<button id="delete_cur_prod">Delete</button>
<div id="delete_product_form">
<div id="add_product_form">
<h3>Delete Product <span class="closedelform">X</span></h3>
<input type="text" id="del_product_id" placeholder="Enter Product ID">
<button id="add_delete_btn">Delete Product</button>
</div>
</div>
</div>
<div class="form_rows">
<table class="product_table">
<thead>
<tr>
<th>ID</th>
<th>Product Name</th>
<th>Description</th>
<th>Price</th>
</tr>
</thead>
<tbody id="table-rows">
<!-- -------append data------ -->
</tbody>
</table>
</div>
</div>
<div class="form_products form_category">
<div class="form_head">
<h3>Category</h3>
<button id="addNewCat">Add</button>
<div id="addcategoryform">
<div id="add_category_form">
<h3>Add Category <span class="closecatform">X</span></h3>
<input type="text" id="category_id" placeholder="Enter Category ID">
<input type="text" id="category_name" placeholder="Enter Category Name">
<input type="file" id="category_image" placeholder="Choose Category Image">
<button id="add_category_btn">Add Category</button>
</div>
</div>
<button id="update_cur_cat">Update</button>
<div id="update_category_form">
<div id="add_category_form">
<h3>Update Category <span class="closecatupdform">X</span></h3>
<input type="text" id="update_category_id" placeholder="Enter Category ID">
<input type="text" id="update_category_name" placeholder="Enter Category Name">
<button id="add_update_btn_cat">Update Category</button>
</div>
</div>
<button id="delete_cur_cat">Delete</button>
<div id="delete_category_form">
<div id="add_category_form">
<h3>Delete Category <span class="closecatdelform">X</span></h3>
<input type="text" id="del_cat_id" placeholder="Enter Category ID">
<button id="add_delete_cat_btn">Delete Category</button>
</div>
</div>
</div>
<div class="form_rows">
<table class="product_table">
<thead>
<tr>
<th>ID</th>
<th>Product Name</th>
<!-- <th>Description</th>
<th>Price</th> -->
</tr>
</thead>
<tbody id="table-cat-rows">
<!-- -------append----- -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>
<script src="admin.js"></script>