diff --git a/.gitignore b/.gitignore
index a4153e2..f56ef98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,4 +32,5 @@ download/
/img/*
upload/
CONFIG/config.php
+CONFIG/config-local.php
diff --git a/CONTENT/ROOT_URI/Admin/ADMIN_nav.php b/CONTENT/ROOT_URI/Admin/ADMIN_nav.php
index 19928a7..4ab16ad 100644
--- a/CONTENT/ROOT_URI/Admin/ADMIN_nav.php
+++ b/CONTENT/ROOT_URI/Admin/ADMIN_nav.php
@@ -43,7 +43,8 @@ require_login();
-
+
diff --git a/CONTENT/ROOT_URI/Admin/Details.php b/CONTENT/ROOT_URI/Admin/Details.php
index 32b6c3a..b3cd1a1 100644
--- a/CONTENT/ROOT_URI/Admin/Details.php
+++ b/CONTENT/ROOT_URI/Admin/Details.php
@@ -51,8 +51,24 @@
$spStmt->close();
}
+ // Handle maturity for recurring accounts
+ if (isset($_POST['recurring_maturity_submit']) && !empty($_POST['maturity_acno'])) {
+ $maturityAcno = $_POST['maturity_acno'];
+ $maturityDate = date('Y-m-d');
+
+ $maturitySql = "UPDATE `{$GLOBALS['arif_ac']}` SET STATUS = 'matured', CLOSING_DATE = ? WHERE AA_ACNO = ?";
+ $maturityStmt = $conn->prepare($maturitySql);
+
+ if ($maturityStmt->bind_param("ss", $maturityDate, $maturityAcno) && $maturityStmt->execute()) {
+ echo "Recurring A/C {$maturityAcno} marked as matured.
";
+ } else {
+ echo "Failed to mark Recurring A/C {$maturityAcno} as matured.
";
+ }
+
+ $maturityStmt->close();
+ }
+
// Get agent list for dropdown
- // $getAgentListsQuery = "SELECT * FROM " . $GLOBALS['arif_users'] . " WHERE type = 'agent'";
$getAgentListsQuery = "SELECT * FROM " . $GLOBALS['arif_users'] . "";
$agentResult = $conn->query($getAgentListsQuery);
$agentList = [];
@@ -158,7 +174,16 @@
} elseif ($row["AA_TYPE"]== "Recurring") {
echo "
- Recurring A/C of ".$row["AA_NAME"]. " |
+
+ Recurring A/C of ".$row["AA_NAME"]. " |
+
+
+ |
+
ACCOUNT NO. |
".$row["AA_ACNO"]. " |
diff --git a/CONTENT/ROOT_URI/Admin/login.php b/CONTENT/ROOT_URI/Admin/login.php
index 11d21e3..e4dba88 100644
--- a/CONTENT/ROOT_URI/Admin/login.php
+++ b/CONTENT/ROOT_URI/Admin/login.php
@@ -26,6 +26,7 @@
// Login successful
$_SESSION['user_id'] = $user['user_id'];
$_SESSION['type'] = $user['type'];
+ $_SESSION['name'] = $user['user_name'];
echo "Login successful. Redirecting...
";
echo "";
diff --git a/pma/tmp/twig/9c/9c03ed8cb539abe69e16e006b3ccdc1d.php b/pma/tmp/twig/9c/9c03ed8cb539abe69e16e006b3ccdc1d.php
new file mode 100644
index 0000000..1c8d00e
--- /dev/null
+++ b/pma/tmp/twig/9c/9c03ed8cb539abe69e16e006b3ccdc1d.php
@@ -0,0 +1,71 @@
+source = $this->getSourceContext();
+
+ $this->blocks = [
+ 'title' => [$this, 'block_title'],
+ ];
+ }
+
+ protected function doGetParent(array $context)
+ {
+ // line 1
+ return "import.twig";
+ }
+
+ protected function doDisplay(array $context, array $blocks = [])
+ {
+ $macros = $this->macros;
+ $this->parent = $this->loadTemplate("import.twig", "server/import/index.twig", 1);
+ $this->parent->display($context, array_merge($this->blocks, $blocks));
+ }
+
+ // line 3
+ public function block_title($context, array $blocks = [])
+ {
+ $macros = $this->macros;
+echo _gettext("Importing into the current server");
+ }
+
+ public function getTemplateName()
+ {
+ return "server/import/index.twig";
+ }
+
+ public function isTraitable()
+ {
+ return false;
+ }
+
+ public function getDebugInfo()
+ {
+ return array ( 46 => 3, 35 => 1,);
+ }
+
+ public function getSourceContext()
+ {
+ return new Source("", "server/import/index.twig", "/home/dev/web/arif.off/public_html/pma/templates/server/import/index.twig");
+ }
+}