-
Notifications
You must be signed in to change notification settings - Fork 4
/
logged.php
158 lines (137 loc) · 6.71 KB
/
logged.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
<?php
require 'db_conn.php';
$login = $_POST['Loginid'];
session_start();
$pass = $_POST['Password'];
if (isset($_POST['Login']))
?>
<html>
<Title>Your Account</title>
<head>
<link rel="stylesheet" href="Front with CSS.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.teal-orange.min.css" />
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.6/material.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="css/footer-distributed-with-address-and-phones.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
</head>
<body background="airplane.jpg">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Your Account</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation. We hide it in small screens. -->
<nav class="mdl-navigation mdl-layout--large-screen-only">
<a class="mdl-navigation__link" href="home.php">Home</a>
<a class="mdl-navigation__link" href="form.php">Signup</a>
<a class="mdl-navigation__link" href="front.php">Login</a>
<a class="mdl-navigation__link" href="Aboutus.php">About Us</a>
<a class="mdl-navigation__link" href="Admin_login.php">Administrators</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Your Account</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="home.php">Home</a>
<a class="mdl-navigation__link" href="form.php">Signup</a>
<a class="mdl-navigation__link" href="front.php">Login</a>
<a class="mdl-navigation__link" href="Aboutus.php">About Us</a>
<a class="mdl-navigation__link" href="Admin_login.php">Administrators</a>
</nav>
</div>
<main class="mdl-layout__content">
<div class="page-content">
<br><br>
<center>
<div class="demo-card-wide mdl-card mdl-shadow--16dp">
<div class="mdl-shadow--16dp" style="background-color:#000000">
<br>
<div class="mdl-typography--title" style="color:#ffffff">Account Details:</div>
<br>
</div>
<?php
$sql="SELECT * FROM customerlogin where email_id='".$login."' and password='".$pass."'";
$result=mysqli_query($conn,$sql);
$count=mysqli_num_rows($result);
if($count==1)
{
echo '<script type="text/javascript">alert("You have successfully Logged in")</script>';
$row=mysqli_fetch_assoc($result);
echo '<br><br><div class=\"mdl-typography--subtitle\">Customer ID: '.$row['Customer_id'].'<br>First name: '.$row['First_name'].'<br>Last name: '.$row['Last_name'].'<br>Mobile Number: '.$row['Mobile_no'].'</div>';
$_SESSION["Customer_id"] =$row['Customer_id'];
}
else
{
echo '<script type="text/javascript">alert("Invalid Email-Id or Password");history.go(-1);</script>';
}
?>
<br>
<br>
<div class="mdl-shadow--16dp" style="background-color:#000000"><br>
<div class="mdl-shadow--16dp" style="background-color:#f4b342"><br>
<a class="mdl-navigation__link" href="home.php"><div class="mdl-typography--title" style="color:#000000;font-size:15px"><b>Book Now</b></div></a>
<br>
</div>
<div class="mdl-shadow--16dp" style="background-color:#f4b342"><br>
<a class="mdl-navigation__link" href="user_flight_view.php"><div class="mdl-typography--title" style="color:#000000;font-size:15px"><b>View Previous Bookings</b></div></a>
<br>
</div>
<div class="mdl-shadow--16dp" style="background-color:#f4b342"><br>
<a class="mdl-navigation__link" href="user_cancel.php"><div class="mdl-typography--title" style="color:#000000;font-size:15px"><b>Cancel Flights</b></div></a>
<br>
</div>
<br><br>
<form action="logout.php">
<input type="submit" value="Log Out" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
</form>
<br>
</div>
</center>
</div>
<footer class="footer-distributed">
<div class="footer-left">
<h3>Tap<span></span>tick</h3>
<p class="footer-links">
<a href="home.php">Home</a> ·
<a href="form.php">Signup</a> .
<a href="front.php">Login</a> ·
<a href="Aboutus.php">About Us</a> ·
<a href="Admin_login.php">Administrators</a>
</p>
<p class="footer-company-name">Taptick © 2017</p>
</div>
<div class="footer-center">
<div>
<i class="fa fa-map-marker"></i>
<p><span>VIT UNIVERSITY</span> Chennai, India</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>+91 67856 73456</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
<div class="footer-right">
<p class="footer-company-about">
<span>About the company</span> Providing the best ticket booking experience with the least use of user inputs to deliver a hassle free experience and the best fares on our flights.
</p>
<div class="footer-icons">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="https://github.com/dwij2812/FlightBooking-system"><i class="fa fa-github"></i></a>
</div>
</div>
</footer>
</main>
</body>
</html>