-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
250 lines (202 loc) · 9.89 KB
/
dashboard.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<?php
session_start();
if(isset($_GET['email'])){
$_SESSION['email']= $_GET['email'];
}
else{
header('location: login.php');
}
$conn = new mysqli("localhost", "root","","project");
$email = $_GET['email'];
$account_query = "select * from details where email='$email'";
$account_view = $conn ->query($account_query);
while ($row = $account_view->fetch_assoc()){
$fn=$row['fname'];
$ln=$row['lname'];
$ph=$row['ph_no'];
$em=$row['email'];
$pwd=$row['password'];
$add=$row['address'];
$DOB=$row['DOB'];
$serdate=$row['booking_date'];
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css" integrity="sha384-VCmXjywReHh4PwowAiWNagnWcLhlEJLA5buUprzK8rxFgeH0kww/aWY76TfkUoSX" crossorigin="anonymous">
<title>Dashboard</title>
<link rel="shortcut icon" type="image/x-icon" href="images/logo2.png" />
<style>
#syl1{
color: white;
border: none;
margin-left: 40px;
}
#box5{
width: 100%;
padding-top: 0.5%;
padding-bottom: 0.5%;
background-color: rgb(61, 59, 59);
color: white;
padding-left: 40px;
margin-top: -2px;
}
#box6{
width: 100%;
padding-top: 1%;
padding-bottom: 1%;
background-color: black;
color: white;
padding-left: 40px;
}
#particles-js{
height: 100%;
/* background: #000066; */
background-image: url(dashimg/dash2.png);
background-size: cover;
}
body{
margin: 0;
padding: 0;
height: 100vh;
}
.panel {
font-family: 'Source Sans Pro';
font-size: 15px;
position: absolute;
z-index: 10;
top: 50%;
left: 50%;
margin: -110px 0 0 -100px;
}
</style>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-light" style="background-color: #457B8B;width: 100%; " >
<a class="navbar-brand" <?php echo "href='welcome.php?email=$email'";?> style="padding-left: 35px;"><img src="images/finallogo.png" style="width: 100px; ;"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<button class="btn btn-outline-dark" id="syl1" type="button"> <a <?php echo "href='welcome.php?email=$email'";?> style="text-decoration: none; color: white;">Home</a></button>
</li>
<li class="nav-item active">
<button class="btn btn-outline-dark" id="syl1" type="button"><a <?php echo "href='service1.php?email=$email'";?> style="text-decoration: none; color: white;">Services</a></button>
</li>
<li class="nav-item active">
<button class="btn btn-outline-dark" id="syl1" type="button"><a <?php echo "href='blog1.php?email=$email'";?> style="text-decoration: none; color: white;">Blog</a></button>
</li>
<li class="nav-item active">
<button class="btn btn-outline-dark" id="syl1" type="button"><a <?php echo "href='donate.php?email=$email'";?> style="text-decoration: none; color: white;">Donate</a></button>
</li>
<li class="nav-item dropdown">
<a class="btn btn-outline-dark dropdown-toggle" id="syl1" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="color:white;">
Profile
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown" style="background-color: rgb(197, 191, 191); margin-left: 0px;padding-left:0px ">
<a class="dropdown-item" style="color: black; " <?php echo "href='dashboard.php?email=$email'";?>>Dashboard</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item " style="color: black; " <?php echo "href='update.php?email=$email&fn=$fn&ln=$ln&ph=$ph&em=$em&pwd=$pwd&add=$add&DOB=$DOB'";?>>Update</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" style="color: black; " <?php echo "href='./feedback/index1.php?email=$email'";?>>Feedback Form</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" style="color: black; " href="homepage.php">Sign out</a>
</div>
</li>
</ul>
</div>
</nav>
<div id="particles-js">
<div class="panel" style="color:white;">
<h1 style="text-align: center;"><b>My Profile</b></h1>
<?php
$conn = new mysqli("localhost", "root","","project");
if($conn->connect_error){
die("connection error");
}
$email = $_GET['email'];
$account_query = "select * from details where email='$email'";
$account_view = $conn ->query($account_query);
echo "<table>";
while ($row = $account_view->fetch_assoc()){
$fn=$row['fname'];
$ln=$row['lname'];
$ph=$row['ph_no'];
$em=$row['email'];
$pwd=$row['password'];
$add=$row['address'];
$DOB=$row['DOB'];
$ser=$row['services'];
$serdate=$row['booking_date'];
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."First Name       ".$fn."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Last Name       ".$ln."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Phone No.        ".$ph."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Email               ".$em."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Password         ".$pwd."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Address            ".$add."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Date of Birth    ".$DOB."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Service             ".$ser."</td>";
echo"</tr>";
echo"<tr>";
echo "<td style='border: 1px solid white;'>"."Booking Date   ".$serdate."</td>";
echo"</tr>";
}
echo "</table>";
?>
</div>
</div>
</div>
<script type="text/javascript" src="particles.js"></script>
<script type="text/javascript" src="app.js"></script>
<div id="box5">
<a <?php echo "href='aboutus1.php?email=$email'";?> style="color: white; font-size: 1.3vw;">About Us</a>
<a <?php echo "href='terms&condition1.php?email=$email'";?> style="color: white; margin-left: 60px; font-size: 1.3vw;">Terms & condition</a>
<a <?php echo "href='privacypolicy1.php?email=$email'";?> style="color: white; margin-left: 60px; font-size: 1.3vw;">Privacy Policy</a>
<a <?php echo "href='help1.php?email=$email'";?> style="color: white; margin-left: 60px; font-size: 1.3vw;">Help</a>
</div>
<div id="box6">
<div style="color: white;">
<p style=" font-size: 1vw;">Contact Us</p>
<p style=" font-size: 1vw;"> Contact No-   022-4335678 (Toll free)<br> Email Us-        [email protected]</p>
</div>
<div style="color: white; margin-top: -7%;position: relative;">
<p style=" font-size: 1vw; margin-left: 30%; margin-top: -47px;padding-top:-10px ;"> Address</p>
<p style=" font-size: 1vw; margin-left: 30%; "> Infocity<br>Bhubaneswar, 751024<br>Odisha, India</p>
</div>
<div style="color: white; position: relative;margin-top: -7%;">
<p style="font-size: 1vw;margin-left: 80%;margin-top: -47px;color: white;">Join with us</p>
<a href="https://www.facebook.com"><img src="images/fb.png" style="width: 2%;margin-left: 75%;position: relative; margin-top: 0px;"></a>
<a href="https://www.instagram.com/creative_sambit"><img src="images/insta.png" style="width: 2%;margin-left: 80%;position: relative; margin-top: -50px;"></a>
<a href="https://www.mi.co.in/"><img src="images/twitter.png" style="width: 2%;margin-left: 85%;position: relative; margin-top: -98px;"></a>
<a href="https://www.google.com"><img src="images/whatsapp.png" style="width: 2%;margin-left: 90%;position: relative; margin-top: -146px;"></a>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/js/bootstrap.min.js" integrity="sha384-XEerZL0cuoUbHE4nZReLT7nx9gQrQreJekYhJD9WNWhH8nEW+0c5qq7aIo2Wl30J" crossorigin="anonymous"></script>
</body>
</html>