This commit is contained in:
ns77@siliconpin.com
2025-09-03 15:52:39 +00:00
parent 1d736c99c8
commit f4d9d7073d
3 changed files with 27 additions and 14 deletions

View File

@@ -1,8 +1,7 @@
<?php
date_default_timezone_set('Asia/Kolkata');
$profile_pic = !empty($_SESSION['profile_pic'])
? "/CONTENT/ROOT_URI/Agent/" . htmlspecialchars($_SESSION['profile_pic'])
: "/CONTENT/ROOT_URI/Agent/default.png"; // placeholder image
// $profile_pic = !empty($_SESSION['profile_pic']) ? "/CONTENT/ROOT_URI/Agent/" . htmlspecialchars($_SESSION['profile_pic']) : "/CONTENT/ROOT_URI/Agent/default.png"; // placeholder image
?>
<style>
.agent-body {
@@ -57,16 +56,17 @@
left: 0;
right: 0;
height: 55px;
margin-bottom: 50px; /* margin থাকছে */
/* margin-bottom: 50px; important for bottom nav in mobile */
background: #e95420;
display: flex;
justify-content: space-around;
align-items: center;
border-top: 1px solid rgba(10, 10, 10, 1);
z-index: 999;
/* border-top: 1px solid rgba(10, 10, 10, 1);
z-index: 999; */
}
.agent-bottom-nav::after {
/* important for bottom nav in mobile */
/* .agent-bottom-nav::after {
content: "";
position: fixed;
bottom: 0;
@@ -75,7 +75,7 @@
height: 50px;
background: black;
z-index: -1;
}
} */
.agent-bottom-link {
color: #fff;
text-align: center;
@@ -100,7 +100,8 @@
<!-- Top Header -->
<div class="agent-header">
<div class="agent-header-title">
<img src="<?php echo $profile_pic; ?>" alt="Profile">
<img src="/CONTENT/ROOT_URI/Admin/<?php echo htmlspecialchars($_SESSION['profile_pic'] ?? 'default.svg'); ?>" alt="Profile">
<span>Agent Panel</span>
</div>
<?php if(isset($_SESSION) && !empty($_SESSION['user_id'])){ ?>