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

@ -56,8 +56,19 @@ date_default_timezone_set('Asia/Kolkata');
</button>
<!-- Mobile profile + welcome -->
<?php
$imagePath = '';
if(isset($_SESSION['profile_pic']) && !empty($_SESSION['profile_pic'])){
$imagePath = "/CONTENT/ROOT_URI/Admin/".$_SESSION['profile_pic'];
}else{
$imagePath = "/CONTENT/ROOT_URI/Admin/default.svg";
}
?>
<img class="mobile-profile"
src="/CONTENT/ROOT_URI/Admin/<?php echo htmlspecialchars($_SESSION['profile_pic'] ?? 'default.png'); ?>"
src="<?php echo $imagePath; ?>"
width="40" height="40"
style="border-radius:50%; object-fit:cover;"
alt="Profile">
@ -70,14 +81,14 @@ date_default_timezone_set('Asia/Kolkata');
$userType = $_SESSION['type'] ?? '';
if ($userType === 'admin') {
?>
?>
<li><a href="/Admin/Create_AC_Recurring">New Recurring</a></li>
<li><a href="/Admin/Create_AC_FD">New FD</a></li>
<li><a href="/Admin/Create_AC_Loan">New Loan</a></li>
<li><a href="/Admin/Add_group">Add New Group</a></li>
<li><a href="/Admin/Trans_New">Transaction</a></li>
<li><a href="/Admin/agent-targets">Agent Targets</a></li>
<li><a href="/Admin/agent_View_report">Commission</a></li>
<!-- <li><a href="/Admin/agent_View_report">Commission</a></li> -->
<li><a href="/Admin/View_AC?Type=Recurring">View A/C</a></li>
<li><a href="/Admin/Report">Report</a></li>
<li><a href="/Admin/Due">Deemand Sheet</a></li>
@ -98,7 +109,7 @@ date_default_timezone_set('Asia/Kolkata');
<li><a href="/Admin/View_AC?Type=Recurring">View A/C</a></li>
<li><a href="/Admin/Due">Deemand Sheet</a></li>
<li><a href="/Admin/Report">Report</a></li>
<li><a href="/Admin/agent_View_report">Commission</a></li>
<!-- <li><a href="/Admin/agent_View_report">Commission</a></li> -->
<?php
}
?>
@ -110,7 +121,7 @@ date_default_timezone_set('Asia/Kolkata');
<span class="welcome-text">Welcome! <?php echo htmlspecialchars($_SESSION['name'] ?? ''); ?></span>
</li>
<li class="desktop-profile">
<img src="/CONTENT/ROOT_URI/Admin/<?php echo htmlspecialchars($_SESSION['profile_pic'] ?? 'default.png'); ?>"
<img src="<?php echo $imagePath; ?>"
width="40" height="40"
style="border-radius:50%; object-fit:cover;"
alt="Profile">

View File

@ -0,0 +1 @@
<svg width="64px" height="64px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="#ffffff" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#ffffff" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0z"></path></g></svg>

After

Width:  |  Height:  |  Size: 475 B

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'])){ ?>