-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.php
67 lines (53 loc) · 2.3 KB
/
navigation.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
<nav>
<div class="container">
<span class="nav-toggle" onclick="addclassmy()"><i class="fa fa-bars" ></i></span>
<div class="logo">
</div>
<div class="res-menu">
<div class="menu-items" id="classadder">
<ul>
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="all-questions.php">Top Questions</a>
</li>
<li>
<a href="contact-us.php">Contact Us</a>
</li>
<li>
<a href="why-us.php">Why Us?</a>
</li>
<li class="extra-top-respondent">
<a href="top-informant.php">Top Respondent</a>
</li>
<li class="extra-signup">
<a href="top-informant.php">Signup</a>
</li>
</ul>
<div class="search">
<form action="">
<label for="searchbox"><i class="fa fa-search"></i></label>
<input type="text" name="searchbox" placeholder="Search">
</form>
</div>
</div>
<div <?php echo 'class="nav-buttons"'; ?>>
<?php
if(isset($_SESSION['user_image_address'])){
echo '<a href="logout.php" class="login">Logout</a>';
if($_SESSION['status']==0){
echo ' <a href="user-profile.php" class="signup">Profile</a>';
}
else if($_SESSION['status']==1){
echo ' <a href="dashboard.php" class="signup">Admin</a>';
}
} else {
echo '<a href="login-page.php" class="login">Login</a>';
echo ' <a href="signup-page.php" class="signup">signup</a>';
}
?>
</div>
</div>
</div>
</nav>