-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
100 lines (93 loc) · 2.79 KB
/
menu.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
<?php
//session_start();
if(isset($_SESSION['userid']))
{
$userid = $_SESSION['userid'];
require_once("connect.php");
$sql = "SELECT userCategoryID FROM user WHERE userID = '".$userid."';";
$res = mysqli_query($con,$sql);
$rec = mysqli_fetch_array($res);
$ucid = $rec['userCategoryID'];
}
?>
<!-- Main Nav Bar -->
<nav id="nav">
<section class="container-fluid container">
<section class="row-fluid">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<div class="nav-collapse collapse">
<ul class="nav">
<li class=""> <a href="index.php"> Home </a> </li>
<li class="dropdown"> <a href="about_us.php"> About </a> </li>
<li class="dropdown"> <?php
if(isset($_SESSION['loginValidate']))
{
if(isset($_SESSION['loginValidate']))
{
if($ucid==2)
{?>
<a class="dropdown" href="help.php">Charity<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="giveProduct.php">Product</a></li>
<li><a href="giveServices.php">Services</a></li>
</ul>
<?php
}
elseif($ucid==3)
{?>
<a class="dropdown" href="help.php">Need<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="wantProduct.php">Product</a></li>
<li><a href="wantServices.php">Services</a></li>
</ul>
<?php
}
}
}
else
{
?>
<a class"ropdown-toggle" href="help.php">Helping Hand</a>
<?php
}
?>
</li>
<?php
if(isset($_SESSION['loginValidate']))
{?>
<?php
}
else
{?>
<li><a href="login.php">Login</a></li>
<li><a href="register1.php">New User Registration</a></li>
<?php
}
if(isset($_SESSION['loginValidate']))
{?>
<li><a href="showMyProfile.php">My Profile</a></li>
<li><a href="contact_us.php">Contact</a></li>
<li><a href="changepwd.php">Change Password</a></li>
<li class="last"><a href="logout.php">Log Out</a></li>
<?php
}
else
{?>
<li> <a href="contact_us.php"> Contact </a> </li>
<?php
}?>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!-- /.navbar-inner -->
</div>
<!-- /.navbar -->
</section>
</section>
</nav>
<!-- End Main Nav Bar -->
</header>
<!-- End of Header -->