-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain-nav-buy-rent.php
104 lines (87 loc) · 4.88 KB
/
main-nav-buy-rent.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
<!-- Left Side Content -->
<div class="left-side">
<!-- Logo -->
<?php if (is_customer() == false) : ?>
<div id="logo">
<a href="index.php"><img src="images/logo-red.svg" alt=""></a>
</div>
<?php endif; ?>
<?php if (is_customer() == true) : ?>
<div id="logo">
<a href="Customer_Dashboard.php"><img src="images/logo-red.svg" alt=""></a>
</div>
<?php endif; ?>
<!-- Mobile Navigation -->
<div class="mmenu-trigger">
<button class="hamburger hamburger--collapse" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</div>
<!-- Main Navigation -->
<nav id="navigation" class="style-1 head-tr">
<ul id="responsive">
<?php if (is_customer() == false) : ?>
<li><a href="index.php">Home</a></li>
<?php endif; ?>
<?php if (is_customer() == true) : ?>
<li><a href="Customer_Dashboard.php">Home</a></li>
<?php endif; ?>
<li><a href="#">Property List</a>
<ul>
<li><a href="Customer_Buy_list.php">Buy List</a></li>
<li><a href="Customer_Rent_list .php">Rent List</a></li>
</ul>
</li>
<li><a href="about.php">About Us</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- Main Navigation / End -->
</div>
<?php
if (isset($_SESSION['customer_id'])) {
$user_id = $_SESSION['user_id'];
$customer_id = $_SESSION['customer_id'];
$username = $_SESSION['username'];
$name = $_SESSION['name'];
$stmt = query("SELECT user_email, user_image FROM users WHERE user_id={$user_id}");
$row = $stmt->fetch(PDO::FETCH_ASSOC);
$user_email = $row['user_email'];
$user_image = $row['user_image'];
} elseif(isset($_SESSION['admin_id'])) {
$user_id = $_SESSION['user_id'];
$name = $_SESSION['name'];
}
?>
<?php if (is_customer() == true) : ?>
<div class="header-user-menu user-menu add">
<div class="header-user-name">
<span><img src="<?php echo $user_image; ?>" alt=""></span>Hi, <?php echo $username; ?>!
</div>
<ul>
<li><a href="Customer_user_profile.php"> Profile</a></li>
<li><a href="Customer_change_password.php"> Change Password</a></li>
<li><a href="includes/logout.php">Log Out</a></li>
</ul>
</div>
<?php endif; ?>
<div class="right-side d-none d-none d-lg-none d-xl-flex sign ml-0">
<!-- Header Widget -->
<?php if (is_logged_in() == false) : ?>
<div class="header-widget sign-in">
<a href="login.php">Login</a>
</div>
<?php endif; ?>
<?php if (is_admin() == true) : ?>
<div class="header-widget sign-in">
<a href="admin_marketing/marketing_admin_dashboard.php">Admin Panel</a>
</div>
<?php endif; ?>
<?php if (is_client() == true) : ?>
<div class="header-widget sign-in">
<a href="client_users/client_dashboard.php">Client Panel</a>
</div>
<?php endif; ?>
<!-- Right Side Content / End -->