From 5a12de1c64f53357ac20f51a61f503df60235880 Mon Sep 17 00:00:00 2001 From: "ns77@siliconpin.com" Date: Wed, 10 Sep 2025 13:57:41 +0000 Subject: [PATCH] implemented admin or bm approval functionality --- CONTENT/ROOT_URI/Admin/ADMIN_nav.php | 142 ++++- CONTENT/ROOT_URI/Admin/Trans_New.php | 51 +- CONTENT/ROOT_URI/Admin/notification.php | 502 +++++++++++++++++ CONTENT/ROOT_URI/Admin/trans-new-old.php | 468 ++++++++++++++++ .../exe/deduct-from-recurring/index.php | 95 ++++ .../94/941b8ec1b12113606316397044670a4e.php | 502 +++++++++++++++++ .../db/db787b0020cc11018f7017ab2c0a98df.php | 81 +++ .../fc/fc3553e470af84c1eb11e81ceec027fb.php | 517 ++++++++++++++++++ 8 files changed, 2293 insertions(+), 65 deletions(-) create mode 100644 CONTENT/ROOT_URI/Admin/notification.php create mode 100644 CONTENT/ROOT_URI/Admin/trans-new-old.php create mode 100644 CONTENT/ROOT_URI/exe/deduct-from-recurring/index.php create mode 100644 pma/tmp/twig/94/941b8ec1b12113606316397044670a4e.php create mode 100644 pma/tmp/twig/db/db787b0020cc11018f7017ab2c0a98df.php create mode 100644 pma/tmp/twig/fc/fc3553e470af84c1eb11e81ceec027fb.php diff --git a/CONTENT/ROOT_URI/Admin/ADMIN_nav.php b/CONTENT/ROOT_URI/Admin/ADMIN_nav.php index 707931e..6ad158b 100644 --- a/CONTENT/ROOT_URI/Admin/ADMIN_nav.php +++ b/CONTENT/ROOT_URI/Admin/ADMIN_nav.php @@ -2,6 +2,47 @@ include(__DIR__ . '/auth.php'); require_login(); date_default_timezone_set('Asia/Kolkata'); +$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); +if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +$pendingCount = 0; // Default value + +try { + $table = 'fund_trans'; + + // Check user type and prepare appropriate query + if ($_SESSION['type'] === 'admin') { + // Admin can only see BM requests + $countStmt = $conn->prepare("SELECT COUNT(*) AS pending_count FROM `$table` WHERE status = 0 AND request_usr_type = 'bm'"); + } elseif ($_SESSION['type'] === 'bm') { + // BM can only see Admin requests + $countStmt = $conn->prepare("SELECT COUNT(*) AS pending_count FROM `$table` WHERE status = 0 AND request_usr_type = 'admin'"); + } else { + // Other user types see nothing + $countStmt = false; + $pendingCount = 0; + } + + if ($countStmt) { + $countStmt->execute(); + $countResult = $countStmt->get_result(); + + if ($countResult) { + $row = $countResult->fetch_assoc(); + $pendingCount = $row['pending_count'] ?? 0; + } + + $countStmt->close(); + } + +} catch (Exception $e) { + // Log error instead of showing to user + error_log("Error getting pending count: " . $e->getMessage()); +} + +$conn->close(); ?> \ No newline at end of file diff --git a/CONTENT/ROOT_URI/Admin/trans-new-old.php b/CONTENT/ROOT_URI/Admin/trans-new-old.php new file mode 100644 index 0000000..5d69abd --- /dev/null +++ b/CONTENT/ROOT_URI/Admin/trans-new-old.php @@ -0,0 +1,468 @@ + + +
+
+
+ +
+
+
+ +
New Transaction : '.$GLOBALS['post_info'].'

