From 5eb54e60389482bdc77780b9700a36e074963392 Mon Sep 17 00:00:00 2001 From: "ns77@siliconpin.com" Date: Mon, 1 Sep 2025 11:32:55 +0000 Subject: [PATCH] add agent panel --- CONTENT/ROOT_URI/Agent/Dashboard.php | 5 ++++- CONTENT/ROOT_URI/Agent/Receive.php | 6 ++++++ CONTENT/ROOT_URI/Agent/report.php | 6 ++++++ CONTENT/ROOT_URI/Agent/transaction.php | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CONTENT/ROOT_URI/Agent/Dashboard.php b/CONTENT/ROOT_URI/Agent/Dashboard.php index ea68ef6..ceef194 100644 --- a/CONTENT/ROOT_URI/Agent/Dashboard.php +++ b/CONTENT/ROOT_URI/Agent/Dashboard.php @@ -1,5 +1,8 @@ window.location.href = '/Agent/agent-login'"; + exit; +} function getTotalAmount(array $rows): float { // array_column diye sudhu AT_AMOUNT gulo niye ashbo $amounts = array_column($rows, 'AT_AMOUNT'); diff --git a/CONTENT/ROOT_URI/Agent/Receive.php b/CONTENT/ROOT_URI/Agent/Receive.php index 1bce834..247fd8b 100644 --- a/CONTENT/ROOT_URI/Agent/Receive.php +++ b/CONTENT/ROOT_URI/Agent/Receive.php @@ -1,3 +1,9 @@ +window.location.href = '/Agent/agent-login'"; + exit; + } +?>

New Payment

diff --git a/CONTENT/ROOT_URI/Agent/report.php b/CONTENT/ROOT_URI/Agent/report.php index f1213e6..b1921a9 100644 --- a/CONTENT/ROOT_URI/Agent/report.php +++ b/CONTENT/ROOT_URI/Agent/report.php @@ -1,3 +1,9 @@ +window.location.href = '/Agent/agent-login'"; + exit; + } +?>

Generate Report

diff --git a/CONTENT/ROOT_URI/Agent/transaction.php b/CONTENT/ROOT_URI/Agent/transaction.php index 55812ca..1bd6d0b 100644 --- a/CONTENT/ROOT_URI/Agent/transaction.php +++ b/CONTENT/ROOT_URI/Agent/transaction.php @@ -1,4 +1,8 @@ window.location.href = '/Agent/agent-login'"; + exit; +} $conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); -- 2.49.1