v2
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user