-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome_page.php
67 lines (65 loc) · 2.21 KB
/
home_page.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
<?php
session_start();
?>
<html>
<head>
<title>
Welcome to Airlines
</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" href="font-awesome-4.7.0\css\font-awesome.min.css">
</head>
<body>
<img class="logo" src="images/irctc.jpg"/>
<h1 id="title">
IRCTC Airways
</h1>
<div>
<ul>
<li><a href="home_page.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li>
<?php
if(isset($_SESSION['login_user'])&&$_SESSION['user_type']=='Customer')
{
echo "<a href=\"book_tickets.php\"><i class=\"fa fa-ticket\" aria-hidden=\"true\"></i> Book Tickets</a>";
}
else if(isset($_SESSION['login_user'])&&$_SESSION['user_type']=='Administrator')
{
echo "<a href=\"admin_ticket_message.php\"><i class=\"fa fa-ticket\" aria-hidden=\"true\"></i> Book Tickets</a>";
}
else
{
echo "<a href=\"login_page.php\"><i class=\"fa fa-ticket\" aria-hidden=\"true\"></i> Book Tickets</a>";
}
?>
</li>
<li><a href="home_page.php"><i class="fa fa-plane" aria-hidden="true"></i> About Us</a></li>
<li><a href="home_page.php"><i class="fa fa-phone" aria-hidden="true"></i> Contact Us</a></li>
<li><a href="pnrall.php"><i class="fa fa-ticket" aria-hidden="true"></i> Check PNR </a></li>
<li>
<?php
if(isset($_SESSION['login_user'])&&$_SESSION['user_type']=='Customer')
{
echo "<a href=\"customer_homepage.php\"><i class=\"fa fa-sign-in\" aria-hidden=\"true\"></i> Login</a>";
}
else if(isset($_SESSION['login_user'])&&$_SESSION['user_type']=='Administrator')
{
echo "<a href=\"admin_homepage.php\"><i class=\"fa fa-sign-in\" aria-hidden=\"true\"></i> Login</a>";
}
else
{
echo "<a href=\"login_page.php\"><i class=\"fa fa-sign-in\" aria-hidden=\"true\"></i> Login</a>";
}
?>
</li>
</ul>
</div>
<div class="container">
<div class="welcome_text">Welcome to IRCTC !</div>
<img src="images/maxx.jpg" width=100%>
</div>
<!--check out addling local host in links and other places
shift login/logout buttons to right side
-->
</body>
</html>