+
+ + + + + + + + '; + $conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); + if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); + } + $sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' "; + $result = $conn->query($sql); + if ($result->num_rows > 0) { + while($row = $result->fetch_assoc()) { + $date1 = date_create($row["AA_DATE"]); + $date2 = date_create(date("Y/m/d")); + $diff = date_diff($date1, $date2); + if ($row["AA_ACTYPE"] == 'D'){$diff = $diff->format("%a"); $diff=(int)$diff;$due_i=$diff-$row["AA_NO_OF_PAYPAID"];} else {$diff=$diff->format("%m"); $diff=(int)$diff;$due_i=$diff-$row["AA_NO_OF_PAYPAID"];} + //$ID=$row["GC_ID"]; + echo " + + + + + + '; + } + } else {echo "Check A/C no.";}; + $conn->close(); + echo '
NamePhoneAC NoRemaining AmountInstallment
".$row["AA_NAME"]."".$row["AA_PHONE"]."".$row["AA_ACNO"]."".$row["AA_BAL"]. ' +
+ '; + if ($due_i > 0 && $_GET['type'] == "Loan") { + $due_amount = $due_i * $row["AA_INSTALLMENT"]; + $due_amount = intval($due_amount); + $fine_amount = ($due_amount * 40) / 100; + $total_amount = $row["AA_INSTALLMENT"] + $fine_amount; + $total_rec = $row["AA_INSTALLMENT"] * 1; + echo ' + + + + + + + +
+ + + Due Amount: + + Installment Amount: + + No: + + Total received: + +
+ + Fine: + + Total: + + +
'; + } else + echo' + + Amount: + + No: + + + Total: + + + '; + echo '
'; + } + + if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Recurring"){ + echo ' +
New Transaction : '.$GLOBALS['post_info'].'

+
+ + + + + + + + + '; + $conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); + if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); + } + + $sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' "; + $result = $conn->query($sql); + + if ($result->num_rows > 0) { + while($row = $result->fetch_assoc()) { + $date1 = date_create($row["AA_DATE"]); + $date2 = date_create(date("Y/m/d")); + $diff = date_diff($date1, $date2); + if ($row["AA_ACTYPE"] == 'D'){$diff = $diff->format("%a"); $diff=(int)$diff;$due_i=$diff-$row["AA_NO_OF_PAYPAID"];} else {$diff=$diff->format("%m"); $diff=(int)$diff;$due_i=$diff-$row["AA_NO_OF_PAYPAID"];} + //$ID=$row["GC_ID"]; + $CURRENT_RECURRING_BALANCE = $row["AA_BAL"]; + echo " + + + + + + + '; + } + } else {echo "Check A/C no.";}; + $conn->close(); + echo '
NamePhoneAC NoTotal DepositInstallmentReceive Amount
".$row["AA_NAME"]. "".$row["AA_PHONE"]. "".$row["AA_ACNO"]."".$row["AA_BAL"]. "".$row["AA_INSTALLMENT"]. ' +
+ '; + if ($due_i > 0 && $_GET['type'] == "Recurring") { + $due_amount = $due_i * $row["AA_INSTALLMENT"]; + $due_amount = intval($due_amount); + $fine_amount = ($due_amount * 20) / 100; + $total_amount = $row["AA_INSTALLMENT"] + $fine_amount; + $total_rec = $row["AA_INSTALLMENT"] * 1; + echo ' + + + + + + + +
+ + + Due Amount: + + Installment Amount: + + No: + + Total received: + +
+ + Fine: + + Total: + + +
'; + } else + echo ' + + Amount: + + No: + + + Total: + + + '; + echo '
'; +} +?> +connect_error) { + die("Connection failed: " . $conn->connect_error); + } + + // ✅ Check recurring balance first + $sql = "SELECT AA_BAL FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("s", $accountId); + $stmt->execute(); + $stmt->bind_result($CURRENT_RECURRING_BALANCE); + $stmt->fetch(); + $stmt->close(); + + if ($loanEMIAmount > $CURRENT_RECURRING_BALANCE) { + echo "
+ Error! Insufficient balance in Recurring account. + × +
"; + + exit; + } + + // ✅ Begin transaction for atomicity + $conn->begin_transaction(); + + try { + $table = $GLOBALS['arif_tran'] ?? 'arif_tran'; + $userType = 'admin'; + + // Entry 1: Deduction from recurring + $remarksText1 = "₹$loanEMIAmount deducted from Recurring for Loan A/c $paidToLoanAccountNumber EMI"; + $stmt = $conn->prepare("INSERT INTO `$table` (AT_ADMIN, AT_ACID, AT_AMOUNT, REMARKS) VALUES (?, ?, ?, ?)"); + $stmt->bind_param("ssds", $userType, $accountId, $deductAmount, $remarksText1); + $stmt->execute(); + $stmt->close(); + + // Entry 2: Credit to loan account + $remarksText2 = "₹$loanEMIAmount credited to Loan A/c $paidToLoanAccountNumber EMI (from Recurring $accountId)"; + $stmt = $conn->prepare("INSERT INTO `$table` (AT_ADMIN, AT_ACID, AT_AMOUNT, REMARKS) VALUES (?, ?, ?, ?)"); + $stmt->bind_param("ssds", $userType, $paidToLoanAccountNumber, $loanEMIAmount, $remarksText2); + $stmt->execute(); + $stmt->close(); + + // Update Loan Account + $ins_no = 1; + $sql = "UPDATE `" . $GLOBALS['arif_ac'] . "` SET `AA_BAL` = `AA_BAL` + ?, `AA_NO_OF_PAYPAID` = `AA_NO_OF_PAYPAID` + ? WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("dis", $loanEMIAmount, $ins_no, $paidToLoanAccountNumber); + $stmt->execute(); + $stmt->close(); + + // Update Recurring Account + $sql = "UPDATE `" . $GLOBALS['arif_ac'] . "` SET `AA_BAL` = `AA_BAL` - ? WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("ds", $loanEMIAmount, $accountId); + $stmt->execute(); + $stmt->close(); + + // ✅ Commit if everything ok + $conn->commit(); + + echo "
+ Success! Loan EMI paid successfully! + × +
"; + + + } catch (Exception $e) { + $conn->rollback(); + echo "Error processing EMI payment: " . $e->getMessage(); + } + + $conn->close(); + } +} +?> + + +
+

