-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminhome.php
210 lines (173 loc) · 4.57 KB
/
adminhome.php
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php
error_reporting(0);
session_start();
?>
<?php
$mysession = $_SESSION['emailadd'];
$db = mysqli_connect("localhost", "root", "", "myshopdb");
$sql = "SELECT * FROM logininfo WHERE emailadd='$mysession'";
$records = mysqli_query($db, $sql);
$details = mysqli_fetch_assoc($records);
?>
<!DOCTYPE html>
<html>
<head>
<title>My Shop</title>
<link rel="stylesheet" href="css.css">
<link rel="stylesheet" href="css2.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="animate.css">
<style>
*{
box-sizing: border-box;
}
#btn{
width: 50%;
height: auto;
margin: 0 auto;
}
.btn-size{
width: 100%;
height: 100px;
margin: 5px;
border-width: 2px;
background-color: aquamarine;
border-radius: 5px;
font-weight: bold;
font-size: 15px;
border-style: outset;
}
.btn-size:hover{
width: 100%;
height: 100px;
margin: 5px;
border-width: 2px;
background-color: aquamarine;
border-radius: 8px;
font-weight: bold;
font-size: 17px;
border-style: inherit;
cursor: pointer;
}
#menu ul li a:hover{
background-color: brown;
border-radius: 6px;
cursor: not-allowed;
}
#search-box:hover{
background-color: ghostwhite;
border-radius: 6px;
cursor: not-allowed;
}
#search-btn:hover{
border-radius: 6px;
cursor: not-allowed;
}
#an-div{
width: 100%;
height: 700px;
}
#right-nav-upper1{
width:48%;
height:50px;
z-index: 1;
float: right;
margin-top: 2px;
font-size: 17px;
margin-right: 10px;
border-radius: 10px;
position: relative;
background-color: darkgray;
padding: 10px;
}
#right-nav-upper2{
width:100%;
height:50px;
z-index: 1;
float: right;
display: none;
margin-top: -32px;
margin-left: -9px;
border-radius: 10px;
position: absolute;
background-color: darkgray;
padding: 10px;
}
#right-nav-upper1:hover #right-nav-upper2{
display: block;
background-color: darksalmon;
}
#login-as{
font-size: 20px;
margin-left: 28%;
margin-top: 6%;
}
#animated zoomIn infinite{
margin: 0 auto;
font-size: 50px;
}
#fafa{
font-size: 350px;
margin-left: 40%;
margin-top: 10%;
}
</style>
</head>
<body>
<div id="outer-box">
<header>
<h1 id="brand-name">myshop.com</h1>
<p id="tag-lines">India`s largest Online e-commerce website</p>
</header>
<div id="white-space-header"></div>
<nav>
<div id="left-nav">
<form>
<input type="search" name="searchval" id="search-box" placeholder="Search the Products" disabled="disabled"/>
<input type="submit" name="search" value="Search Now" id="search-btn" disabled="disabled"/>
</form>
</div>
<div id="right-nav">
<div id="right-nav-upper1">
<i class="fa fa-user" style="font-size:20px; margin-right:10px; margin-left:10px;"></i>
<?php echo $details['uname']; ?> -- <?php echo $details['emailadd']; ?> -- <?php echo "[Admin]"; ?>
<div id="right-nav-upper2">
<span id="login-as"><a href="index.php">Logout as Admin</a></span>
</div>
</div>
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Accesories</a></li>
<li><a href="#">Offers Zone</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">Logout</a></li>
<li><a href="#"><i class="fa fa-shopping-cart" style="font-size:24px"></i></a></li>
</ul>
</div>
</div>
</nav>
<div id="white-space-nav"></div>
<div id="side-fix-div">
<div id="search-by-category-div">
<a href="adminhome.php"><h1 id="search-by-category" class="animated zoomIn infinite">Welcome to C-Panel</h1></a>
<div id="btn">
<a href="addproduct.php"><button class="btn-size">Add Product</button></a>
<a href="remproduct.php"><button class="btn-size">Remove Product</button></a>
<a href="updateproduct.php"><button class="btn-size">Update Product</button></a>
<a href="userquery.php"><button class="btn-size">User Queries</button></a>
<a href="deleteuser.php"><button class="btn-size">Remove User</button></a>
</div>
</div>
<div id="search-by-category-div2">
</div>
</div>
<div id="side-right-div">
<div id="an-div">
<i class="fa fa-user" id="fafa"></i>
</div>
</div>
</div>
</body>
</html>