BBnepal-Accounts/hostel/application/views/hms-admin/common/header.php

45 lines
1.5 KiB
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<!--right-top side-->
<header id="header" class="dash-main-row">
<div class="user-login-section">
<!--<div class="notification-icon-wrap">
<img src="<?php echo base_url(); ?>assets-hms/images/dashboard/notification.svg">
<span></span>
<div class="notifications-wrap">
<div class="notifications">
<h4>Notifications</h4>
<ul>
<li>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
<i class="fas fa-trash-alt"></i>
</li>
</ul>
</div>
</div>
</div>-->
<?php
$yourName = ''; $namesFirstLetter='';
$linSessData = $_SESSION['hmsAULoginData'];
if(isset($linSessData['hms_lin_name'])){
$yourName = $linSessData['hms_lin_name'];
$namesFirstLetter = substr($yourName, 0, 1);
}
?>
<div class="user-wrap">
<div class="user-login-head">
<div class="profileImage"><?php echo $namesFirstLetter;?></div>
<h5><span class="user-name"><?php echo $yourName;?></span><i class="fa fa-caret-down" aria-hidden="true"></i><i class="fa fa-caret-up" aria-hidden="true"></i></h5>
</div>
<div class="login-wrap-open">
<ul>
<!-- <li><a href=""><span><i class="fa fa-user" aria-hidden="true"></i></span>My Profile</a></li> -->
<li><a href="<?php echo base_url().'logout';?>"><span><i class="fas fa-sign-out-alt"></i></span>Sign Out</a></li>
</ul>
</div>
</div>
</div>
<div class="mobileMenu">
<i class="fas fa-bars"></i>
</div>
</header>