-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunder_review.html
157 lines (144 loc) · 4.57 KB
/
under_review.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
<!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>IdeaKart💡</title>
<link
rel="icon"
type="image/x-icon"
href="https://ideakart.com/assets/favicon-dc419e035c991f8f9c077a885c6ba6d589c3b552a1e4073cf07a392c54b93db7.jpg"
/>
<link rel="stylesheet" href="table.css" />
<link rel="stylesheet" href="navbar.css" />
<link rel="stylesheet" href="footer.css" />
</head>
<body>
<!-- navBar section start-->
<section id="header">
<a href="index.html" class="logo">IdeaKart💡</a>
<div id="search_box">
<input type="text" placeholder="Search for product" />
<button>Search</button>
</div>
<div>
<ul id="navbar">
<li><a href="index.html" class="active">Home</a></li>
<li><a href="about_page.html">About</a></li>
<li><a href="contact_us_page.html">Contact</a></li>
<li id="login_text"><a href="login.html">Login</a></li>
<li><a href="cart.html">🛒</a></li>
</ul>
</div>
</section>
<!-- navBar section end -->
<!-- side bar of dashbord start here -->
<div class="sidebar">
<header>Dashboard</header>
<ul>
<li id="home">
<a href="dashboard_home.html"> <i class="fas fa-home"></i>Home</a>
</li>
<li id="new_product">
<a href="upload_product.html">
<i class="fa fa-upload"></i>Upload Product
</a>
</li>
<li id="credits">
<a href="#"> <i class="fa fa-credit-card"></i>Credits</a>
</li>
<li>
<a href="added_products.html">
<i class="fa fa-plus"></i> Added Product</a
>
</li>
<li>
<a href="approved_product.html">
<i class="fa fa-check"></i>Product Approved</a
>
</li>
<li>
<a href="under_review.html">
<i class="fas fa-comments"></i>Under Review</a
>
</li>
<li>
<a href="rejected_product.html">
<i class="fa fa-exclamation-triangle"></i>Product Rejected</a
>
</li>
</ul>
</div>
<!-- side bar of dashbord end here -->
<!-- under review of dashbord start here -->
<div class="table-Dashboard">
<h2 id="heading">Products Under Review!</h2>
<table class="t1">
<thead>
<tr>
<th>Image</th>
<th>Name</th>
<th>Price</th>
</tr>
</thead>
<tbody id="tbody">
<!-- Added products will appended here -->
</tbody>
</table>
</div>
<!-- under review of dashbord end here -->
<!-- footer part of ideakart start -->
<div id="foot-of-page">
<h3>Get To Know Us</h3>
<ul>
<li>
<a href="about_page.html">About</a>
</li>
<li>
<a href="contact_us_page.html">Contact</a>
</li>
<li>
<a href="search.html">Search</a>
</li>
<li>
<a href="privacy_policy.html">Privacy Policy</a>
</li>
<li>
<a href="refund_policy.html">Refund Policy</a>
</li>
<li>
<a href="earn_money.html">Earn Money Online</a>
</li>
</ul>
</div>
<!-- footer part of ideakart start -->
</body>
</html>
<script src="under_review.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script>
let isSignin = JSON.parse(localStorage.getItem("signinData"));
let current_user_name = isSignin[0].name;
if (isSignin !== null) {
document.querySelector("#login_text").innerHTML =
`<select name="current_user" id="current_user">
<option id="useless" class="dash_options" value="">${current_user_name}</option>
<option class="dash_options" value="Dashboard">Dashboard</option>
<option class="dash_options" value="Notifications">Notifications</option>
<option class="dash_options" value="sign_out">Sign Out</option>
</select>`
}
let Dash = document.querySelector("#current_user");
Dash.addEventListener("change", dashFunction);
function dashFunction() {
if (Dash.value == "sign_out") {
localStorage.removeItem("signinData");
window.location.reload();
} else if (Dash.value == "Dashboard") {
window.location.href = "dashboard_home.html" //link here
} else if (Dash.value == "Notifications") {
window.location.href = "notification.html" //here too
}
}
</script>