Pay Loan EMI from Recurring balance

+
+ + +
+ + + +
+ + + +
+
+
+
Past Transactions::::
+
+
+ +
+

+
+ + + + + + + + + + + '; + $conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']); + if ($conn->connect_error) die("Connection failed: " . $conn->connect_error); + // $sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."'"; + $sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."' ORDER BY `".$GLOBALS['arif_tran']."`.`AT_ID` DESC"; + $result = $conn->query($sql); + $rowcount=mysqli_num_rows($result);//$rowcount++; + if ($result->num_rows > 0) { + while($row = $result->fetch_assoc()) { + //$ID=$row["GC_ID"]; + $kolkataTime = date("d M Y, h:i A", strtotime($row["AT_TIMESTAMP"] . " +5 hours 30 minutes")); + echo " + + + + + + + + "; + $rowcount--; + } + } else echo "No Past record Found"; + mysqli_free_result($result);$conn->close(); + echo '
SLTr NoTimeStampUserA/C NoAmount
".$rowcount. "".$row["AT_ID"]. "".$kolkataTime. "".$row["AT_ADMIN"]. "".$row["AT_ACID"]. "".$row["AT_AMOUNT"]. "
'; +} +?> + + + + + \ No newline at end of file diff --git a/CONTENT/ROOT_URI/exe/deduct-from-recurring/index.php b/CONTENT/ROOT_URI/exe/deduct-from-recurring/index.php new file mode 100644 index 0000000..156f536 --- /dev/null +++ b/CONTENT/ROOT_URI/exe/deduct-from-recurring/index.php @@ -0,0 +1,95 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); + } + + // ✅ Check recurring balance first + $sql = "SELECT AA_BAL FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("s", $accountId); + $stmt->execute(); + $stmt->bind_result($CURRENT_RECURRING_BALANCE); + $stmt->fetch(); + $stmt->close(); + + if ($loanEMIAmount > $CURRENT_RECURRING_BALANCE) { + echo "
+ Error! Insufficient balance in Recurring account. + × +
"; + + exit; + } + + // ✅ Begin transaction for atomicity + $conn->begin_transaction(); + + try { + $table = $GLOBALS['arif_tran'] ?? 'arif_tran'; + $userType = 'admin'; + + // Entry 1: Deduction from recurring + $remarksText1 = "₹$loanEMIAmount deducted from Recurring for Loan A/c $paidToLoanAccountNumber EMI"; + $stmt = $conn->prepare("INSERT INTO `$table` (AT_ADMIN, AT_ACID, AT_AMOUNT, REMARKS) VALUES (?, ?, ?, ?)"); + $stmt->bind_param("ssds", $userType, $accountId, $deductAmount, $remarksText1); + $stmt->execute(); + $stmt->close(); + + // Entry 2: Credit to loan account + $remarksText2 = "₹$loanEMIAmount credited to Loan A/c $paidToLoanAccountNumber EMI (from Recurring $accountId)"; + $stmt = $conn->prepare("INSERT INTO `$table` (AT_ADMIN, AT_ACID, AT_AMOUNT, REMARKS) VALUES (?, ?, ?, ?)"); + $stmt->bind_param("ssds", $userType, $paidToLoanAccountNumber, $loanEMIAmount, $remarksText2); + $stmt->execute(); + $stmt->close(); + + // Update Loan Account + $ins_no = 1; + $sql = "UPDATE `" . $GLOBALS['arif_ac'] . "` SET `AA_BAL` = `AA_BAL` + ?, `AA_NO_OF_PAYPAID` = `AA_NO_OF_PAYPAID` + ? WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("dis", $loanEMIAmount, $ins_no, $paidToLoanAccountNumber); + $stmt->execute(); + $stmt->close(); + + // Update Recurring Account + $sql = "UPDATE `" . $GLOBALS['arif_ac'] . "` SET `AA_BAL` = `AA_BAL` - ? WHERE `AA_ACNO` = ?"; + $stmt = $conn->prepare($sql); + $stmt->bind_param("ds", $loanEMIAmount, $accountId); + $stmt->execute(); + $stmt->close(); + + // ✅ Commit if everything ok + $conn->commit(); + + echo "
+ Success! Loan EMI paid successfully! + × +
"; + + + } catch (Exception $e) { + $conn->rollback(); + echo "Error processing EMI payment: " . $e->getMessage(); + } + + $conn->close(); + } +} +?> \ No newline at end of file diff --git a/pma/tmp/twig/94/941b8ec1b12113606316397044670a4e.php b/pma/tmp/twig/94/941b8ec1b12113606316397044670a4e.php new file mode 100644 index 0000000..5f3fd06 --- /dev/null +++ b/pma/tmp/twig/94/941b8ec1b12113606316397044670a4e.php @@ -0,0 +1,502 @@ +source = $this->getSourceContext(); + + $this->parent = false; + + $this->blocks = [ + ]; + } + + protected function doDisplay(array $context, array $blocks = []) + { + $macros = $this->macros; + // line 1 + $context["partition_options"] = [0 => "", 1 => "HASH", 2 => "LINEAR HASH", 3 => "KEY", 4 => "LINEAR KEY", 5 => "RANGE", 6 => "RANGE COLUMNS", 7 => "LIST", 8 => "LIST COLUMNS"]; + // line 12 + $context["sub_partition_options"] = [0 => "", 1 => "HASH", 2 => "LINEAR HASH", 3 => "KEY", 4 => "LINEAR KEY"]; + // line 13 + $context["value_type_options"] = [0 => "", 1 => "LESS THAN", 2 => "LESS THAN MAXVALUE", 3 => "IN"]; + // line 14 + echo " + + + + + + + + + + + "; + // line 43 + if ((($__internal_compile_4 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["can_have_subpartitions"] ?? null) : null)) { + // line 44 + echo " + + + + + + + + + "; + } + // line 72 + echo "
+ + + (env, (($__internal_compile_1 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["partition_expr"] ?? null) : null), "html", null, true); + echo "\">) +
+ env, (($__internal_compile_3 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["partition_count"] ?? null) : null), "html", null, true))) : (print (""))); + echo "\"> +
+ + + (env, (($__internal_compile_6 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["subpartition_expr"] ?? null) : null), "html", null, true); + echo "\">) +
+ env, (($__internal_compile_8 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["subpartition_count"] ?? null) : null), "html", null, true))) : (print (""))); + echo "\"> +
+"; + // line 73 + if (((($__internal_compile_9 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["partition_count"] ?? null) : null) > 1)) { + // line 74 + echo " + + + "; + // line 77 + if ((($__internal_compile_10 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["value_enabled"] ?? null) : null)) { + // line 78 + echo " + "; + } + // line 80 + echo " "; + if (((($__internal_compile_11 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["can_have_subpartitions"] ?? null) : null) && ((($__internal_compile_12 = // line 81 +($context["partition_details"] ?? null)) && is_array($__internal_compile_12) || $__internal_compile_12 instanceof ArrayAccess ? ($__internal_compile_12["subpartition_count"] ?? null) : null) > 1))) { + // line 82 + echo " + "; + } + // line 84 + echo " + + + + + + + + + "; + // line 93 + $context['_parent'] = $context; + $context['_seq'] = twig_ensure_traversable((($__internal_compile_13 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_13) || $__internal_compile_13 instanceof ArrayAccess ? ($__internal_compile_13["partitions"] ?? null) : null)); + foreach ($context['_seq'] as $context["_key"] => $context["partition"]) { + // line 94 + echo " "; + $context["rowspan"] = (( !twig_test_empty((($__internal_compile_14 = $context["partition"]) && is_array($__internal_compile_14) || $__internal_compile_14 instanceof ArrayAccess ? ($__internal_compile_14["subpartition_count"] ?? null) : null))) ? (((($__internal_compile_15 = // line 95 +$context["partition"]) && is_array($__internal_compile_15) || $__internal_compile_15 instanceof ArrayAccess ? ($__internal_compile_15["subpartition_count"] ?? null) : null) + 1)) : (2)); + // line 96 + echo " + + "; + // line 101 + if ((($__internal_compile_18 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_18) || $__internal_compile_18 instanceof ArrayAccess ? ($__internal_compile_18["value_enabled"] ?? null) : null)) { + // line 102 + echo " + "; + } + // line 119 + echo " + + "; + // line 121 + if (twig_get_attribute($this->env, $this->source, $context["partition"], "subpartitions", [], "array", true, true, false, 121)) { + // line 122 + echo " "; + $context["subpartitions"] = (($__internal_compile_23 = $context["partition"]) && is_array($__internal_compile_23) || $__internal_compile_23 instanceof ArrayAccess ? ($__internal_compile_23["subpartitions"] ?? null) : null); + // line 123 + echo " "; + } else { + // line 124 + echo " "; + $context["subpartitions"] = [0 => $context["partition"]]; + // line 125 + echo " "; + } + // line 126 + echo " + "; + // line 127 + $context['_parent'] = $context; + $context['_seq'] = twig_ensure_traversable(($context["subpartitions"] ?? null)); + foreach ($context['_seq'] as $context["_key"] => $context["subpartition"]) { + // line 128 + echo " + "; + // line 129 + if (((($__internal_compile_24 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_24) || $__internal_compile_24 instanceof ArrayAccess ? ($__internal_compile_24["can_have_subpartitions"] ?? null) : null) && ((($__internal_compile_25 = // line 130 +($context["partition_details"] ?? null)) && is_array($__internal_compile_25) || $__internal_compile_25 instanceof ArrayAccess ? ($__internal_compile_25["subpartition_count"] ?? null) : null) > 1))) { + // line 131 + echo " + "; + } + // line 136 + echo " + + + + + + + + + "; + } + $_parent = $context['_parent']; + unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subpartition'], $context['_parent'], $context['loop']); + $context = array_intersect_key($context, $_parent) + $_parent; + // line 178 + echo " "; + } + $_parent = $context['_parent']; + unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partition'], $context['_parent'], $context['loop']); + $context = array_intersect_key($context, $_parent) + $_parent; + // line 179 + echo "
"; +echo _gettext("Partition"); + // line 76 + echo ""; +echo _gettext("Values"); + echo ""; +echo _gettext("Subpartition"); + echo ""; +echo _gettext("Engine"); + echo ""; +echo _gettext("Comment"); + // line 85 + echo ""; +echo _gettext("Data directory"); + // line 86 + echo ""; +echo _gettext("Index directory"); + // line 87 + echo ""; +echo _gettext("Max rows"); + // line 88 + echo ""; +echo _gettext("Min rows"); + // line 89 + echo ""; +echo _gettext("Table space"); + // line 90 + echo ""; +echo _gettext("Node group"); + // line 91 + echo "
env, ($context["rowspan"] ?? null), "html", null, true); + echo "\"> + env, (($__internal_compile_16 = $context["partition"]) && is_array($__internal_compile_16) || $__internal_compile_16 instanceof ArrayAccess ? ($__internal_compile_16["prefix"] ?? null) : null), "html", null, true); + echo "[name]\" + value=\""; + // line 99 + echo twig_escape_filter($this->env, (($__internal_compile_17 = $context["partition"]) && is_array($__internal_compile_17) || $__internal_compile_17 instanceof ArrayAccess ? ($__internal_compile_17["name"] ?? null) : null), "html", null, true); + echo "\"> + env, ($context["rowspan"] ?? null), "html", null, true); + echo "\" class=\"align-middle\"> + + env, (($__internal_compile_21 = $context["partition"]) && is_array($__internal_compile_21) || $__internal_compile_21 instanceof ArrayAccess ? ($__internal_compile_21["prefix"] ?? null) : null), "html", null, true); + echo "[value]\" + value=\""; + // line 116 + echo twig_escape_filter($this->env, (($__internal_compile_22 = $context["partition"]) && is_array($__internal_compile_22) || $__internal_compile_22 instanceof ArrayAccess ? ($__internal_compile_22["value"] ?? null) : null), "html", null, true); + echo "\"> +
+ env, (($__internal_compile_26 = $context["subpartition"]) && is_array($__internal_compile_26) || $__internal_compile_26 instanceof ArrayAccess ? ($__internal_compile_26["prefix"] ?? null) : null), "html", null, true); + echo "[name]\" + value=\""; + // line 133 + echo twig_escape_filter($this->env, (($__internal_compile_27 = $context["subpartition"]) && is_array($__internal_compile_27) || $__internal_compile_27 instanceof ArrayAccess ? ($__internal_compile_27["name"] ?? null) : null), "html", null, true); + echo "\"> + + + + + + env, (($__internal_compile_32 = $context["subpartition"]) && is_array($__internal_compile_32) || $__internal_compile_32 instanceof ArrayAccess ? ($__internal_compile_32["prefix"] ?? null) : null), "html", null, true); + echo "[data_directory]\" + value=\""; + // line 154 + echo twig_escape_filter($this->env, (($__internal_compile_33 = $context["subpartition"]) && is_array($__internal_compile_33) || $__internal_compile_33 instanceof ArrayAccess ? ($__internal_compile_33["data_directory"] ?? null) : null), "html", null, true); + echo "\"> + + env, (($__internal_compile_34 = $context["subpartition"]) && is_array($__internal_compile_34) || $__internal_compile_34 instanceof ArrayAccess ? ($__internal_compile_34["prefix"] ?? null) : null), "html", null, true); + echo "[index_directory]\" + value=\""; + // line 158 + echo twig_escape_filter($this->env, (($__internal_compile_35 = $context["subpartition"]) && is_array($__internal_compile_35) || $__internal_compile_35 instanceof ArrayAccess ? ($__internal_compile_35["index_directory"] ?? null) : null), "html", null, true); + echo "\"> + + env, (($__internal_compile_36 = $context["subpartition"]) && is_array($__internal_compile_36) || $__internal_compile_36 instanceof ArrayAccess ? ($__internal_compile_36["prefix"] ?? null) : null), "html", null, true); + echo "[max_rows]\" + value=\""; + // line 162 + echo twig_escape_filter($this->env, (($__internal_compile_37 = $context["subpartition"]) && is_array($__internal_compile_37) || $__internal_compile_37 instanceof ArrayAccess ? ($__internal_compile_37["max_rows"] ?? null) : null), "html", null, true); + echo "\"> + + env, (($__internal_compile_38 = $context["subpartition"]) && is_array($__internal_compile_38) || $__internal_compile_38 instanceof ArrayAccess ? ($__internal_compile_38["prefix"] ?? null) : null), "html", null, true); + echo "[min_rows]\" + value=\""; + // line 166 + echo twig_escape_filter($this->env, (($__internal_compile_39 = $context["subpartition"]) && is_array($__internal_compile_39) || $__internal_compile_39 instanceof ArrayAccess ? ($__internal_compile_39["min_rows"] ?? null) : null), "html", null, true); + echo "\"> + + env, (($__internal_compile_40 = $context["subpartition"]) && is_array($__internal_compile_40) || $__internal_compile_40 instanceof ArrayAccess ? ($__internal_compile_40["prefix"] ?? null) : null), "html", null, true); + echo "[tablespace]\" + value=\""; + // line 170 + echo twig_escape_filter($this->env, (($__internal_compile_41 = $context["subpartition"]) && is_array($__internal_compile_41) || $__internal_compile_41 instanceof ArrayAccess ? ($__internal_compile_41["tablespace"] ?? null) : null), "html", null, true); + echo "\"> + + env, (($__internal_compile_42 = $context["subpartition"]) && is_array($__internal_compile_42) || $__internal_compile_42 instanceof ArrayAccess ? ($__internal_compile_42["prefix"] ?? null) : null), "html", null, true); + echo "[node_group]\" + value=\""; + // line 174 + echo twig_escape_filter($this->env, (($__internal_compile_43 = $context["subpartition"]) && is_array($__internal_compile_43) || $__internal_compile_43 instanceof ArrayAccess ? ($__internal_compile_43["node_group"] ?? null) : null), "html", null, true); + echo "\"> +
+"; + } + } + + public function getTemplateName() + { + return "columns_definitions/partitions.twig"; + } + + public function isTraitable() + { + return false; + } + + public function getDebugInfo() + { + return array ( 478 => 179, 472 => 178, 462 => 174, 458 => 173, 452 => 170, 448 => 169, 442 => 166, 438 => 165, 432 => 162, 428 => 161, 422 => 158, 418 => 157, 412 => 154, 408 => 153, 403 => 150, 401 => 149, 398 => 148, 393 => 145, 386 => 143, 384 => 142, 381 => 141, 372 => 140, 368 => 139, 361 => 137, 358 => 136, 352 => 133, 348 => 132, 345 => 131, 343 => 130, 342 => 129, 339 => 128, 335 => 127, 332 => 126, 329 => 125, 326 => 124, 323 => 123, 320 => 122, 318 => 121, 314 => 119, 308 => 116, 304 => 115, 300 => 113, 291 => 110, 288 => 109, 285 => 108, 283 => 107, 279 => 106, 275 => 105, 271 => 104, 265 => 102, 263 => 101, 258 => 99, 254 => 98, 250 => 97, 247 => 96, 245 => 95, 243 => 94, 239 => 93, 235 => 91, 231 => 90, 227 => 89, 223 => 88, 219 => 87, 215 => 86, 211 => 85, 205 => 84, 199 => 82, 197 => 81, 195 => 80, 189 => 78, 187 => 77, 184 => 76, 179 => 74, 177 => 73, 174 => 72, 167 => 68, 162 => 65, 154 => 61, 151 => 60, 144 => 56, 135 => 53, 132 => 52, 129 => 51, 127 => 50, 123 => 49, 119 => 48, 114 => 45, 110 => 44, 108 => 43, 102 => 40, 97 => 37, 89 => 33, 86 => 32, 79 => 28, 70 => 25, 67 => 24, 64 => 23, 62 => 22, 58 => 21, 54 => 20, 49 => 17, 43 => 14, 41 => 13, 39 => 12, 37 => 1,); + } + + public function getSourceContext() + { + return new Source("", "columns_definitions/partitions.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/partitions.twig"); + } +} diff --git a/pma/tmp/twig/db/db787b0020cc11018f7017ab2c0a98df.php b/pma/tmp/twig/db/db787b0020cc11018f7017ab2c0a98df.php new file mode 100644 index 0000000..5959041 --- /dev/null +++ b/pma/tmp/twig/db/db787b0020cc11018f7017ab2c0a98df.php @@ -0,0 +1,81 @@ +source = $this->getSourceContext(); + + $this->parent = false; + + $this->blocks = [ + ]; + } + + protected function doDisplay(array $context, array $blocks = []) + { + $macros = $this->macros; + // line 1 + echo " +"; + } + + public function getTemplateName() + { + return "sql/enum_column_dropdown.twig"; + } + + public function isTraitable() + { + return false; + } + + public function getDebugInfo() + { + return array ( 58 => 6, 45 => 4, 41 => 3, 37 => 1,); + } + + public function getSourceContext() + { + return new Source("", "sql/enum_column_dropdown.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/sql/enum_column_dropdown.twig"); + } +} diff --git a/pma/tmp/twig/fc/fc3553e470af84c1eb11e81ceec027fb.php b/pma/tmp/twig/fc/fc3553e470af84c1eb11e81ceec027fb.php new file mode 100644 index 0000000..42d77f4 --- /dev/null +++ b/pma/tmp/twig/fc/fc3553e470af84c1eb11e81ceec027fb.php @@ -0,0 +1,517 @@ +source = $this->getSourceContext(); + + $this->parent = false; + + $this->blocks = [ + ]; + } + + protected function doDisplay(array $context, array $blocks = []) + { + $macros = $this->macros; + // line 1 + echo "
+ + "; + // line 7 + echo PhpMyAdmin\Url::getHiddenInputs(($context["form_params"] ?? null)); + echo " + "; + // line 8 + if (($context["is_from_nav"] ?? null)) { + // line 9 + echo " + "; + } + // line 11 + echo " +
+
+
+
+ + + +
+ + env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getName", [], "method", false, false, false, 29), "html", null, true); + echo "\" + onfocus=\"this.select()\"> +
+ +
+
+ + + +
+ + +
+ + "; + // line 54 + if ((($context["default_sliders_state"] ?? null) != "disabled")) { + // line 55 + echo "
+ +
+
+ "; + } + // line 62 + echo " +
+
+ + + +
+ + env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getKeyBlockSize", [], "method", false, false, false, 76), "html", null, true); + echo "\"> +
+ +
+ +
+ + + +
+ + +
+ +
+
+ + + +
+ + env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getParser", [], "method", false, false, false, 110), "html", null, true); + echo "\"> +
+ +
+
+ + + +
+ + env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getComment", [], "method", false, false, false, 127), "html", null, true); + echo "\"> +
+ + "; + // line 130 + if ((($context["default_sliders_state"] ?? null) != "disabled")) { + // line 131 + echo "
+ "; + } + // line 133 + echo " +
+ + + + + + + + + + "; + // line 148 + $context["spatial_types"] = [0 => "geometry", 1 => "point", 2 => "linestring", 3 => "polygon", 4 => "multipoint", 5 => "multilinestring", 6 => "multipolygon", 7 => "geomtrycollection"]; + // line 158 + echo " + "; + // line 159 + $context['_parent'] = $context; + $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getColumns", [], "method", false, false, false, 159)); + foreach ($context['_seq'] as $context["_key"] => $context["column"]) { + // line 160 + echo " + + + + + "; + } + $_parent = $context['_parent']; + unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']); + $context = array_intersect_key($context, $_parent) + $_parent; + // line 195 + echo " "; + if ((($context["add_fields"] ?? null) > 0)) { + // line 196 + echo " "; + $context['_parent'] = $context; + $context['_seq'] = twig_ensure_traversable(range(1, ($context["add_fields"] ?? null))); + foreach ($context['_seq'] as $context["_key"] => $context["i"]) { + // line 197 + echo " + + + + + "; + } + $_parent = $context['_parent']; + unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); + $context = array_intersect_key($context, $_parent) + $_parent; + // line 228 + echo " "; + } + // line 229 + echo " +
+ "; +echo _gettext("Column"); + // line 142 + echo " + "; +echo _gettext("Size"); + // line 145 + echo "
+ + + + + env, $this->source, // line 190 +($context["index"] ?? null), "getChoice", [], "method", false, false, false, 190) != "SPATIAL")) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, // line 191 +$context["column"], "getSubPart", [], "method", false, false, false, 191), "html", null, true))) : (print (""))); + echo "\"> +
+ + + + + +
+
+ +
+
+ env, twig_sprintf(_gettext("Add %s column(s) to index"), 1), "html", null, true); + echo "\"> +
+
+
+
+ "; + // line 243 + if ( !($context["create_edit_table"] ?? null)) { + // line 244 + echo "
+ + +
"; + } + // line 249 + echo "
+"; + // line 250 + if (($context["is_from_nav"] ?? null)) { + // line 251 + echo " "; + echo twig_include($this->env, $context, "modals/preview_sql_modal.twig"); + echo " +"; + } + } + + public function getTemplateName() + { + return "table/index_form.twig"; + } + + public function isTraitable() + { + return false; + } + + public function getDebugInfo() + { + return array ( 491 => 251, 489 => 250, 486 => 249, 482 => 246, 478 => 245, 474 => 244, 472 => 243, 464 => 237, 454 => 229, 451 => 228, 435 => 217, 424 => 214, 420 => 213, 417 => 212, 415 => 211, 412 => 210, 409 => 209, 406 => 208, 403 => 207, 400 => 206, 395 => 205, 393 => 204, 390 => 203, 383 => 199, 378 => 197, 373 => 196, 370 => 195, 360 => 191, 359 => 190, 358 => 191, 349 => 183, 343 => 182, 335 => 179, 332 => 178, 329 => 177, 327 => 176, 324 => 175, 321 => 174, 319 => 173, 318 => 172, 317 => 171, 315 => 170, 311 => 169, 307 => 167, 299 => 162, 294 => 160, 290 => 159, 287 => 158, 285 => 148, 280 => 145, 275 => 142, 264 => 133, 260 => 131, 258 => 130, 252 => 127, 241 => 118, 230 => 110, 220 => 102, 210 => 94, 197 => 92, 193 => 91, 183 => 85, 171 => 76, 161 => 68, 153 => 62, 148 => 60, 144 => 58, 139 => 56, 136 => 55, 134 => 54, 127 => 50, 123 => 49, 119 => 48, 114 => 47, 108 => 45, 106 => 44, 102 => 43, 93 => 38, 81 => 29, 67 => 19, 57 => 11, 53 => 9, 51 => 8, 47 => 7, 37 => 1,); + } + + public function getSourceContext() + { + return new Source("", "table/index_form.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/index_form.twig"); + } +}