-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
53 lines (52 loc) · 3.04 KB
/
header.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
<?php session_start();
include "database.php";
?>
<link rel="stylesheet" type="text/css" href="css/border-style.css">
<link id="bootstrap-style" href="css/bootstrap.min.css" rel="stylesheet">
<link id="bootstrap-style" href="css/slide.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<style type="text/css">body{ margin: 0px; padding: 0px; }
.site-name{color:white; width: 80%;height: 70px;background: #050108;margin-top: 20px;margin-left: 10%;border: 1px solid #03a199;outline: none;border-radius: 30px;}.site-name img{position: relative;width: 50px;margin:10px;float: left;}.site-name .h4{float: right; margin-top: -80px; margin-right: 25px; color:white; }.site-name .h4 img{width: 20px;margin-top:-1px;}.site-name .h41{float: right; margin-top: -80px; margin-right: 150px; text-decoration: none;} .site-name .h41 a{ text-decoration: none; color: #fff; }.site-name .h41 img{width: 20px;margin-top:-1px;}.menu-list{text-transform: uppercase;float:right;margin-top: -60px;}
.site-name h1{text-shadow: 3px 5px 5px red;}
.dropdown {position: relative;display: inline-block;}
.dropdown-content {display: none;position: absolute;background-color: #f1f1f1;min-width: 160px;box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);z-index: 1;}
.dropdown-content a {color: black;padding: 12px 16px;text-decoration: none;display: block;}
.dropdown-content a:hover {background-color: #ddd;}
.dropdown:hover .dropdown-content {display: block;}
</style>
<div class="site-name" id="navbar">
<img src="bg/booking-icon.png">
<h1>E-Ticket Booking System</h1>
<h4 class="h4"><img src="icon/call--.png"> 0123456789</h4>
<h4 class="h41"><img src="icon/mail.png"><a href="mailto:[email protected]">[email protected]</a></h4>
<div class="menu-list">
<ul>
<a class="border-style" href="index.php"><span></span><span></span><span></span><span></span>Home</a>
<a class="border-style" href="">Service</a>
<a class="border-style" href="about.php">About Us</a>
<a class="border-style" href="https://amarlondhe.000webhostapp.com/#footer" target="blank">Contact Us</a>
<?php if (isset($_SESSION['mail']))
{
$user_type=$_SESSION['user'];
if ($user_type=='Admin')
{ ?>
<div class="dropdown">
<a class="border-style" style="background: black; color:skyblue; border-radius: 10px;" href=""><span></span><span></span><span></span><span></span>Welcome Admin</a>
<div class="dropdown-content">
<a href="admine.php">Profile</a>
<a href="logout.php">lougout</a>
</div>
<?php }else{ ?>
<div class="dropdown">
<a class="border-style" style=" border-radius: 10px;" href=""><span></span><span></span><span></span><span></span><?php echo $_SESSION['mail']; ?></a>
<div class="dropdown-content">
<a href="profile.php">Profile</a>
<a href="logout.php">lougout</a>
</div>
</div>
<?php } }else{ ?>
<a class="border-style" href="login1.php">Login</a>
<?php } ?>
</ul>
</div>
</div>