-
Notifications
You must be signed in to change notification settings - Fork 0
/
validate_customer.php
189 lines (144 loc) · 5.31 KB
/
validate_customer.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
<?php
include 'config.php';
$uemail = $_POST['email'];
$pwd = $_POST['pass'];
$sql = "SELECT * FROM customers WHERE Email='$uemail' AND pass='$pwd'";
$result = mysqli_query($conn, $sql);
if (!$row = mysqli_fetch_assoc($result)){
echo "<script>alert('Your username or password is incorrect!'); window.location='Login_customer.php';</script>";
} else {?>
<script>alert('You are logged in!')</script>
<!DOCTYPE HTML>
<html>
<head>
<title>Car Rental System</title>
<link rel="stylesheet" type="text/css" href="styles/Home_styles.css">
<link rel="stylesheet" type="text/css" href="styles/view_customer.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Actor&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles/footer.css">
<script src="js/editpro.js"> </script>
<meta charset="utf-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
</head>
<body style="background-color:black" >
<div style="background-color:orange; width:100%; height:176px; padding-bottom:20px">
<a href="index.html"><img src="images/LOGO11.png" width="192" height="192" class="logo" style="border-radius:100px; padding-top:2px; padding-left:5px" align="left"></a>
<div style="padding-top: 1px; padding-left: 10px; padding-right:150px;">
<header>
<center><h1 class="monospace"><b>EagleEye Rent-a-Car</b></h1></center>
<p style="position: relative; text-align:right; width:111%; font-size:18px"><a href="Login_customer.php" style="text-decoration:none">LOG OUT </a></p>
</header>
</div>
</div>
<ul class="menu">
<li class="menu"><a href="index.html"><i class="fa fa-home" id="nav-image"></i>Home</a></li>
<li class="menu"><a href="about us.html"><i class="fa fa-user" id="nav-image"></i>About Us</a></li>
<li class="menu"><a href="Rates.php"><i class="fa fa-usd" id="nav-image"></i>Rates</a></li>
<li class="menu"><a href="contactUs.html"><i class="fa fa-phone" id="nav-image"></i>Contact Us</a></li>
</ul>
<style>
.sidebar1 {
margin: 0;
padding: 0;
width: 230px;
background-color: black;
position: absolute;
border:1px solid orange;
border-bottom:none;
overflow: auto;
}
.sidebar1 a {
display: block;
color: yellow;
padding: 16px;
text-decoration: none;
border-bottom:1px solid orange;
}
.sidebar1 a.active {
background-color: #2196f3;
color: white;
}
.sidebar1 a:hover:not(.active) {
background-color: #555;
color: white;
}
div.content {
margin-left: 200px;
padding: 1px 16px;
height: 1000px;
}
@media screen and (max-width: 700px) {
.sidebar1 {
width: 100%;
height: auto;
position: relative;
}
.sidebar1 a {float: left;}
div.content {margin-left: 0;}
}
@media screen and (max-width: 400px) {
.sidebar1 a {
text-align: center;
float: none;
}
}
</style>
<div class="contact">
<center><font color="white">Welcome <?php echo $row['fName'] ?>!!! </font></center>
</div>
<div class="sidebar1">
<a href="selfDrive.html">SELF DRIVE</a><br>
<a href="withDriver.html">WITH DRIVER</a>
</div>
<div class="wrapper">
<img src="images/avatar.png" width="150" height="150" style="border-radius:100px"><br><br>
Customer ID : <?php echo $row['customerID'] ?><br><br>
First Name : <?php echo $row['fName'] ?><br><br>
Last Name : <?php echo $row['lName'] ?><br><br>
Gender : <?php echo $row['gender'] ?><br><br>
Mobile Number : <?php echo $row['mobileNumber'] ?><br><br>
E-mail : <?php echo $row['Email'] ?><br><br>
Date of Birth : <?php echo $row['DOB'] ?><br><br>
Address : <?php echo $row['Address'] ?><br><br>
<center>
<a href="customer update.html"><input type="submit" id="btn1" value="Update Your Profile" ></a>
<a href="delete customer.html"><input type="submit" id="btn2" value="Delete Your Profile" ></a>
<center>
</div>
<?php
}
?>
<br>
<br>
<footer style="background-color:#283c5f; width:100%; height:200px; padding-top:2px">
<div class="main-content">
<div class="left box1">
<h4><a href="#">QUICK LINKS</a></h4>
<h5><a href="index.html">HOME</a></h5>
<h5><a href="https://distancecalculator.globefeed.com/Sri_Lanka_Distance_Calculator.asp">DISTANCE CALCULATOR</a></h5>
<h5><a href="terms.html">TERMS & CONDITIONS</a></h5>
</div>
<div class="left box2">
<h4><a href="#"></a></h4>
<h5><a href="Rates.php">RATES</a></h5>
<h5><a href="about us.html">ABOUT US</a></h5>
<h5><a href="contactUs.html">CONTACT US</a></h5>
<h5><a href="policy.html">PRIVACY POLICY</a></h5>
</div>
<img src="images/LOGO12.png" width="170px" height="170px" class="logo" style="padding-top:15px; padding-left:10px; padding-right:230px;" align="center">
<div class="right box3">
<h4><font color="white">FOLLOW US</font></h4>
<div class="social">
<a href="#"><span class="fa fa-facebook"></span></a>
<a href="#"><span class="fa fa-twitter"></span></a>
<a href="#"><span class="fa fa-instagram"></span></a>
<a href="#"><span class="fa fa-youtube"></span></a>
<h3><a href="AddFeedback.html" style="text-decoration:none; color:white">Give Us Your Feedback</font></a></h3>
</div>
</div>
</div>
</footer>
<h5 align="center" style="font-family:'Poppins', sans-serif"><font color="white">Copyright 2020 © Site.com . All Rights Reserved.</font></h5>
</body>