Make Header.php look better.
parent
760a80b461
commit
830001e72d
33
Header.php
33
Header.php
|
@ -116,21 +116,20 @@ if (mysqli_connect_errno()) {
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarColor02">
|
<div class="collapse navbar-collapse" id="navbarColor02">
|
||||||
|
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item active">
|
<li class="nav-item active">
|
||||||
|
<?php
|
||||||
<li class="nav-item active">
|
if (isset($_SESSION["user_fullname"])) {
|
||||||
<!-- <a class='nav-link' href='~\..\Visitors.php'> < i class='fa fa-globe'></i> Visitor Portal <span class='sr-only'>(current)</span></a> -->
|
echo " <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>";
|
||||||
|
?>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
|
||||||
if (isset($_SESSION["user_fullname"])) {
|
|
||||||
|
|
||||||
echo " <a class='nav-link' href='~\..\Courses.php'><i class='fa fa-book'></i> Courses <span class='sr-only'>(current)</span></a>";
|
|
||||||
?>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form class="form-inline my-2 my-lg-0" style="color:#fff;">
|
<form class="form-inline my-2 my-lg-0" style="color:#fff;">
|
||||||
Welcome <b> <?php echo $_SESSION['user_fullname']; ?> </b>
|
Welcome
|
||||||
|
<b> <?php echo $_SESSION['user_fullname']; ?> </b>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$c_date = date("Y-m-d H:i");
|
$c_date = date("Y-m-d H:i");
|
||||||
|
@ -141,19 +140,25 @@ if (mysqli_connect_errno()) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($_SESSION['user_type'] == "Lecturer") {
|
if ($_SESSION['user_type'] == "Lecturer") { // Show Admin link
|
||||||
echo " <i class=\"fa fa-cog\" style=\"color:#fff;\"> </i> <a style='color:#fff !important' href=\"~\..\Admin.php\" id=\"admin_tab\">Admin </a>";
|
echo " <i class=\"fa fa-cog\" style=\"color:#fff;\"> </i>";
|
||||||
|
echo " <a style='color:#fff !important' href=\"~\..\Admin.php\" id=\"admin_tab\">Admin</a>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<i class="fa fa-user" style="color:#fff;"> </i>
|
<i class="fa fa-user" style="color:#fff;"> </i>
|
||||||
<a href="#" style='color:#fff !important' onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)">Update password</a>
|
<a href="#" style='color:#fff !important' onclick="updatePass(<?php echo $_SESSION['user_id']; ?>)">Update password</a>
|
||||||
<i class="fa fa-lock" style="color:#fff;"> </i> <a style='color:#fff !important' href="~\..\logout.php">Logout </a>
|
|
||||||
|
|
||||||
|
<i class="fa fa-lock" style="color:#fff;"> </i>
|
||||||
|
<a style='color:#fff !important' href="~\..\logout.php">Logout </a>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
} // Confusing. What is this for?
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue