This commit is contained in:
ns77@siliconpin.com
2025-09-03 14:28:37 +00:00
parent 80f50d3ee4
commit cb73f1fdd7
3 changed files with 29 additions and 80 deletions

View File

@@ -1,6 +1,3 @@
<?php
date_default_timezone_set('Asia/Kolkata');
?>
<style> <style>
.agent-body { .agent-body {
margin: 0; margin: 0;
@@ -8,43 +5,15 @@
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
overflow-y: auto; overflow-y: auto;
/* ✅ Prevent content from hiding behind bottom nav */ /* ✅ space for bottom nav */
padding-bottom: 80px; /* nav height + extra safe space */ padding-bottom: 70px; /* nav height (55px) + extra gap */
} }
/* ===== Header/Navbar ===== */
.agent-header {
background: #e95420;
color: #fff;
padding: 30px 15px 12px 15px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
font-weight: bold;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
}
.agent-header-title {
margin: 0;
}
.agent-header-logout {
background: transparent;
border: none;
color: #fff;
font-size: 16px;
cursor: pointer;
}
/* ===== Bottom Navigation ===== */
.agent-bottom-nav { .agent-bottom-nav {
position: fixed; position: fixed;
bottom: 45px; /* ✅ stays above system navigation keys */ bottom: 0;
left: 10px; left: 0;
right: 10px; right: 0;
height: 55px; height: 55px;
background: #e95420; background: #e95420;
display: flex; display: flex;
@@ -52,11 +21,8 @@
align-items: center; align-items: center;
border-top: 1px solid rgba(255,255,255,0.2); border-top: 1px solid rgba(255,255,255,0.2);
z-index: 999; z-index: 999;
/* Optional: make it look like floating nav */
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
} }
.agent-bottom-link { .agent-bottom-link {
color: #fff; color: #fff;
text-align: center; text-align: center;
@@ -72,45 +38,28 @@
} }
.agent-bottom-link.active { .agent-bottom-link.active {
background: rgba(255,255,255,0.2); background: rgba(255,255,255,0.2);
border-radius: 8px; border-radius: 5px;
} }
</style> </style>
<div class="agent-body"> <!-- Bottom Navigation -->
<?php if(isset($_SESSION) && !empty($_SESSION['user_id'])){ ?>
<!-- Top Header --> <div class="agent-bottom-nav">
<div class="agent-header"> <a href="/Agent/Dashboard" class="agent-bottom-link active">
<div class="agent-header-title">Agent Panel</div> <i class="fa-solid fa-house"></i>
<?php if(isset($_SESSION) && !empty($_SESSION['user_id'])){ ?> Home
<button onclick="window.location.href='/Agent/logout'" class="agent-header-logout">Logout</button> </a>
<?php } ?> <a href="/Agent/report" class="agent-bottom-link">
<i class="fa-solid fa-chart-line"></i>
Reports
</a>
<a href="/Agent/Receive" class="agent-bottom-link">
<i class="fa-solid fa-plus"></i>
Payment
</a>
<a href="/Agent/transaction" class="agent-bottom-link">
<i class="fa-solid fa-money-check-dollar"></i>
Transaction
</a>
</div> </div>
<?php } ?>
<!-- Some content -->
<div style="margin-top:20px; padding:15px;">
<!-- Dashboard Content -->
</div>
<!-- Bottom Navigation -->
<?php if(isset($_SESSION) && !empty($_SESSION['user_id'])){ ?>
<div class="agent-bottom-nav">
<a href="/Agent/Dashboard" class="agent-bottom-link active">
<i class="fa-solid fa-house"></i>
Home
</a>
<a href="/Agent/report" class="agent-bottom-link">
<i class="fa-solid fa-chart-line"></i>
Reports
</a>
<a href="/Agent/Receive" class="agent-bottom-link">
<i class="fa-solid fa-plus"></i>
Payment
</a>
<a href="/Agent/transaction" class="agent-bottom-link">
<i class="fa-solid fa-money-check-dollar"></i>
Transaction
</a>
</div>
<?php } ?>
</div>

View File

@@ -142,7 +142,7 @@ $conn->close();
.welcome-text { .welcome-text {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
margin-bottom: 70px; margin-bottom: 15px;
} }
.success-msg { .success-msg {

View File

@@ -15,7 +15,7 @@ $sql = "SELECT * FROM `" . $GLOBALS['arif_tran'] . "`WHERE `AT_ADMIN` = '" . $co
$result = $conn->query($sql); $result = $conn->query($sql);
?> ?>
<div class="container" style="margin-top:0px; margin-bottom:100px;"> <div class="container" style="margin-top:0px; margin-bottom:50px;">
<h3>Transaction Records</h3> <h3>Transaction Records</h3>
<?php if ($result && $result->num_rows > 0): ?> <?php if ($result && $result->num_rows > 0): ?>