This commit is contained in:
ns77@siliconpin.com
2025-08-23 12:15:09 +00:00
parent ff31e61bf5
commit 3e9f90dbbe
27 changed files with 5686 additions and 214 deletions

View File

@@ -64,11 +64,14 @@ require_login();
<li><a href="/Admin/Add_group">Add New Group</a></li>
<li><a href="/Admin/View_AC?Type=Recurring">View A/C</a></li>
<li><a href="/Admin/Trans_New">Transaction</a></li>
<li><a href="/Admin/Due">Deemand Sheet</a></li>
<li><a href="/Admin/Report">Report</a></li>
<li><a href="/Admin/Due">Due</a></li>
<li><a href="/Admin/Revert">Revert</a></li>
<!-- <li><a href="/Admin/Revert">Revert</a></li> -->
<?php
if($_SESSION['type'] === 'admin'){ ?>
<li><a href="/Admin/agent_View_report">Commission</a></li>
<li><a href="/Admin/Settings_Agent">Agent Settings</a></li>
<?php } ?>
</ul>
<ul class="nav navbar-nav navbar-right">

View File

@@ -1,75 +1,120 @@
<div class="container">
<div class="text-right mb-3" style="margin-bottom: 15px;">
<button id="downloadPdf" class="btn btn-primary">Download Deemand Sheet</button>
<button id="downloadPdf" class="btn btn-primary">Download Demand Sheet</button>
</div>
<table class="table table-striped table-bordered table-hover table-responsive">
<tr>
<th>SL</th>
<th>Type</th>
<th>AC No</th>
<th>Name</th>
<th>Mobile</th>
<th>Account Creation Date</th>
<th>Maturity Value</th>
<th>Balance</th>
<th>No Of Installment</th>
<th>No Of Paid Installment</th>
<th>Installment Amount</th>
<th>Total Due Amount</th>
</tr>
<?php
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }
$agent_id = $_SESSION['user_id'];
$types = ['Loan', 'Recurring'];
$pdfData = [];
$sl = 1;
// Grand total for PDF
$grandTotal = [
'accounts' => 0,
'paidInstallments' => 0,
'dueInstallments' => 0,
'dueAmount' => 0
];
foreach($types as $type){
$typeLike = "%$type%";
if($_SESSION['type']==='admin'){
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_BAL` < 0 ORDER BY `AA_ID` DESC";
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_TYPE` LIKE ? AND (`STATUS` IS NULL OR `STATUS`!='closed') ORDER BY `AA_ID` DESC";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $typeLike);
} elseif($_SESSION['type']==='agent'){
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_BAL` < 0 AND `AA_AGENT` = ? ORDER BY `AA_ID` DESC";
$sql = "SELECT * FROM `" . $GLOBALS['arif_ac'] . "` WHERE `AA_TYPE` LIKE ? AND (`STATUS` IS NULL OR `STATUS`!='closed') AND `AA_AGENT`=? ORDER BY `AA_ID` DESC";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $agent_id);
$stmt->bind_param("ss", $typeLike, $agent_id);
}
$stmt->execute();
$result = $stmt->get_result();
$pdfData = [];
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
//$ID=$row["GC_ID"];
$tt = $row["AA_ID"] - 10;
echo "
<tr>
<td>" . $tt . "</td>
<td>" . $row["AA_ACTYPE"] . "," . $row["AA_TYPE"] . "</td>
<td><a href='./Details?no=" . $row["AA_ACNO"] . "&type=" . $row["AA_TYPE"] . "'>" . $row["AA_ACNO"] . "</a> &nbsp;&nbsp; <a href='./Trans_New?no=" . $row["AA_ACNO"] . "&type=" . $row["AA_TYPE"] . "'>Transact</a></td>
<td>" . $row["AA_NAME"] . "</td>
<td>" . $row["AA_DATE"] . "</td>
<td>" . $row["AA_MATURE_VALUE"] . "</td>
<td>" . $row["AA_BAL"] . "</td>
<td>" . $row["AA_NO_OF_PAYMENT"] . "</td>
<td>" . $row["AA_NO_OF_PAYPAID"] . "</td>
<td>" . $row["AA_INSTALLMENT"] . "</td>
</tr>";
$pdfData[] = [
$tt,
$row["AA_ACTYPE"] . "," . $row["AA_TYPE"],
$row["AA_ACNO"],
$row["AA_NAME"],
$row["AA_DATE"],
$row["AA_MATURE_VALUE"],
$row["AA_BAL"],
$row["AA_NO_OF_PAYMENT"],
$row["AA_NO_OF_PAYPAID"],
$row["AA_INSTALLMENT"]
];
}
} else {
echo "0 results";
};
$conn->close();
?>
if($result->num_rows>0){
echo "<tr><td colspan='11' style='text-align:center; font-weight:bold; background:#f0f0f0;'>$type Demand</td></tr>";
while($row = $result->fetch_assoc()){
$totalDueAmt = $row['AA_BAL'];
if ($row['AA_INSTALLMENT'] > 0) {
$paidInst = ($row['AA_MATURE_VALUE'] + $row['AA_BAL']) / $row['AA_INSTALLMENT'];
$paidInst = number_format($paidInst, 2);
$remainInst = abs($row['AA_BAL']) / $row['AA_INSTALLMENT'];
$remainInst = number_format($remainInst, 2);
} else {
$paidInst = 0; // বা অন্য লজিক
$remainInst = 0;
}
// echo $row['AA_BAL'] . ' : ' . $row['AA_INSTALLMENT'];
// HTML table row
echo "<tr>
<td>".$sl."</td>
<td>".$row['AA_TYPE']."</td>
<td>".$row['AA_ACNO']."</td>
<td>".$row['AA_NAME']."</td>
<td>".$row['AA_PHONE']."</td>
<td>".$row['AA_DATE']."</td>
<td>".$row['AA_MATURE_VALUE']."</td>
<td>".$row['AA_BAL']."</td>
<td>".$remainInst."</td>
<td>".$paidInst."</td>
<td>".$row['AA_INSTALLMENT']."</td>
<td>".$totalDueAmt."</td>
</tr>";
// PDF simplified row
$pdfData[] = [
$type,
$sl,
$row['AA_NAME'], // NAME OF ACCOUNT HOLDER
$row['AA_PHONE'], // MOBILE NO (blank)
$row['AA_ACNO'], // ACCOUNT NO
$paidInst, // NO OF INSTALLMENT PAID
$remainInst, // NO OF INSTALLMENT DUE
$row['AA_INSTALLMENT'], // EMI AMOUNT
$totalDueAmt, // TOTAL DUE AMOUNT
"" // CUSTOMER SIGNATURE
];
// Update grand total
$grandTotal['accounts']++;
$grandTotal['paidInstallments'] += $paidInst;
$grandTotal['dueInstallments'] += $remainInst;
$grandTotal['dueAmount'] += $totalDueAmt;
$sl++;
// echo $dueInst . '<br>';
}
}
}
$conn->close();
?>
</table>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.28/jspdf.plugin.autotable.min.js"></script>
@@ -80,81 +125,91 @@ document.addEventListener('DOMContentLoaded', function() {
const doc = new jsPDF('p', 'pt', 'a4');
const userType = "<?php echo $_SESSION['type']; ?>";
const userName = "<?php echo $_SESSION['user_id']; ?>";
const userName = "<?php echo $_SESSION['name']; ?>";
const now = new Date();
const dateTime = now.toLocaleDateString() + " " + now.toLocaleTimeString();
const titleText = "Grafin Ventures Demand Sheet";
let titleText = (userType === 'admin')
? "Full Demand Sheet"
: `Agent Demand Sheet (Agent ID: ${userName})`;
const tableData = <?php echo json_encode($pdfData); ?>;
function formatCurrency(value) {
// Remove commas, currency symbols, spaces
let cleaned = String(value).replace(/[₹,\s]/g, '');
// Ensure minus sign stays
let num = parseFloat(cleaned) || 0;
// Format with Indian locale
return (num < 0 ? '-' : '') + '₹' + Math.abs(num).toLocaleString('en-IN', {
minimumFractionDigits: 2,
maximumFractionDigits: 2
});
}
const pdfData = <?php echo json_encode($pdfData); ?>;
const grandTotal = <?php echo json_encode($grandTotal); ?>;
const logo = new Image();
logo.src = '/asset/images/logo.webp';
logo.onload = function() { addHeader(); };
logo.onerror = function() { addHeader(); };
logo.onload = () => addHeader();
logo.onerror = () => addHeader();
function addHeader(){
try { doc.addImage(logo, 'PNG', 40, 30, 40, 40); } catch(e) {}
doc.setFontSize(16);
doc.text(titleText, 100, 50);
doc.setFontSize(10);
doc.text(`Generated on: ${dateTime}`, 40, 80);
doc.text(`User Type: ${userType}`, 40, 95);
doc.text(`User ID: ${userName}`, 40, 110);
addTable();
}
doc.text(`Agen Name: ${userName}`, 40, 110);
function addTable() {
const headers = ["SL", "Type", "AC No", "Name", "Creation Date", "Maturity Value", "Balance", "Inst.", "Paid", "Amount"];
let y = 130;
let totalBalance = 0, totalInstallment = 0;
const rows = tableData.map(r => {
totalBalance += parseFloat(r[6]) || 0;
totalInstallment += parseFloat(r[9]) || 0;
return [
r[0], r[1], r[2], r[3], r[4],
r[5], r[6],
r[7], r[8],
r[9]
];
});
const headers = ["SL","NAME ","MOBILE NO","ACCOUNT NO","EMI PAID","EMI DUE", "EMI AMOUNT", "TOTAL DUE AMOUNT","CUSTOMER. SIGN"];
let currentType = '';
let rows = [];
pdfData.forEach(row=>{
if(row[0] !== currentType){
if(rows.length>0){
doc.autoTable({
head:[headers],
body:rows,
startY: 130,
startY:y,
styles:{
fontSize: 8,
cellPadding: { top: 6, right: 5, bottom: 6, left: 5 }, // custom padding
overflow: 'hidden'
fontSize:7,
cellPadding:6,
lineWidth: 0.1, // border width
lineColor: [0, 0, 0] // black border color
},
headStyles: { fillColor: [233, 84, 32], textColor: 255 },
bodyStyles: { valign: 'middle' } // vertically center align
headStyles:{ fillColor: false, textColor: 0 },
bodyStyles:{ valign:'middle', fillColor: false },
alternateRowStyles: { fillColor: false },
columnStyles: { 1: { cellWidth: 110 } }
});
y = doc.lastAutoTable.finalY + 10;
rows=[];
}
currentType = row[0];
doc.setFont(undefined,'bold');
doc.text(`${currentType} Demand`,40,y);
y+=15;
doc.setFont(undefined,'normal');
}
rows.push(row.slice(1));
});
// let finalY = doc.lastAutoTable.finalY + 20;
// doc.setFont(undefined, 'bold');
// doc.text(`Total Accounts: ${rows.length}`, 40, finalY);
// doc.text(`Total Balance: ${totalBalance}`, 40, finalY + 15);
// doc.text(`Total Installment Amount: ${totalInstallment}`, 40, finalY + 30);
if(rows.length>0){
doc.autoTable({
head:[headers],
body:rows,
startY:y,
styles:{
fontSize:7,
cellPadding:6,
lineWidth: 0.1, // border width
lineColor: [0, 0, 0] // black border color
},
headStyles:{ fillColor: false, textColor: 0 },
bodyStyles:{ valign:'middle', fillColor: false },
alternateRowStyles: { fillColor: false },
columnStyles: { 1: { cellWidth: 110 } }
});
y = doc.lastAutoTable.finalY + 20;
}
// Grand Total
doc.setFont(undefined,'bold');
doc.text(`Grand Total Accounts: ${grandTotal.accounts}`,40,y);
doc.text(`Grand Total Paid Installments: ${grandTotal.paidInstallments}`,40,y+15);
doc.text(`Grand Total Due Installments: ${grandTotal.dueInstallments}`,40,y+30);
doc.text(`Grand Total Due Amount: ${grandTotal.dueAmount.toLocaleString('en-IN',{minimumFractionDigits:2, maximumFractionDigits:2})}`,40,y+45);
// Footer with page numbers
const pageCount = doc.internal.getNumberOfPages();
for(let i=1;i<=pageCount;i++){
doc.setPage(i);

View File

@@ -1,102 +1,216 @@
<div class="container">
<table>
<!-- <tr>
<td>
<form>
<input type="date" name="tday">
<input type="submit" class="btn-info" value="Daily Report">
</form>
</td>
<td>
<form>
<input type="date" name="tmonth">
<input type="submit" class="btn-info" value="Monthly Report">
</form>
</td>
</tr> -->
<tr><td>.</td><td>.</td></tr>
<tr>
<td colspan="2">
<form>
<label for="">From </label><input type="date" name="dFrom">
<label for="">To </label><input type="date" name="dTo">
<input type="submit" class="btn-info" value="Report">
</form>
</td>
</tr>
</table>
<div class="container mt-4">
<div class="card shadow-lg p-4 rounded-3">
<h4 class="mb-3">Generate Report</h4>
<form method="get" class="row g-3">
<div class="col-md-3">
<label class="form-label">From</label>
<input value="<?= $_GET['dFrom'] ?? '' ?>" type="date" name="dFrom" class="form-control" required>
</div>
<div class="col-md-3">
<label class="form-label">To</label>
<input value="<?= $_GET['dTo'] ?? '' ?>" type="date" name="dTo" class="form-control" required>
</div>
<?php
<?php
// ---- শুধুমাত্র Admin হলে Agent dropdown দেখানো হবে ----
if($_SESSION['type'] === 'admin'){
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
$agents = $conn->query("SELECT * FROM `".$GLOBALS['arif_users']."` WHERE `type`='agent' ORDER BY user_name ASC");
?>
<div class="col-md-3">
<label class="form-label">Agent</label>
<select name="agent" id="agent" class="form-control">
<option value="">-- All Agents --</option>
<?php
if($agents && $agents->num_rows > 0){
while($a = $agents->fetch_assoc()){
$selected = (isset($_GET['agent']) && $_GET['agent']==$a['user_id']) ? "selected" : "";
echo "<option value='".$a['user_id']."' $selected>".$a['user_name']." (".$a['user_id'].")</option>";
}
}
?>
</select>
</div>
<?php } ?>
<div class="col-md-3 d-flex align-items-end" style="margin-top: 25px;">
<button type="submit" class="btn btn-info w-100" >Generate Report</button>
<button id="downloadPdf" class="btn btn-danger mt-3"><i class="bi bi-file-earmark-pdf"></i> Download PDF</button>
</div>
</form>
</div>
</div>
<?php
function report_view($type, $dt) {
$dateFrom = $dt;
if($type!="month" || $type!="day") {
$dateFrom= strtotime($dt); $dateFrom = date("Y-m-d", $dateFrom);
$dateTo= strtotime('+1 day', strtotime($type)); $dateTo = date("Y-m-d", $dateTo);
if($type!="month" && $type!="day") {
$dateFrom = strtotime($dt);
$dateFrom = date("Y-m-d", $dateFrom);
$dateTo = strtotime('+1 day', strtotime($type));
$dateTo = date("Y-m-d", $dateTo);
} else {
if($type=="month") {
$dateFrom = strtotime('-1 day', strtotime($dt));
$dateFrom = date("Y-m-d", $dateFrom);
}
//$dateFrom=$dt;
else{
if($type=="month") {$dateFrom= strtotime('-1 day', strtotime($dt)); $dateFrom = date("Y-m-d", $dateFrom);}
$dateTo = strtotime('+1 '.$type, strtotime($dt));
$dateTo = date("Y-m-d", $dateTo);
}
echo '<div class="container"> <h3>'.$dateFrom." -> ".$dateTo."(Up to)</h3> </div>";
echo '<div class="container mt-4">
<div class="alert alert-primary shadow-sm">
<h5 class="mb-0">Report Period: '.$dateFrom." → ".$dateTo." (Up to)</h5>
</div>
</div>";
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
$totalAmount = 0;
$rowsData = [];
echo '
<div class="container" style="margin-top: 70px;">
<h5>VIEW REPORT::::::::</h5><hr>
</div>
<div class="container">
<table class="table table-striped table-bordered table-hover table-responsive">
<div class="container mt-3">
<div class="card shadow-sm rounded-3">
<div class="card-body">
<h5 class="mb-3">Transaction Report</h5>
<div class="table-responsive">
<table class="table table-bordered table-hover align-middle" id="reportTable">
<thead class="table-light">
<tr>
<th>Transaction ID</th>
<th>Agent</th>
<th>Time</th>
<th>AC No</th>
<th>Name</th>
<th>Amount</th>
</tr>';
</tr>
</thead>
<tbody>';
// ----- base query -----
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` INNER JOIN `".$GLOBALS['arif_ac']."` ON `".$GLOBALS['arif_tran']."`.`AT_ACID`=`".$GLOBALS['arif_ac']."`.`AA_ACNO` WHERE `AT_TIMESTAMP` BETWEEN '".$dateFrom." 00:00:00' AND '".$dateTo." 00:00:00'";
// ----- agent হলে নিজের report -----
if($_SESSION['type'] === 'agent') {
$sql .= " AND `AA_AGENT`='".$_SESSION['user_id']."'";
}
// ----- admin হলে filter option -----
if($_SESSION['type'] === 'admin' && isset($_GET['agent']) && $_GET['agent']!="") {
$agentId = $conn->real_escape_string($_GET['agent']);
$sql .= " AND `AA_AGENT`='".$agentId."'";
}
$sql .= " ORDER BY `".$GLOBALS['arif_tran']."`.`AT_ID` DESC";
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` INNER JOIN `".$GLOBALS['arif_ac']."` ON `".$GLOBALS['arif_tran']."`.`AT_ACID`=`".$GLOBALS['arif_ac']."`.`AA_ACNO` WHERE `AT_TIMESTAMP` BETWEEN '".$dateFrom." 00:00:00.000000' AND '".$dateTo." 00:00:00.000000' ORDER BY `arif_tran`.`AT_ID` DESC";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
if ($result && $result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
//$ID=$row["GC_ID"];
// $tt=$row["AT_ID"]-10;
echo "
<tr>
<td>".$row["AT_ID"]."</td>
<td>".$row["AA_AGENT"]."</td>
<td>".$row["AT_TIMESTAMP"]."</td>
<td>".$row["AT_ACID"]."</td>
<td>".$row["AA_NAME"]."</td>
<td>".$row["AT_AMOUNT"]."</td>
</tr>";$totalAmount+=$row["AT_AMOUNT"];
</tr>";
$totalAmount += $row["AT_AMOUNT"];
$rowsData[] = [$row["AT_ID"], $row["AT_TIMESTAMP"], $row["AT_ACID"], $row["AA_NAME"], $row["AT_AMOUNT"]];
}
} else {
echo "0 results";
echo "<tr><td colspan='6' class='text-center text-muted'>No results found</td></tr>";
}
$conn->close();
echo '
</tbody>
</table>
<hr> <h2> Total Transaction amount : '.$totalAmount.'</h2>
</div>
<hr>
<h5 class="text-end">Total Transaction Amount : <b>'.$totalAmount.'</b></h5>
</div>
</div>
</div>
';
// pass rows data to JS
echo "<script>var reportData = ".json_encode($rowsData)."; var totalAmount = ".json_encode($totalAmount).";</script>";
}
// ---- Call report function ----
if(isset($_GET['tday']) && $_GET['tday']!="") report_view('day', $_GET['tday']);
if(isset($_GET['tmonth']) && $_GET['tmonth']!="") report_view('month', $_GET['tmonth']);
if(isset($_GET['dFrom']) && $_GET['dTo']!="") report_view($_GET['dTo'], $_GET['dFrom']);
//if(isset($_GET['Type']) && $_GET['Type']=="Loan") view_list_ac('Loan');
// if(isset($_GET['Type']) && $_GET['Type']=="Recurring") view_list_ac('Recurring');
// if(isset($_GET['Type']) && $_GET['Type']=="FD") view_list_ac('FD');
?>
<!-- PDF Download Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.28/jspdf.plugin.autotable.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const downloadBtn = document.getElementById('downloadPdf');
if(downloadBtn){
downloadBtn.addEventListener('click', function() {
const { jsPDF } = window.jspdf;
const doc = new jsPDF('p', 'pt', 'a4');
const userType = "<?php echo $_SESSION['type']; ?>";
const userName = "<?php echo $_SESSION['name']; ?>";
const now = new Date();
const dateTime = now.toLocaleDateString() + " " + now.toLocaleTimeString();
const titleText = "Grafin Ventures Transaction Report";
const logo = new Image();
logo.src = '/asset/images/logo.webp';
logo.onload = () => addContent();
logo.onerror = () => addContent();
function addContent(){
try { doc.addImage(logo, 'PNG', 40, 30, 40, 40); } catch(e) {}
doc.setFontSize(16);
doc.text(titleText, 100, 50);
doc.setFontSize(10);
doc.text(`Generated on: ${dateTime}`, 40, 80);
doc.text(`User Type: ${userType}`, 40, 95);
doc.text(`User Name: ${userName}`, 40, 110);
let y = 130;
// table
doc.autoTable({
head: [["Txn ID","Time","Account No","Name","Amount"]],
body: reportData,
startY: y,
styles: { fontSize:8, cellPadding:4, lineWidth: 0.1, lineColor:[0,0,0] },
headStyles: { fillColor:false, textColor:0 },
bodyStyles: { valign:'middle', fillColor:false },
alternateRowStyles: { fillColor:false }
});
y = doc.lastAutoTable.finalY + 20;
doc.setFont(undefined,'bold');
doc.text(`Total Transaction Amount: ${totalAmount}`,40,y);
// footer
const pageCount = doc.internal.getNumberOfPages();
for(let i=1;i<=pageCount;i++){
doc.setPage(i);
doc.setFontSize(9);
doc.text(`Generated by Loan Portal - Confidential`,40,doc.internal.pageSize.height-20);
doc.text(`Page ${i} of ${pageCount}`,doc.internal.pageSize.width-60,doc.internal.pageSize.height-20);
}
doc.save(`Transaction_Report_${userType}_${userName}_${now.toISOString().slice(0,10)}.pdf`);
}
});
}
});
</script>

View File

@@ -1,5 +1,7 @@
<?php
// Database connection
if($_SESSION['type'] !== 'admin'){
echo '<script>window.location.href="/Admin/View_AC?Type=Recurring"</script>';
}
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
$conn->set_charset("utf8");
if ($conn->connect_error) {

View File

@@ -36,6 +36,7 @@ function calculateAmount() {
</div>
<?php
$CURRENT_RECURRING_BALANCE = 0;
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Loan"){
echo '
<div class="container" style="margin-top: 20px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
@@ -150,6 +151,7 @@ function calculateAmount() {
$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 "
<tr>
<td>".$row["AA_NAME"]. "</td>
@@ -212,6 +214,141 @@ function calculateAmount() {
echo '</table></div>';
}
?>
<?php
if ($_SESSION['type'] === 'admin' && isset($_GET["no"]) && isset($_GET["type"]) && $_GET["type"] == "Recurring") {
if (
$_SERVER['REQUEST_METHOD'] === 'POST'
&& isset($_POST['PAY_LOAN_EMI_FROM_RECURRING'], $_POST['PAY_LOAN_EMI_FROM_RECURRING_ID'], $_POST['DEDUCT_LOAN_AMOUNT'])
&& $_POST['PAY_LOAN_EMI_FROM_RECURRING_ID'] === 'axakassaoxnnxsaoij34866'
) {
$loanEMIAmount = floatval($_POST['DEDUCT_LOAN_AMOUNT']);
$deductAmount = -$loanEMIAmount; // negative for recurring deduction
$paidToLoanAccountNumber = $_POST['LOAN_AC_NUMBER'];
$accountId = $_GET['no'];
if (!$accountId) {
echo "Account number missing";
exit;
}
// ✅ DB connection
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->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 "<div class='container' style=' background-color: #f8d7da; color: #721c24; padding: 12px 20px; border: 1px solid #f5c6cb; border-radius: 5px; font-family: Arial, sans-serif; font-size: 15px; margin: 10px auto; position: relative;'>
<strong>Error!</strong> Insufficient balance in Recurring account.
<span style=\" position: absolute; top: 8px; right: 12px; color: #721c24; font-weight: bold; cursor: pointer; \" onclick=\"this.parentElement.style.display='none';\">&times;</span>
</div>";
exit;
}
// ✅ Begin transaction for atomicity
$conn->begin_transaction();
try {
$table = $GLOBALS['arif_tran'] ?? 'arif_tran';
$userType = 'admin';
// Entry 1: Deduction from recurring
$remarksText1 = "Deducted ₹$loanEMIAmount from recurring balance to pay Loan Account No: $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 = "Credited ₹$loanEMIAmount to Loan Account No: $paidToLoanAccountNumber EMI from recurring balance";
$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 "<div class='container' style=' background-color: #d4edda; color: #155724; padding: 12px 20px; border: 1px solid #c3e6cb; border-radius: 5px; font-family: Arial, sans-serif; font-size: 15px; margin: 10px auto; position: relative;'>
<strong>Success!</strong> Loan EMI paid successfully!
<span style=\" position: absolute; top: 8px; right: 12px; color: #155724; font-weight: bold; cursor: pointer; \" onclick=\"this.parentElement.style.display='none';\">&times;</span>
</div>";
} catch (Exception $e) {
$conn->rollback();
echo "Error processing EMI payment: " . $e->getMessage();
}
$conn->close();
}
}
?>
<?php if ($_SESSION['type'] === 'admin' && isset($_GET["no"]) && isset($_GET["type"]) && $_GET["type"] == "Recurring") { ?>
<div class="container">
<h4>Pay Loan EMI from Recurring balance</h4>
<div style="display: flex; gap: 20px; flex-direction: row; max-width: 60%;">
<input class="form-control" type="text" id="acno" placeholder="Enter Account No" />
<button class="btn btn-primary" onclick="getAccountDetails()">Get Details</button>
</div>
<form id="PAY_LOAN_RECURRING_FORM" method="post" style="display: none; gap: 20px; flex-direction: column; max-width: 60%; margin-top: 30px;">
<input type="hidden" name="PAY_LOAN_EMI_FROM_RECURRING" value="1">
<input type="hidden" name="PAY_LOAN_EMI_FROM_RECURRING_ID" value="axakassaoxnnxsaoij34866">
<div>
<label for="ACCOUNT_HOLDER_NAME">Account holder Name:</label>
<input class="form-control" id="ACCOUNT_HOLDER_NAME" name="ACCOUNT_HOLDER_NAME" type="text" readOnly />
</div>
<div>
<label for="ACCOUNT_HOLDER_NAME">Recurring Balance:</label>
<input class="form-control" id="ACCOUNT_HOLDER_NAME" name="ACCOUNT_HOLDER_NAME" type="text" value="<?= $CURRENT_RECURRING_BALANCE ?>" readOnly />
</div>
<div>
<label for="LOAN_AC_NUMBER">Loan Account Number:</label>
<input class="form-control" id="LOAN_AC_NUMBER" name="LOAN_AC_NUMBER" type="text" required readOnly />
</div>
<div>
<label for="DEDUCT_LOAN_AMOUNT">Deduct Loan Amount:</label>
<input class="form-control" id="DEDUCT_LOAN_AMOUNT" name="DEDUCT_LOAN_AMOUNT" type="number" required />
</div>
<div style="">
<input class="btn btn-success" type="submit" value="Deduct & Pay Now" />
</div>
</form>
</div>
<?php } ?>
<div class="container" style="margin-top: 70px;">
<div class="row">
@@ -265,6 +402,39 @@ if(isset($_GET["no"])){
?>
<script>
function getAccountDetails() {
let acno = document.getElementById("acno").value;
fetch("/exe/get-loan-details/", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: "AA_ACNO=" + encodeURIComponent(acno)
})
.then(res => res.json())
.then(data => {
document.getElementById('PAY_LOAN_RECURRING_FORM').style.display = 'flex';
console.log(data.data[0].AA_ACNO);
document.getElementById('LOAN_AC_NUMBER').value = data.data[0].AA_ACNO;
document.getElementById('DEDUCT_LOAN_AMOUNT').value = data.data[0].AA_INSTALLMENT;
document.getElementById('ACCOUNT_HOLDER_NAME').value = data.data[0].AA_NAME;
document.getElementById('INSTALLMENT_NUMBER').value = data.data[0].AA_BAL / data.data[0].AA_INSTALLMENT;
if(data.status === "Success"){
// Example: show first record
console.log("Account Holder: " + data.data[0].AA_NAME + "\nBalance: " + data.data[0].AA_BAL);
} else {
alert(data.statusmsg);
}
})
.catch(err => console.error("Error:", err));
}
var submitInstallment = document.getElementById("submitInstallment");
function sendData(event) {
event.preventDefault();
@@ -287,4 +457,13 @@ function sendData(event) {
XHR.open("POST", "/exe/receive_amount/");
XHR.send(FD);
}
function addACNumberToField(){
document.getElementById('LOAN_ACC_NUMBER').value = document.getElementById('LOAN_AC_NUMBER').value;
}
</script>
<!-- GVD20210607R519 -->

View File

@@ -1,9 +1,20 @@
<div class="container" style="background-color:#e0a3a3;padding:8px;">
<ul class="nav nav-pills nav-justified">
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="FD") echo'class="active"';?>><a href="View_AC?Type=FD">Fixed Deposits</a></li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Loan") echo'class="active"';?>><a href="View_AC?Type=Loan">Loan A/C</a></li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Recurring") echo'class="active"';?>><a href="View_AC?Type=Recurring">Recurring A/Cs</a></li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Closed-Acc") echo'class="active"';?>><a href="View_AC?Type=Closed-Acc">Closed A/C</a></li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="FD") echo'class="active"';?>>
<a href="View_AC?Type=FD">Fixed Deposits</a>
</li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Loan") echo'class="active"';?>>
<a href="View_AC?Type=Loan">Loan A/C</a>
</li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Closed-Acc") echo'class="active"';?>>
<a href="View_AC?Type=Closed-Acc">Closed Loan</a>
</li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Recurring") echo'class="active"';?>>
<a href="View_AC?Type=Recurring">Recurring A/Cs</a>
</li>
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Matured-Recurring") echo'class="active"';?>>
<a href="View_AC?Type=Matured-Recurring">Matured Recurring</a>
</li>
</ul>
</div>
@@ -17,8 +28,8 @@ function view_list_ac($type) {
<table class="table table-striped table-bordered table-hover table-responsive" style="overflow-x: scroll;">
<tr>
<th>SL</th>
<th>Type</th>
';
<th>Type</th>';
if ($_SESSION['type'] === 'admin') {
echo '<th>Agent</th>';
}
@@ -47,18 +58,37 @@ function view_list_ac($type) {
// Build SQL query based on user type and account type
if($_SESSION['type'] === 'agent') {
if($type === 'Closed-Acc') {
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `STATUS`='Closed' AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
// Only Closed Loan
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Loan' AND `STATUS`='closed' AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
} elseif($type === 'Matured-Recurring') {
// Only Matured Recurring
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Recurring' AND `STATUS`='matured' AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
} elseif($type === 'Loan') {
// Loan except Closed (include NULL)
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Loan' AND (`STATUS` IS NULL OR `STATUS`!='closed') AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
} elseif($type === 'Recurring') {
// Recurring except Matured (include NULL)
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Recurring' AND (`STATUS` IS NULL OR `STATUS`!='matured') AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
} else {
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='".$type."' AND `AA_AGENT`='".$_SESSION['user_id']."' ORDER BY `AA_ID` DESC";
}
} elseif($_SESSION['type'] === 'admin') {
if($type === 'Closed-Acc') {
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `STATUS`='Closed' ORDER BY `AA_ID` DESC";
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Loan' AND `STATUS`='closed' ORDER BY `AA_ID` DESC";
} elseif($type === 'Matured-Recurring') {
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Recurring' AND `STATUS`='matured' ORDER BY `AA_ID` DESC";
} elseif($type === 'Loan') {
// Loan except Closed (include NULL)
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Loan' AND (`STATUS` IS NULL OR `STATUS`!='closed') ORDER BY `AA_ID` DESC";
} elseif($type === 'Recurring') {
// Recurring except Matured (include NULL)
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='Recurring' AND (`STATUS` IS NULL OR `STATUS`!='matured') ORDER BY `AA_ID` DESC";
} else {
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='".$type."' ORDER BY `AA_ID` DESC";
}
}
$result = $conn->query($sql);
if ($result->num_rows > 0) {
@@ -88,12 +118,12 @@ function view_list_ac($type) {
<td>".$tt."</td>
<td>".$row["AA_ACTYPE"].",".$row["AA_TYPE"]."</td>";
// Only show Agent column for admin users
if ($_SESSION['type'] === 'admin') {
echo "<td>".$row["AA_AGENT"]."</td>";
}
echo "<td><a href='./Details?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>".$row["AA_ACNO"]."</a> &nbsp;&nbsp; <a href='./Trans_New?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>Transact</a></td>
echo "<td><a href='./Details?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>".$row["AA_ACNO"]."</a> &nbsp;&nbsp;
<a href='./Trans_New?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>Transact</a></td>
<td>".$row["AA_NAME"]."</td>
<td>".$row["AA_DATE"]."</td>
<td>".$row["AA_MATURE_VALUE"]."</td>
@@ -144,6 +174,9 @@ if(isset($_GET['Type'])) {
case "Recurring":
view_list_ac('Recurring');
break;
case "Matured-Recurring":
view_list_ac('Matured-Recurring');
break;
case "FD":
view_list_ac('FD');
break;

View File

@@ -0,0 +1,34 @@
<?php
$response = new stdClass();
$total = array();
if (isset($_POST["AA_ACNO"]) && !empty($_POST["AA_ACNO"])) {
$AA_ACNO = $_POST["AA_ACNO"];
$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` = '" . $conn->real_escape_string($AA_ACNO) . "'";
$result = $conn->query($sql);
if ($result && $result->num_rows > 0) {
$rows = array();
while ($row = $result->fetch_assoc()) {
$rows[] = $row;
}
$total['status'] = 'Success';
$total['data'] = $rows;
} else {
$total['status'] = 'Error';
$total['statusmsg'] = 'No record found for ACNO: ' . $AA_ACNO;
}
$conn->close();
} else {
$total['status'] = 'Error';
$total['statusmsg'] = 'AA_ACNO missing in request!';
}
$response = $total;
echo json_encode($response);
?>

View File

@@ -3,9 +3,13 @@ $response = new stdClass();
$total = array();
if (isset($_POST["add_i"]) && isset($_POST["AA_ACNO"]) && is_numeric($_POST["add_i"]) && $_POST["add_i"] > 0) {
if(isset($_POST["ins_no"])) $ins_no = $_POST["ins_no"]; else $ins_no = 1;
if(isset($_POST["fine_amount"])) $fine_amt = $_POST["fine_amount"]; else $fine_amt = 0;
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
if ($conn->query("UPDATE `" . $GLOBALS['arif_ac'] . "` SET `AA_FINE` = `AA_FINE` + 5, `AA_BAL` = `AA_BAL`+".$_POST["add_i"]." , `AA_NO_OF_PAYPAID` = `AA_NO_OF_PAYPAID`+".$ins_no." WHERE `AA_ACNO` = '" . $_POST["AA_ACNO"] . "'"));
//Add entry to Transaction
{

View File

@@ -0,0 +1,155 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* columns_definitions/column_name.twig */
class __TwigTemplate_32522f45ec8348583f504163acebabe4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
$context["title"] = "";
// line 2
if (twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "column_status", [], "array", true, true, false, 2)) {
// line 3
echo " ";
if ((($__internal_compile_0 = (($__internal_compile_1 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["column_status"] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["isReferenced"] ?? null) : null)) {
// line 4
echo " ";
$context["title"] = (($context["title"] ?? null) . twig_sprintf(_gettext("Referenced by %s."), twig_join_filter((($__internal_compile_2 = (($__internal_compile_3 = // line 5
($context["column_meta"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["column_status"] ?? null) : null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["references"] ?? null) : null), ",")));
// line 7
echo " ";
}
// line 8
echo " ";
if ((($__internal_compile_4 = (($__internal_compile_5 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["column_status"] ?? null) : null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["isForeignKey"] ?? null) : null)) {
// line 9
echo " ";
if ( !twig_test_empty(($context["title"] ?? null))) {
// line 10
echo " ";
$context["title"] = (($context["title"] ?? null) . "
");
// line 11
echo " ";
}
// line 12
echo " ";
$context["title"] = (($context["title"] ?? null) . _gettext("Is a foreign key."));
// line 13
echo " ";
}
}
// line 15
if (twig_test_empty(($context["title"] ?? null))) {
// line 16
echo " ";
$context["title"] = _gettext("Column");
}
// line 18
echo "
<input id=\"field_";
// line 19
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\"
";
// line 20
if ((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "column_status", [], "array", true, true, false, 20) && !(($__internal_compile_6 = (($__internal_compile_7 = // line 21
($context["column_meta"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["column_status"] ?? null) : null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["isEditable"] ?? null) : null))) {
// line 22
echo " disabled=\"disabled\"
";
}
// line 24
echo " type=\"text\"
name=\"field_name[";
// line 25
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\"
maxlength=\"64\"
class=\"textfield\"
title=\"";
// line 28
echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
echo "\"
size=\"10\"
value=\"";
// line 30
((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 30)) ? (print (twig_escape_filter($this->env, (($__internal_compile_8 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["Field"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\">
";
// line 32
if ((($context["has_central_columns_feature"] ?? null) && !(twig_get_attribute($this->env, $this->source, // line 33
($context["column_meta"] ?? null), "column_status", [], "array", true, true, false, 33) && !(($__internal_compile_9 = (($__internal_compile_10 = // line 34
($context["column_meta"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["column_status"] ?? null) : null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["isEditable"] ?? null) : null)))) {
// line 35
echo " <p class=\"column_name\" id=\"central_columns_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\">
<a data-maxrows=\"";
// line 36
echo twig_escape_filter($this->env, ($context["max_rows"] ?? null), "html", null, true);
echo "\"
href=\"#\"
class=\"central_columns_dialog\">
";
echo _gettext("Pick from Central Columns");
// line 40
echo " </a>
</p>
";
}
}
public function getTemplateName()
{
return "columns_definitions/column_name.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 130 => 40, 123 => 36, 116 => 35, 114 => 34, 113 => 33, 112 => 32, 107 => 30, 102 => 28, 96 => 25, 93 => 24, 89 => 22, 87 => 21, 86 => 20, 80 => 19, 77 => 18, 73 => 16, 71 => 15, 67 => 13, 64 => 12, 61 => 11, 57 => 10, 54 => 9, 51 => 8, 48 => 7, 46 => 5, 44 => 4, 41 => 3, 39 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/column_name.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/column_name.twig");
}
}

View File

@@ -0,0 +1,563 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/structure_table_row.twig */
class __TwigTemplate_fca2a734884de5ac3e697ac93e80f198 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<tr id=\"row_tbl_";
echo twig_escape_filter($this->env, ($context["curr"] ?? null), "html", null, true);
echo "\"";
echo ((($context["table_is_view"] ?? null)) ? (" class=\"is_view\"") : (""));
echo " data-filter-row=\"";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, (($__internal_compile_0 = ($context["current_table"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["TABLE_NAME"] ?? null) : null)), "html", null, true);
echo "\">
<td class=\"text-center d-print-none\">
<input type=\"checkbox\"
name=\"selected_tbl[]\"
class=\"";
// line 5
echo twig_escape_filter($this->env, ($context["input_class"] ?? null), "html", null, true);
echo "\"
value=\"";
// line 6
echo twig_escape_filter($this->env, (($__internal_compile_1 = ($context["current_table"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["TABLE_NAME"] ?? null) : null), "html", null, true);
echo "\"
id=\"checkbox_tbl_";
// line 7
echo twig_escape_filter($this->env, ($context["curr"] ?? null), "html", null, true);
echo "\">
</td>
<th>
<a href=\"";
// line 10
echo PhpMyAdmin\Url::getFromRoute("/sql", twig_array_merge(($context["table_url_params"] ?? null), ["pos" => 0]));
echo "\" title=\"";
echo twig_escape_filter($this->env, ($context["browse_table_label_title"] ?? null), "html", null, true);
echo "\">";
// line 11
echo twig_escape_filter($this->env, ($context["browse_table_label_truename"] ?? null), "html", null, true);
// line 12
echo "</a>
";
// line 13
echo ($context["tracking_icon"] ?? null);
echo "
</th>
";
// line 15
if (($context["server_replica_status"] ?? null)) {
// line 16
echo " <td class=\"text-center\">
";
// line 17
echo ((($context["ignored"] ?? null)) ? (PhpMyAdmin\Html\Generator::getImage("s_cancel", _gettext("Not replicated"))) : (""));
echo "
";
// line 18
echo ((($context["do"] ?? null)) ? (PhpMyAdmin\Html\Generator::getImage("s_success", _gettext("Replicated"))) : (""));
echo "
</td>
";
}
// line 21
echo "
";
// line 23
echo " ";
if ((($context["num_favorite_tables"] ?? null) > 0)) {
// line 24
echo " <td class=\"text-center d-print-none\">
";
// line 26
echo " ";
$context["fav_params"] = ["db" => // line 27
($context["db"] ?? null), "ajax_request" => true, "favorite_table" => (($__internal_compile_2 = // line 29
($context["current_table"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["TABLE_NAME"] ?? null) : null), ((( // line 30
($context["already_favorite"] ?? null)) ? ("remove") : ("add")) . "_favorite") => true];
// line 32
echo " ";
$this->loadTemplate("database/structure/favorite_anchor.twig", "database/structure/structure_table_row.twig", 32)->display(twig_to_array(["table_name_hash" => // line 33
($context["table_name_hash"] ?? null), "db_table_name_hash" => // line 34
($context["db_table_name_hash"] ?? null), "fav_params" => // line 35
($context["fav_params"] ?? null), "already_favorite" => // line 36
($context["already_favorite"] ?? null)]));
// line 38
echo " </td>
";
}
// line 40
echo "
<td class=\"text-center d-print-none\">
<a href=\"";
// line 42
echo PhpMyAdmin\Url::getFromRoute("/sql", twig_array_merge(($context["table_url_params"] ?? null), ["pos" => 0]));
echo "\">
";
// line 43
echo ((($context["may_have_rows"] ?? null)) ? (PhpMyAdmin\Html\Generator::getIcon("b_browse", _gettext("Browse"))) : (PhpMyAdmin\Html\Generator::getIcon("bd_browse", _gettext("Browse"))));
echo "
</a>
</td>
<td class=\"text-center d-print-none\">
<a href=\"";
// line 47
echo PhpMyAdmin\Url::getFromRoute("/table/structure", ($context["table_url_params"] ?? null));
echo "\">
";
// line 48
echo PhpMyAdmin\Html\Generator::getIcon("b_props", _gettext("Structure"));
echo "
</a>
</td>
<td class=\"text-center d-print-none\">
<a href=\"";
// line 52
echo PhpMyAdmin\Url::getFromRoute("/table/search", ($context["table_url_params"] ?? null));
echo "\">
";
// line 53
echo ((($context["may_have_rows"] ?? null)) ? (PhpMyAdmin\Html\Generator::getIcon("b_select", _gettext("Search"))) : (PhpMyAdmin\Html\Generator::getIcon("bd_select", _gettext("Search"))));
echo "
</a>
</td>
";
// line 57
if ( !($context["db_is_system_schema"] ?? null)) {
// line 58
echo " <td class=\"insert_table text-center d-print-none\">
<a href=\"";
// line 59
echo PhpMyAdmin\Url::getFromRoute("/table/change", ($context["table_url_params"] ?? null));
echo "\">";
echo PhpMyAdmin\Html\Generator::getIcon("b_insrow", _gettext("Insert"));
echo "</a>
</td>
";
// line 61
if (($context["table_is_view"] ?? null)) {
// line 62
echo " <td class=\"text-center d-print-none\">
<a href=\"";
// line 63
echo PhpMyAdmin\Url::getFromRoute("/view/create", ["db" => // line 64
($context["db"] ?? null), "table" => (($__internal_compile_3 = // line 65
($context["current_table"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["TABLE_NAME"] ?? null) : null)]);
// line 66
echo "\">";
echo PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit"));
echo "</a>
</td>
";
} else {
// line 69
echo " <td class=\"text-center d-print-none\">
<a class=\"truncate_table_anchor ajax\" href=\"";
// line 70
echo PhpMyAdmin\Url::getFromRoute("/sql");
echo "\" data-post=\"";
echo PhpMyAdmin\Url::getCommon(twig_array_merge(($context["table_url_params"] ?? null), ["sql_query" => // line 71
($context["empty_table_sql_query"] ?? null), "message_to_show" => // line 72
($context["empty_table_message_to_show"] ?? null)]), "");
// line 73
echo "\">
";
// line 74
echo ((($context["may_have_rows"] ?? null)) ? (PhpMyAdmin\Html\Generator::getIcon("b_empty", _gettext("Empty"))) : (PhpMyAdmin\Html\Generator::getIcon("bd_empty", _gettext("Empty"))));
echo "
</a>
</td>
";
}
// line 78
echo " <td class=\"text-center d-print-none\">
<a class=\"ajax drop_table_anchor";
// line 80
echo (((($context["table_is_view"] ?? null) || ((($__internal_compile_4 = ($context["current_table"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["ENGINE"] ?? null) : null) == null))) ? (" view") : (""));
echo "\" href=\"";
echo PhpMyAdmin\Url::getFromRoute("/sql");
echo "\" data-post=\"";
// line 81
echo PhpMyAdmin\Url::getCommon(twig_array_merge(($context["table_url_params"] ?? null), ["reload" => 1, "purge" => 1, "sql_query" => // line 84
($context["drop_query"] ?? null), "message_to_show" => // line 85
($context["drop_message"] ?? null)]), "");
// line 86
echo "\">
";
// line 87
echo PhpMyAdmin\Html\Generator::getIcon("b_drop", _gettext("Drop"));
echo "
</a>
</td>
";
}
// line 91
echo "
";
// line 92
if ((twig_get_attribute($this->env, $this->source, ($context["current_table"] ?? null), "TABLE_ROWS", [], "array", true, true, false, 92) && (((($__internal_compile_5 = // line 93
($context["current_table"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["ENGINE"] ?? null) : null) != null) || ($context["table_is_view"] ?? null)))) {
// line 94
echo " ";
// line 95
echo " ";
$context["row_count"] = PhpMyAdmin\Util::formatNumber((($__internal_compile_6 = ($context["current_table"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["TABLE_ROWS"] ?? null) : null), 0);
// line 96
echo "
";
// line 99
echo " <td class=\"value tbl_rows font-monospace text-end\"
data-table=\"";
// line 100
echo twig_escape_filter($this->env, (($__internal_compile_7 = ($context["current_table"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["TABLE_NAME"] ?? null) : null), "html", null, true);
echo "\">
";
// line 101
if (($context["approx_rows"] ?? null)) {
// line 102
echo " <a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/database/structure/real-row-count", ["ajax_request" => true, "db" => // line 104
($context["db"] ?? null), "table" => (($__internal_compile_8 = // line 105
($context["current_table"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["TABLE_NAME"] ?? null) : null)]);
// line 106
echo "\" class=\"ajax real_row_count\">
<bdi>
~";
// line 108
echo twig_escape_filter($this->env, ($context["row_count"] ?? null), "html", null, true);
echo "
</bdi>
</a>
";
} else {
// line 112
echo " ";
echo twig_escape_filter($this->env, ($context["row_count"] ?? null), "html", null, true);
echo "
";
}
// line 114
echo " ";
echo ($context["show_superscript"] ?? null);
echo "
</td>
";
// line 117
if ( !(($context["properties_num_columns"] ?? null) > 1)) {
// line 118
echo " <td class=\"text-nowrap\">
";
// line 119
if ( !twig_test_empty((($__internal_compile_9 = ($context["current_table"] ?? null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["ENGINE"] ?? null) : null))) {
// line 120
echo " ";
echo twig_escape_filter($this->env, (($__internal_compile_10 = ($context["current_table"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["ENGINE"] ?? null) : null), "html", null, true);
echo "
";
} elseif ( // line 121
($context["table_is_view"] ?? null)) {
// line 122
echo " ";
echo _gettext("View");
// line 123
echo " ";
}
// line 124
echo " </td>
";
// line 125
if ((twig_length_filter($this->env, ($context["collation"] ?? null)) > 0)) {
// line 126
echo " <td class=\"text-nowrap\">
";
// line 127
echo ($context["collation"] ?? null);
echo "
</td>
";
}
// line 130
echo " ";
}
// line 131
echo "
";
// line 132
if (($context["is_show_stats"] ?? null)) {
// line 133
echo " <td class=\"value tbl_size font-monospace text-end\">
<a href=\"";
// line 134
echo PhpMyAdmin\Url::getFromRoute("/table/structure", ($context["table_url_params"] ?? null));
echo "#showusage\">
<span>";
// line 135
echo twig_escape_filter($this->env, ($context["formatted_size"] ?? null), "html", null, true);
echo "</span>&nbsp;<span class=\"unit\">";
echo twig_escape_filter($this->env, ($context["unit"] ?? null), "html", null, true);
echo "</span>
</a>
</td>
<td class=\"value tbl_overhead font-monospace text-end\">
";
// line 139
echo ($context["overhead"] ?? null);
echo "
</td>
";
}
// line 142
echo "
";
// line 143
if ( !(($context["show_charset"] ?? null) > 1)) {
// line 144
echo " ";
if ((twig_length_filter($this->env, ($context["charset"] ?? null)) > 0)) {
// line 145
echo " <td class=\"text-nowrap\">
";
// line 146
echo ($context["charset"] ?? null);
echo "
</td>
";
}
// line 149
echo " ";
}
// line 150
echo "
";
// line 151
if (($context["show_comment"] ?? null)) {
// line 152
echo " ";
$context["comment"] = (($__internal_compile_11 = ($context["current_table"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["Comment"] ?? null) : null);
// line 153
echo " <td>
";
// line 154
if ((twig_length_filter($this->env, ($context["comment"] ?? null)) > ($context["limit_chars"] ?? null))) {
// line 155
echo " <abbr title=\"";
echo twig_escape_filter($this->env, ($context["comment"] ?? null), "html", null, true);
echo "\">
";
// line 156
echo twig_escape_filter($this->env, twig_slice($this->env, ($context["comment"] ?? null), 0, ($context["limit_chars"] ?? null)), "html", null, true);
echo "
...
</abbr>
";
} else {
// line 160
echo " ";
echo twig_escape_filter($this->env, ($context["comment"] ?? null), "html", null, true);
echo "
";
}
// line 162
echo " </td>
";
}
// line 164
echo "
";
// line 165
if (($context["show_creation"] ?? null)) {
// line 166
echo " <td class=\"value tbl_creation font-monospace text-end\">
";
// line 167
echo twig_escape_filter($this->env, ($context["create_time"] ?? null), "html", null, true);
echo "
</td>
";
}
// line 170
echo "
";
// line 171
if (($context["show_last_update"] ?? null)) {
// line 172
echo " <td class=\"value tbl_last_update font-monospace text-end\">
";
// line 173
echo twig_escape_filter($this->env, ($context["update_time"] ?? null), "html", null, true);
echo "
</td>
";
}
// line 176
echo "
";
// line 177
if (($context["show_last_check"] ?? null)) {
// line 178
echo " <td class=\"value tbl_last_check font-monospace text-end\">
";
// line 179
echo twig_escape_filter($this->env, ($context["check_time"] ?? null), "html", null, true);
echo "
</td>
";
}
// line 182
echo "
";
} elseif ( // line 183
($context["table_is_view"] ?? null)) {
// line 184
echo " <td class=\"value tbl_rows font-monospace text-end\">-</td>
<td class=\"text-nowrap\">
";
echo _gettext("View");
// line 187
echo " </td>
<td class=\"text-nowrap\">---</td>
";
// line 189
if (($context["is_show_stats"] ?? null)) {
// line 190
echo " <td class=\"value tbl_size font-monospace text-end\">-</td>
<td class=\"value tbl_overhead font-monospace text-end\">-</td>
";
}
// line 193
echo " ";
if (($context["show_charset"] ?? null)) {
// line 194
echo " <td></td>
";
}
// line 196
echo " ";
if (($context["show_comment"] ?? null)) {
// line 197
echo " <td></td>
";
}
// line 199
echo " ";
if (($context["show_creation"] ?? null)) {
// line 200
echo " <td class=\"value tbl_creation font-monospace text-end\">-</td>
";
}
// line 202
echo " ";
if (($context["show_last_update"] ?? null)) {
// line 203
echo " <td class=\"value tbl_last_update font-monospace text-end\">-</td>
";
}
// line 205
echo " ";
if (($context["show_last_check"] ?? null)) {
// line 206
echo " <td class=\"value tbl_last_check font-monospace text-end\">-</td>
";
}
// line 208
echo "
";
} else {
// line 210
echo "
";
// line 211
if (($context["db_is_system_schema"] ?? null)) {
// line 212
echo " ";
$context["action_colspan"] = 3;
// line 213
echo " ";
} else {
// line 214
echo " ";
$context["action_colspan"] = 6;
// line 215
echo " ";
}
// line 216
echo " ";
if ((($context["num_favorite_tables"] ?? null) > 0)) {
// line 217
echo " ";
$context["action_colspan"] = (($context["action_colspan"] ?? null) + 1);
// line 218
echo " ";
}
// line 219
echo "
";
// line 220
$context["colspan_for_structure"] = (($context["action_colspan"] ?? null) + 3);
// line 221
echo " <td colspan=\"";
echo (((($context["colspan_for_structure"] ?? null) - ($context["db_is_system_schema"] ?? null))) ? (6) : (9));
echo "\"
class=\"text-center\">
";
echo _gettext("in use");
// line 224
echo " </td>
";
}
// line 226
echo "</tr>
";
}
public function getTemplateName()
{
return "database/structure/structure_table_row.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 540 => 226, 536 => 224, 529 => 221, 527 => 220, 524 => 219, 521 => 218, 518 => 217, 515 => 216, 512 => 215, 509 => 214, 506 => 213, 503 => 212, 501 => 211, 498 => 210, 494 => 208, 490 => 206, 487 => 205, 483 => 203, 480 => 202, 476 => 200, 473 => 199, 469 => 197, 466 => 196, 462 => 194, 459 => 193, 454 => 190, 452 => 189, 448 => 187, 443 => 184, 441 => 183, 438 => 182, 432 => 179, 429 => 178, 427 => 177, 424 => 176, 418 => 173, 415 => 172, 413 => 171, 410 => 170, 404 => 167, 401 => 166, 399 => 165, 396 => 164, 392 => 162, 386 => 160, 379 => 156, 374 => 155, 372 => 154, 369 => 153, 366 => 152, 364 => 151, 361 => 150, 358 => 149, 352 => 146, 349 => 145, 346 => 144, 344 => 143, 341 => 142, 335 => 139, 326 => 135, 322 => 134, 319 => 133, 317 => 132, 314 => 131, 311 => 130, 305 => 127, 302 => 126, 300 => 125, 297 => 124, 294 => 123, 291 => 122, 289 => 121, 284 => 120, 282 => 119, 279 => 118, 277 => 117, 270 => 114, 264 => 112, 257 => 108, 253 => 106, 251 => 105, 250 => 104, 248 => 102, 246 => 101, 242 => 100, 239 => 99, 236 => 96, 233 => 95, 231 => 94, 229 => 93, 228 => 92, 225 => 91, 218 => 87, 215 => 86, 213 => 85, 212 => 84, 211 => 81, 206 => 80, 203 => 78, 196 => 74, 193 => 73, 191 => 72, 190 => 71, 187 => 70, 184 => 69, 177 => 66, 175 => 65, 174 => 64, 173 => 63, 170 => 62, 168 => 61, 161 => 59, 158 => 58, 156 => 57, 149 => 53, 145 => 52, 138 => 48, 134 => 47, 127 => 43, 123 => 42, 119 => 40, 115 => 38, 113 => 36, 112 => 35, 111 => 34, 110 => 33, 108 => 32, 106 => 30, 105 => 29, 104 => 27, 102 => 26, 99 => 24, 96 => 23, 93 => 21, 87 => 18, 83 => 17, 80 => 16, 78 => 15, 73 => 13, 70 => 12, 68 => 11, 63 => 10, 57 => 7, 53 => 6, 49 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/structure_table_row.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/structure_table_row.twig");
}
}

View File

@@ -0,0 +1,64 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/collation_definition.twig */
class __TwigTemplate_3e039bc1d307b818aa42ada048c5e614 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<dfn title=\"";
echo twig_escape_filter($this->env, ($context["valueTitle"] ?? null), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, ($context["value"] ?? null), "html", null, true);
echo "</dfn>
";
}
public function getTemplateName()
{
return "database/structure/collation_definition.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/collation_definition.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/collation_definition.twig");
}
}

View File

@@ -0,0 +1,313 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* table/search/input_box.twig */
class __TwigTemplate_3fd4b8b02146817fcbd06403ccd5cfd3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 2
if ((($context["foreigners"] ?? null) && $this->env->getFunction('search_column_in_foreigners')->getCallable()(($context["foreigners"] ?? null), ($context["column_name"] ?? null)))) {
// line 3
echo " ";
if (twig_test_iterable((($__internal_compile_0 = ($context["foreign_data"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["disp_row"] ?? null) : null))) {
// line 4
echo " <select name=\"criteriaValues[";
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
id=\"";
// line 5
echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\">
";
// line 6
echo $this->env->getFunction('foreign_dropdown')->getCallable()((($__internal_compile_1 = // line 7
($context["foreign_data"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["disp_row"] ?? null) : null), (($__internal_compile_2 = // line 8
($context["foreign_data"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["foreign_field"] ?? null) : null), (($__internal_compile_3 = // line 9
($context["foreign_data"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["foreign_display"] ?? null) : null), "", // line 11
($context["foreign_max_limit"] ?? null));
// line 12
echo "
</select>
";
} elseif (((($__internal_compile_4 = // line 14
($context["foreign_data"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["foreign_link"] ?? null) : null) == true)) {
// line 15
echo " <input type=\"text\"
id=\"";
// line 16
echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\"
name=\"criteriaValues[";
// line 17
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
id=\"field_";
// line 18
echo twig_escape_filter($this->env, ($context["column_name_hash"] ?? null), "html", null, true);
echo "[";
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
class=\"textfield\"
";
// line 20
if (twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 20)) {
// line 21
echo " value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_5 = ($context["criteria_values"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[($context["column_index"] ?? null)] ?? null) : null), "html", null, true);
echo "\"
";
}
// line 22
echo ">
<a class=\"ajax browse_foreign\" href=\"";
// line 23
echo PhpMyAdmin\Url::getFromRoute("/browse-foreigners");
echo "\" data-post=\"";
// line 24
echo PhpMyAdmin\Url::getCommon(["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)], "", false);
// line 25
echo "&amp;field=";
echo twig_escape_filter($this->env, twig_urlencode_filter(($context["column_name"] ?? null)), "html", null, true);
echo "&amp;fieldkey=";
// line 26
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "&amp;fromsearch=1\">
";
// line 27
echo PhpMyAdmin\Html\Generator::getIcon("b_browse", _gettext("Browse foreign values"));
echo "
</a>
";
}
} elseif (twig_in_filter( // line 30
($context["column_type"] ?? null), PhpMyAdmin\Utils\Gis::getDataTypes())) {
// line 31
echo " <input type=\"text\"
name=\"criteriaValues[";
// line 32
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
size=\"40\"
class=\"textfield\"
id=\"field_";
// line 35
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\">
";
// line 36
if (($context["in_fbs"] ?? null)) {
// line 37
echo " ";
$context["edit_str"] = PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit/Insert"));
// line 38
echo " <span class=\"open_search_gis_editor\">
";
// line 39
echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/gis-data-editor"), [], ($context["edit_str"] ?? null), [], "_blank");
echo "
</span>
";
}
} elseif (((is_string($__internal_compile_6 = // line 42
($context["column_type"] ?? null)) && is_string($__internal_compile_7 = "enum") && ('' === $__internal_compile_7 || 0 === strpos($__internal_compile_6, $__internal_compile_7))) || ((is_string($__internal_compile_8 = // line 43
($context["column_type"] ?? null)) && is_string($__internal_compile_9 = "set") && ('' === $__internal_compile_9 || 0 === strpos($__internal_compile_8, $__internal_compile_9))) && ($context["in_zoom_search_edit"] ?? null)))) {
// line 44
echo " ";
$context["in_zoom_search_edit"] = false;
// line 45
echo " ";
$context["value"] = PhpMyAdmin\Util::parseEnumSetValues(($context["column_type"] ?? null));
// line 46
echo " ";
$context["cnt_value"] = twig_length_filter($this->env, ($context["value"] ?? null));
// line 47
echo " ";
// line 53
echo " ";
if ((((is_string($__internal_compile_10 = ($context["column_type"] ?? null)) && is_string($__internal_compile_11 = "enum") && ('' === $__internal_compile_11 || 0 === strpos($__internal_compile_10, $__internal_compile_11))) && !($context["in_zoom_search_edit"] ?? null)) || ((is_string($__internal_compile_12 = // line 54
($context["column_type"] ?? null)) && is_string($__internal_compile_13 = "set") && ('' === $__internal_compile_13 || 0 === strpos($__internal_compile_12, $__internal_compile_13))) && ($context["in_zoom_search_edit"] ?? null)))) {
// line 55
echo " <select name=\"criteriaValues[";
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
id=\"";
// line 56
echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\">
";
} else {
// line 58
echo " <select name=\"criteriaValues[";
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
id=\"";
// line 59
echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\"
multiple=\"multiple\"
size=\"";
// line 61
echo twig_escape_filter($this->env, min(3, ($context["cnt_value"] ?? null)), "html", null, true);
echo "\">
";
}
// line 63
echo " ";
// line 64
echo " <option value=\"\"></option>
";
// line 65
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (($context["cnt_value"] ?? null) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 66
echo " ";
if (((twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 66) && twig_test_iterable((($__internal_compile_14 = // line 67
($context["criteria_values"] ?? null)) && is_array($__internal_compile_14) || $__internal_compile_14 instanceof ArrayAccess ? ($__internal_compile_14[($context["column_index"] ?? null)] ?? null) : null))) && twig_in_filter((($__internal_compile_15 = // line 68
($context["value"] ?? null)) && is_array($__internal_compile_15) || $__internal_compile_15 instanceof ArrayAccess ? ($__internal_compile_15[$context["i"]] ?? null) : null), (($__internal_compile_16 = ($context["criteria_values"] ?? null)) && is_array($__internal_compile_16) || $__internal_compile_16 instanceof ArrayAccess ? ($__internal_compile_16[($context["column_index"] ?? null)] ?? null) : null)))) {
// line 69
echo " <option value=\"";
echo (($__internal_compile_17 = ($context["value"] ?? null)) && is_array($__internal_compile_17) || $__internal_compile_17 instanceof ArrayAccess ? ($__internal_compile_17[$context["i"]] ?? null) : null);
echo "\" selected>
";
// line 70
echo (($__internal_compile_18 = ($context["value"] ?? null)) && is_array($__internal_compile_18) || $__internal_compile_18 instanceof ArrayAccess ? ($__internal_compile_18[$context["i"]] ?? null) : null);
echo "
</option>
";
} else {
// line 73
echo " <option value=\"";
echo (($__internal_compile_19 = ($context["value"] ?? null)) && is_array($__internal_compile_19) || $__internal_compile_19 instanceof ArrayAccess ? ($__internal_compile_19[$context["i"]] ?? null) : null);
echo "\">
";
// line 74
echo (($__internal_compile_20 = ($context["value"] ?? null)) && is_array($__internal_compile_20) || $__internal_compile_20 instanceof ArrayAccess ? ($__internal_compile_20[$context["i"]] ?? null) : null);
echo "
</option>
";
}
// line 77
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 78
echo " </select>
";
} else {
// line 80
echo " ";
$context["the_class"] = "textfield";
// line 81
echo " ";
if ((($context["column_type"] ?? null) == "date")) {
// line 82
echo " ";
$context["the_class"] = (($context["the_class"] ?? null) . " datefield");
// line 83
echo " ";
} elseif (((($context["column_type"] ?? null) == "datetime") || (is_string($__internal_compile_21 = ($context["column_type"] ?? null)) && is_string($__internal_compile_22 = "timestamp") && ('' === $__internal_compile_22 || 0 === strpos($__internal_compile_21, $__internal_compile_22))))) {
// line 84
echo " ";
$context["the_class"] = (($context["the_class"] ?? null) . " datetimefield");
// line 85
echo " ";
} elseif ((is_string($__internal_compile_23 = ($context["column_type"] ?? null)) && is_string($__internal_compile_24 = "bit") && ('' === $__internal_compile_24 || 0 === strpos($__internal_compile_23, $__internal_compile_24)))) {
// line 86
echo " ";
$context["the_class"] = (($context["the_class"] ?? null) . " bit");
// line 87
echo " ";
}
// line 88
echo " <input type=\"text\"
name=\"criteriaValues[";
// line 89
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "]\"
data-type=\"";
// line 90
echo twig_escape_filter($this->env, ($context["column_data_type"] ?? null), "html", null, true);
echo "\"
";
// line 91
echo ($context["html_attributes"] ?? null);
echo "
size=\"40\"
class=\"";
// line 93
echo twig_escape_filter($this->env, ($context["the_class"] ?? null), "html", null, true);
echo "\"
id=\"";
// line 94
echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
echo "\"
";
// line 95
if (twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 95)) {
// line 96
echo " value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_25 = ($context["criteria_values"] ?? null)) && is_array($__internal_compile_25) || $__internal_compile_25 instanceof ArrayAccess ? ($__internal_compile_25[($context["column_index"] ?? null)] ?? null) : null), "html", null, true);
echo "\"";
}
// line 97
echo ">
";
}
}
public function getTemplateName()
{
return "table/search/input_box.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 289 => 97, 284 => 96, 282 => 95, 277 => 94, 273 => 93, 268 => 91, 264 => 90, 260 => 89, 257 => 88, 254 => 87, 251 => 86, 248 => 85, 245 => 84, 242 => 83, 239 => 82, 236 => 81, 233 => 80, 229 => 78, 223 => 77, 217 => 74, 212 => 73, 206 => 70, 201 => 69, 199 => 68, 198 => 67, 196 => 66, 192 => 65, 189 => 64, 187 => 63, 182 => 61, 176 => 59, 171 => 58, 165 => 56, 160 => 55, 158 => 54, 156 => 53, 154 => 47, 151 => 46, 148 => 45, 145 => 44, 143 => 43, 142 => 42, 136 => 39, 133 => 38, 130 => 37, 128 => 36, 124 => 35, 118 => 32, 115 => 31, 113 => 30, 107 => 27, 103 => 26, 99 => 25, 97 => 24, 94 => 23, 91 => 22, 85 => 21, 83 => 20, 76 => 18, 72 => 17, 67 => 16, 64 => 15, 62 => 14, 58 => 12, 56 => 11, 55 => 9, 54 => 8, 53 => 7, 52 => 6, 47 => 5, 42 => 4, 39 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("", "table/search/input_box.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/search/input_box.twig");
}
}

View File

@@ -0,0 +1,418 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* columns_definitions/column_definitions_form.twig */
class __TwigTemplate_e5dfff06f91a106740e53146df36fa61 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<form method=\"post\" action=\"";
echo twig_escape_filter($this->env, ($context["action"] ?? null), "html", null, true);
echo "\" class=\"";
// line 2
echo (((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) ? ("create_table") : ("append_fields"));
// line 3
echo "_form ajax lock-page\">
";
// line 4
echo PhpMyAdmin\Url::getHiddenInputs(($context["form_params"] ?? null));
echo "
";
// line 6
echo " ";
// line 7
echo " ";
// line 8
echo " <input type=\"hidden\" name=\"primary_indexes\" value=\"";
// line 9
(( !twig_test_empty(($context["primary_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["primary_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"unique_indexes\" value=\"";
// line 11
(( !twig_test_empty(($context["unique_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["unique_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"indexes\" value=\"";
// line 13
(( !twig_test_empty(($context["indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"fulltext_indexes\" value=\"";
// line 15
(( !twig_test_empty(($context["fulltext_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["fulltext_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"spatial_indexes\" value=\"";
// line 17
(( !twig_test_empty(($context["spatial_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["spatial_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
";
// line 19
if ((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) {
// line 20
echo " <div id=\"table_name_col_no_outer\">
<table id=\"table_name_col_no\" class=\"table table-borderless tdblock\">
<tr class=\"align-middle float-start\">
<td>";
echo _gettext("Table name");
// line 23
echo ":
<input type=\"text\"
name=\"table\"
size=\"40\"
maxlength=\"64\"
value=\"";
// line 28
((array_key_exists("table", $context)) ? (print (twig_escape_filter($this->env, ($context["table"] ?? null), "html", null, true))) : (print ("")));
echo "\"
class=\"textfield\" autofocus required>
</td>
<td>
";
echo _gettext("Add");
// line 33
echo " <input type=\"number\"
id=\"added_fields\"
name=\"added_fields\"
size=\"2\"
value=\"1\"
min=\"1\"
onfocus=\"this.select()\">
";
echo _gettext("column(s)");
// line 41
echo " <input class=\"btn btn-secondary\" type=\"button\"
name=\"submit_num_fields\"
value=\"";
echo _gettext("Go");
// line 43
echo "\">
</td>
</tr>
</table>
</div>
";
}
// line 49
echo " ";
if (twig_test_iterable(($context["content_cells"] ?? null))) {
// line 50
echo " ";
$this->loadTemplate("columns_definitions/table_fields_definitions.twig", "columns_definitions/column_definitions_form.twig", 50)->display(twig_to_array(["is_backup" => // line 51
($context["is_backup"] ?? null), "fields_meta" => // line 52
($context["fields_meta"] ?? null), "relation_parameters" => // line 53
($context["relation_parameters"] ?? null), "content_cells" => // line 54
($context["content_cells"] ?? null), "change_column" => // line 55
($context["change_column"] ?? null), "is_virtual_columns_supported" => // line 56
($context["is_virtual_columns_supported"] ?? null), "server_version" => // line 57
($context["server_version"] ?? null), "browse_mime" => // line 58
($context["browse_mime"] ?? null), "supports_stored_keyword" => // line 59
($context["supports_stored_keyword"] ?? null), "max_rows" => // line 60
($context["max_rows"] ?? null), "char_editing" => // line 61
($context["char_editing"] ?? null), "attribute_types" => // line 62
($context["attribute_types"] ?? null), "privs_available" => // line 63
($context["privs_available"] ?? null), "max_length" => // line 64
($context["max_length"] ?? null), "charsets" => // line 65
($context["charsets"] ?? null)]));
// line 67
echo " ";
}
// line 68
echo " ";
if ((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) {
// line 69
echo " <div class=\"responsivetable\">
<table class=\"table table-borderless w-auto align-middle mb-0\">
<tr class=\"align-top\">
<th>";
echo _gettext("Table comments:");
// line 72
echo "</th>
<td width=\"25\">&nbsp;</td>
<th>";
echo _gettext("Collation:");
// line 74
echo "</th>
<td width=\"25\">&nbsp;</td>
<th>
";
echo _gettext("Storage Engine:");
// line 78
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("Storage_engines");
echo "
</th>
<td width=\"25\">&nbsp;</td>
<th id=\"storage-engine-connection\">
";
echo _gettext("Connection:");
// line 83
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("federated-create-connection");
echo "
</th>
</tr>
<tr>
<td>
<input type=\"text\"
name=\"comment\"
size=\"40\"
maxlength=\"60\"
value=\"";
// line 92
((array_key_exists("comment", $context)) ? (print (twig_escape_filter($this->env, ($context["comment"] ?? null), "html", null, true))) : (print ("")));
echo "\"
class=\"textfield\">
</td>
<td width=\"25\">&nbsp;</td>
<td>
<select lang=\"en\" dir=\"ltr\" name=\"tbl_collation\">
<option value=\"\"></option>
";
// line 99
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["charsets"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
// line 100
echo " <optgroup label=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "name", [], "any", false, false, false, 100), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "description", [], "any", false, false, false, 100), "html", null, true);
echo "\">
";
// line 101
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["charset"], "collations", [], "any", false, false, false, 101));
foreach ($context['_seq'] as $context["_key"] => $context["collation"]) {
// line 102
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 102), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "description", [], "any", false, false, false, 102), "html", null, true);
echo "\"";
// line 103
echo (((twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 103) == ($context["tbl_collation"] ?? null))) ? (" selected") : (""));
echo ">";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 104), "html", null, true);
// line 105
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['collation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 107
echo " </optgroup>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['charset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 109
echo " </select>
</td>
<td width=\"25\">&nbsp;</td>
<td>
<select class=\"form-select\" name=\"tbl_storage_engine\" aria-label=\"";
echo _gettext("Storage engine");
// line 113
echo "\">
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["storage_engines"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["engine"]) {
// line 115
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 115), "html", null, true);
echo "\"";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 115))) {
echo " title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 115), "html", null, true);
echo "\"";
}
// line 116
echo ((((twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 116)) == twig_lower_filter($this->env, ($context["tbl_storage_engine"] ?? null))) || (twig_test_empty(($context["tbl_storage_engine"] ?? null)) && twig_get_attribute($this->env, $this->source, $context["engine"], "is_default", [], "any", false, false, false, 116)))) ? (" selected") : (""));
echo ">";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 117), "html", null, true);
// line 118
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['engine'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo " </select>
</td>
<td width=\"25\">&nbsp;</td>
<td>
<input type=\"text\"
name=\"connection\"
size=\"40\"
value=\"";
// line 127
((array_key_exists("connection", $context)) ? (print (twig_escape_filter($this->env, ($context["connection"] ?? null), "html", null, true))) : (print ("")));
echo "\"
placeholder=\"scheme://user_name[:password]@host_name[:port_num]/db_name/tbl_name\"
class=\"textfield\"
required=\"required\">
</td>
</tr>
";
// line 133
if (($context["have_partitioning"] ?? null)) {
// line 134
echo " <tr class=\"align-top\">
<th colspan=\"5\">
";
echo _gettext("PARTITION definition:");
// line 137
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("Partitioning");
echo "
</th>
</tr>
<tr>
<td colspan=\"5\">
";
// line 142
$this->loadTemplate("columns_definitions/partitions.twig", "columns_definitions/column_definitions_form.twig", 142)->display(twig_to_array(["partition_details" => // line 143
($context["partition_details"] ?? null), "storage_engines" => // line 144
($context["storage_engines"] ?? null)]));
// line 146
echo " </td>
</tr>
";
}
// line 149
echo " </table>
</div>
";
}
// line 152
echo " <fieldset class=\"pma-fieldset tblFooters\">
";
// line 153
if (((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/add-field")) || (($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/structure/save")))) {
// line 154
echo " <input type=\"checkbox\" name=\"online_transaction\" value=\"ONLINE_TRANSACTION_ENABLED\" />";
echo _pgettext("Online transaction part of the SQL DDL for InnoDB", "Online transaction");
echo PhpMyAdmin\Html\MySQLDocumentation::show("innodb-online-ddl");
echo "
";
}
// line 156
echo " <input class=\"btn btn-secondary preview_sql\" type=\"button\"
value=\"";
echo _gettext("Preview SQL");
// line 157
echo "\">
<input class=\"btn btn-primary\" type=\"submit\"
name=\"do_save_data\"
value=\"";
echo _gettext("Save");
// line 160
echo "\">
</fieldset>
<div id=\"properties_message\"></div>
";
// line 163
if (($context["is_integers_length_restricted"] ?? null)) {
// line 164
echo " <div class=\"alert alert-primary\" id=\"length_not_allowed\" role=\"alert\">
";
// line 165
echo PhpMyAdmin\Html\Generator::getImage("s_notice");
echo "
";
echo _gettext("The column width of integer types is ignored in your MySQL version unless defining a TINYINT(1) column");
// line 167
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("", false, "https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-19.html");
echo "
</div>
";
}
// line 170
echo "</form>
<div class=\"modal fade\" id=\"previewSqlModal\" tabindex=\"-1\" aria-labelledby=\"previewSqlModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"previewSqlModalLabel\">";
echo _gettext("Loading");
// line 175
echo "</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Close");
// line 176
echo "\"></button>
</div>
<div class=\"modal-body\">
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" id=\"previewSQLCloseButton\" data-bs-dismiss=\"modal\">";
echo _gettext("Close");
// line 181
echo "</button>
</div>
</div>
</div>
</div>
";
// line 188
echo twig_include($this->env, $context, "modals/enum_set_editor.twig");
echo "
";
}
public function getTemplateName()
{
return "columns_definitions/column_definitions_form.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 394 => 188, 386 => 181, 378 => 176, 374 => 175, 366 => 170, 359 => 167, 354 => 165, 351 => 164, 349 => 163, 344 => 160, 338 => 157, 334 => 156, 327 => 154, 325 => 153, 322 => 152, 317 => 149, 312 => 146, 310 => 144, 309 => 143, 308 => 142, 299 => 137, 294 => 134, 292 => 133, 283 => 127, 274 => 120, 267 => 118, 265 => 117, 262 => 116, 253 => 115, 249 => 114, 246 => 113, 239 => 109, 232 => 107, 225 => 105, 223 => 104, 220 => 103, 214 => 102, 210 => 101, 203 => 100, 199 => 99, 189 => 92, 176 => 83, 167 => 78, 161 => 74, 156 => 72, 150 => 69, 147 => 68, 144 => 67, 142 => 65, 141 => 64, 140 => 63, 139 => 62, 138 => 61, 137 => 60, 136 => 59, 135 => 58, 134 => 57, 133 => 56, 132 => 55, 131 => 54, 130 => 53, 129 => 52, 128 => 51, 126 => 50, 123 => 49, 115 => 43, 110 => 41, 100 => 33, 92 => 28, 85 => 23, 79 => 20, 77 => 19, 72 => 17, 68 => 15, 64 => 13, 60 => 11, 56 => 9, 54 => 8, 52 => 7, 50 => 6, 46 => 4, 43 => 3, 41 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/column_definitions_form.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/column_definitions_form.twig");
}
}

View File

@@ -0,0 +1,294 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/body_for_table_summary.twig */
class __TwigTemplate_69284dda15b79fe31095f0c0f4e9f2db extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<tfoot id=\"tbl_summary_row\">
<tr>
<th class=\"d-print-none\"></th>
<th class=\"tbl_num text-nowrap\">
";
// line 5
ob_start(function () { return ''; });
echo _ngettext("%s table", "%s tables", abs( // line 6
($context["num_tables"] ?? null)));
$context["num_tables_trans"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 8
echo " ";
echo twig_escape_filter($this->env, twig_sprintf(($context["num_tables_trans"] ?? null), PhpMyAdmin\Util::formatNumber(($context["num_tables"] ?? null), 0)), "html", null, true);
echo "
</th>
";
// line 10
if (($context["server_replica_status"] ?? null)) {
// line 11
echo " <th>";
echo _gettext("Replication");
echo "</th>
";
}
// line 13
echo " ";
$context["sum_colspan"] = ((($context["db_is_system_schema"] ?? null)) ? (4) : (7));
// line 14
echo " ";
if ((($context["num_favorite_tables"] ?? null) == 0)) {
// line 15
echo " ";
$context["sum_colspan"] = (($context["sum_colspan"] ?? null) - 1);
// line 16
echo " ";
}
// line 17
echo " <th colspan=\"";
echo twig_escape_filter($this->env, ($context["sum_colspan"] ?? null), "html", null, true);
echo "\" class=\"d-print-none\">";
echo _gettext("Sum");
echo "</th>
";
// line 18
$context["row_count_sum"] = PhpMyAdmin\Util::formatNumber(($context["sum_entries"] ?? null), 0);
// line 19
echo " ";
// line 20
echo " ";
$context["row_sum_url"] = [];
// line 21
echo " ";
if (array_key_exists("approx_rows", $context)) {
// line 22
echo " ";
$context["row_sum_url"] = ["ajax_request" => true, "db" => // line 24
($context["db"] ?? null), "real_row_count_all" => "true"];
// line 27
echo " ";
}
// line 28
echo " ";
if (($context["approx_rows"] ?? null)) {
// line 29
echo " ";
ob_start(function () { return ''; });
// line 30
echo "<a href=\"";
echo PhpMyAdmin\Url::getFromRoute("/database/structure/real-row-count", ($context["row_sum_url"] ?? null));
echo "\" class=\"ajax row_count_sum\">~";
// line 31
echo twig_escape_filter($this->env, ($context["row_count_sum"] ?? null), "html", null, true);
// line 32
echo "</a>";
$context["cell_text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 34
echo " ";
} else {
// line 35
echo " ";
$context["cell_text"] = ($context["row_count_sum"] ?? null);
// line 36
echo " ";
}
// line 37
echo " <th class=\"value tbl_rows font-monospace text-end\">";
echo twig_escape_filter($this->env, ($context["cell_text"] ?? null), "html", null, true);
echo "</th>
";
// line 38
if ( !(($context["properties_num_columns"] ?? null) > 1)) {
// line 39
echo " ";
// line 40
echo " ";
$context["default_engine"] = twig_get_attribute($this->env, $this->source, ($context["dbi"] ?? null), "fetchValue", [0 => "SELECT @@storage_engine;"], "method", false, false, false, 40);
// line 41
echo " ";
if (twig_test_empty(($context["default_engine"] ?? null))) {
// line 42
echo " ";
// line 43
echo " ";
$context["default_engine"] = twig_get_attribute($this->env, $this->source, ($context["dbi"] ?? null), "fetchValue", [0 => "SELECT @@default_storage_engine;"], "method", false, false, false, 43);
// line 44
echo " ";
}
// line 45
echo " <th class=\"text-center\">
<dfn title=\"";
// line 46
echo twig_escape_filter($this->env, twig_sprintf(_gettext("%s is the default storage engine on this MySQL server."), ($context["default_engine"] ?? null)), "html", null, true);
echo "\">
";
// line 47
echo twig_escape_filter($this->env, ($context["default_engine"] ?? null), "html", null, true);
echo "
</dfn>
</th>
<th>
";
// line 51
if ( !twig_test_empty(($context["database_collation"] ?? null))) {
// line 52
echo " <dfn title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["database_collation"] ?? null), "description", [], "any", false, false, false, 52), "html", null, true);
echo " (";
echo _gettext("Default");
echo ")\">
";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["database_collation"] ?? null), "name", [], "any", false, false, false, 53), "html", null, true);
echo "
</dfn>
";
}
// line 56
echo " </th>
";
}
// line 58
echo "
";
// line 59
if (($context["is_show_stats"] ?? null)) {
// line 60
echo " ";
$context["sum"] = PhpMyAdmin\Util::formatByteDown(($context["sum_size"] ?? null), 3, 1);
// line 61
echo " ";
$context["sum_formatted"] = (($__internal_compile_0 = ($context["sum"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null);
// line 62
echo " ";
$context["sum_unit"] = (($__internal_compile_1 = ($context["sum"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[1] ?? null) : null);
// line 63
echo " <th class=\"value tbl_size font-monospace text-end\">";
echo twig_escape_filter($this->env, ($context["sum_formatted"] ?? null), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ($context["sum_unit"] ?? null), "html", null, true);
echo "</th>
";
// line 65
$context["overhead"] = PhpMyAdmin\Util::formatByteDown(($context["overhead_size"] ?? null), 3, 1);
// line 66
echo " ";
$context["overhead_formatted"] = (($__internal_compile_2 = ($context["overhead"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[0] ?? null) : null);
// line 67
echo " ";
$context["overhead_unit"] = (($__internal_compile_3 = ($context["overhead"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[1] ?? null) : null);
// line 68
echo " <th class=\"value tbl_overhead font-monospace text-end\">";
echo twig_escape_filter($this->env, ($context["overhead_formatted"] ?? null), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ($context["overhead_unit"] ?? null), "html", null, true);
echo "</th>
";
}
// line 70
echo "
";
// line 71
if (($context["show_charset"] ?? null)) {
// line 72
echo " <th>";
echo twig_escape_filter($this->env, ($context["database_charset"] ?? null), "html", null, true);
echo "</th>
";
}
// line 74
echo " ";
if (($context["show_comment"] ?? null)) {
// line 75
echo " <th></th>
";
}
// line 77
echo " ";
if (($context["show_creation"] ?? null)) {
// line 78
echo " <th class=\"value tbl_creation font-monospace text-end\">
";
// line 79
echo twig_escape_filter($this->env, ($context["create_time_all"] ?? null), "html", null, true);
echo "
</th>
";
}
// line 82
echo " ";
if (($context["show_last_update"] ?? null)) {
// line 83
echo " <th class=\"value tbl_last_update font-monospace text-end\">
";
// line 84
echo twig_escape_filter($this->env, ($context["update_time_all"] ?? null), "html", null, true);
echo "
</th>
";
}
// line 87
echo " ";
if (($context["show_last_check"] ?? null)) {
// line 88
echo " <th class=\"value tbl_last_check font-monospace text-end\">
";
// line 89
echo twig_escape_filter($this->env, ($context["check_time_all"] ?? null), "html", null, true);
echo "
</th>
";
}
// line 92
echo "</tr>
</tfoot>
";
}
public function getTemplateName()
{
return "database/structure/body_for_table_summary.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 270 => 92, 264 => 89, 261 => 88, 258 => 87, 252 => 84, 249 => 83, 246 => 82, 240 => 79, 237 => 78, 234 => 77, 230 => 75, 227 => 74, 221 => 72, 219 => 71, 216 => 70, 208 => 68, 205 => 67, 202 => 66, 200 => 65, 192 => 63, 189 => 62, 186 => 61, 183 => 60, 181 => 59, 178 => 58, 174 => 56, 168 => 53, 161 => 52, 159 => 51, 152 => 47, 148 => 46, 145 => 45, 142 => 44, 139 => 43, 137 => 42, 134 => 41, 131 => 40, 129 => 39, 127 => 38, 122 => 37, 119 => 36, 116 => 35, 113 => 34, 110 => 32, 108 => 31, 104 => 30, 101 => 29, 98 => 28, 95 => 27, 93 => 24, 91 => 22, 88 => 21, 85 => 20, 83 => 19, 81 => 18, 74 => 17, 71 => 16, 68 => 15, 65 => 14, 62 => 13, 56 => 11, 54 => 10, 48 => 8, 45 => 6, 43 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/body_for_table_summary.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/body_for_table_summary.twig");
}
}

View File

@@ -0,0 +1,83 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/bulk_action_modal.twig */
class __TwigTemplate_78721392c04ff23ce9f05d811e38f708 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<div class=\"modal fade\" id=\"bulkActionModal\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\"
tabindex=\"-1\" aria-labelledby=\"bulkActionLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"bulkActionLabel\"></h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Cancel");
// line 7
echo "\"></button>
</div>
<div class=\"modal-body\"></div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">";
echo _gettext("Cancel");
// line 11
echo "</button>
<button type=\"button\" class=\"btn btn-primary\" id=\"bulkActionContinue\">";
echo _gettext("Continue");
// line 12
echo "</button>
</div>
</div>
</div>
</div>";
}
public function getTemplateName()
{
return "database/structure/bulk_action_modal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 57 => 12, 53 => 11, 46 => 7, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/bulk_action_modal.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/bulk_action_modal.twig");
}
}

View File

@@ -0,0 +1,232 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/check_all_tables.twig */
class __TwigTemplate_fe12d6ca19ecbcdb1f0476a89680f3d2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<div class=\"clearfloat d-print-none\">
<img class=\"selectallarrow\" src=\"";
// line 2
echo twig_escape_filter($this->env, $this->extensions['PhpMyAdmin\Twig\AssetExtension']->getImagePath((("arrow_" . ($context["text_dir"] ?? null)) . ".png")), "html", null, true);
echo "\" width=\"38\" height=\"22\" alt=\"";
echo _gettext("With selected:");
echo "\">
<input type=\"checkbox\" id=\"tablesForm_checkall\" class=\"checkall_box\" title=\"";
echo _gettext("Check all");
// line 3
echo "\">
<label for=\"tablesForm_checkall\">";
echo _gettext("Check all");
// line 4
echo "</label>
";
// line 5
if ((($context["overhead_check"] ?? null) != "")) {
// line 6
echo " / <a href=\"#\" class=\"checkall-filter\" data-checkall-selector=\".tbl-overhead\">";
echo _gettext("Check tables having overhead");
echo "</a>
";
}
// line 8
echo " <select name=\"submit_mult\" style=\"margin: 0 3em 0 3em;\">
<option value=\"";
echo _gettext("With selected:");
// line 9
echo "\" selected=\"selected\">";
echo _gettext("With selected:");
echo "</option>
<option value=\"copy_tbl\">";
echo _gettext("Copy table");
// line 10
echo "</option>
<option value=\"show_create\">";
echo _gettext("Show create");
// line 11
echo "</option>
<option value=\"export\">";
echo _gettext("Export");
// line 12
echo "</option>
";
// line 13
if (( !($context["db_is_system_schema"] ?? null) && !($context["disable_multi_table"] ?? null))) {
// line 14
echo " <optgroup label=\"";
echo _gettext("Delete data or table");
echo "\">
<option value=\"empty_tbl\">";
echo _gettext("Empty");
// line 15
echo "</option>
<option value=\"drop_tbl\">";
echo _gettext("Drop");
// line 16
echo "</option>
</optgroup>
<optgroup label=\"";
echo _gettext("Table maintenance");
// line 18
echo "\">
<option value=\"analyze_tbl\">";
echo _gettext("Analyze table");
// line 19
echo "</option>
<option value=\"check_tbl\">";
echo _gettext("Check table");
// line 20
echo "</option>
<option value=\"checksum_tbl\">";
echo _gettext("Checksum table");
// line 21
echo "</option>
<option value=\"optimize_tbl\">";
echo _gettext("Optimize table");
// line 22
echo "</option>
<option value=\"repair_tbl\">";
echo _gettext("Repair table");
// line 23
echo "</option>
</optgroup>
<optgroup label=\"";
echo _gettext("Prefix");
// line 25
echo "\">
<option value=\"add_prefix_tbl\">";
echo _gettext("Add prefix to table");
// line 26
echo "</option>
<option value=\"replace_prefix_tbl\">";
echo _gettext("Replace table prefix");
// line 27
echo "</option>
<option value=\"copy_tbl_change_prefix\">";
echo _gettext("Copy table with prefix");
// line 28
echo "</option>
</optgroup>
";
}
// line 31
echo " ";
if ((array_key_exists("central_columns_work", $context) && ($context["central_columns_work"] ?? null))) {
// line 32
echo " <optgroup label=\"";
echo _gettext("Central columns");
echo "\">
<option value=\"sync_unique_columns_central_list\">";
echo _gettext("Add columns to central list");
// line 33
echo "</option>
<option value=\"delete_unique_columns_central_list\">";
echo _gettext("Remove columns from central list");
// line 34
echo "</option>
<option value=\"make_consistent_with_central_list\">";
echo _gettext("Make consistent with central list");
// line 35
echo "</option>
</optgroup>
";
}
// line 38
echo " </select>
";
// line 39
echo twig_join_filter(($context["hidden_fields"] ?? null), "
");
echo "
</div>
";
// line 42
if ((array_key_exists("central_columns_work", $context) && ($context["central_columns_work"] ?? null))) {
// line 43
echo " <div class=\"modal fade\" id=\"makeConsistentWithCentralListModal\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\"
tabindex=\"-1\" aria-labelledby=\"makeConsistentWithCentralListModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"makeConsistentWithCentralListModalLabel\">";
echo _gettext("Are you sure?");
// line 48
echo "</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Cancel");
// line 49
echo "\"></button>
</div>
<div class=\"modal-body\">
";
// line 52
echo PhpMyAdmin\Sanitize::sanitizeMessage(_gettext("This action may change some of the columns definition.[br]Are you sure you want to continue?"));
echo "
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">";
echo _gettext("Cancel");
// line 55
echo "</button>
<button type=\"button\" class=\"btn btn-primary\" id=\"makeConsistentWithCentralListContinue\">";
echo _gettext("Continue");
// line 56
echo "</button>
</div>
</div>
</div>
</div>
";
}
}
public function getTemplateName()
{
return "database/structure/check_all_tables.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 204 => 56, 200 => 55, 193 => 52, 188 => 49, 184 => 48, 176 => 43, 174 => 42, 167 => 39, 164 => 38, 159 => 35, 155 => 34, 151 => 33, 145 => 32, 142 => 31, 137 => 28, 133 => 27, 129 => 26, 125 => 25, 120 => 23, 116 => 22, 112 => 21, 108 => 20, 104 => 19, 100 => 18, 95 => 16, 91 => 15, 85 => 14, 83 => 13, 80 => 12, 76 => 11, 72 => 10, 66 => 9, 62 => 8, 56 => 6, 54 => 5, 51 => 4, 47 => 3, 40 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/check_all_tables.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/check_all_tables.twig");
}
}

View File

@@ -0,0 +1,120 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* columns_definitions/column_attribute.twig */
class __TwigTemplate_5145b2efc254bde36d37001dbe5e8f76 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
if ((array_key_exists("submit_attribute", $context) && (($context["submit_attribute"] ?? null) != false))) {
// line 2
echo " ";
$context["attribute"] = ($context["submit_attribute"] ?? null);
// line 3
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, // line 4
($context["column_meta"] ?? null), "Extra", [], "array", true, true, false, 4) && (twig_in_filter("on update current_timestamp", (($__internal_compile_0 = // line 5
($context["column_meta"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["Extra"] ?? null) : null)) || twig_in_filter("on update current_timestamp()", twig_lower_filter($this->env, (($__internal_compile_1 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["Extra"] ?? null) : null)))))) {
// line 6
echo " ";
$context["attribute"] = "on update CURRENT_TIMESTAMP";
} elseif (twig_get_attribute($this->env, $this->source, // line 7
($context["extracted_columnspec"] ?? null), "attribute", [], "array", true, true, false, 7)) {
// line 8
echo " ";
$context["attribute"] = (($__internal_compile_2 = ($context["extracted_columnspec"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["attribute"] ?? null) : null);
} else {
// line 10
echo " ";
$context["attribute"] = "";
}
// line 12
$context["attribute"] = twig_upper_filter($this->env, ($context["attribute"] ?? null));
// line 13
echo "<select name=\"field_attribute[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\"
id=\"field_";
// line 14
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\">
";
// line 15
$context["cnt_attribute_types"] = (twig_length_filter($this->env, ($context["attribute_types"] ?? null)) - 1);
// line 16
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, ($context["cnt_attribute_types"] ?? null)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 17
echo " <option value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_3 = ($context["attribute_types"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[$context["i"]] ?? null) : null), "html", null, true);
echo "\"";
// line 18
echo (((($context["attribute"] ?? null) == twig_upper_filter($this->env, (($__internal_compile_4 = ($context["attribute_types"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4[$context["i"]] ?? null) : null)))) ? (" selected=\"selected\"") : (""));
echo ">
";
// line 19
echo twig_escape_filter($this->env, (($__internal_compile_5 = ($context["attribute_types"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[$context["i"]] ?? null) : null), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo "</select>
";
}
public function getTemplateName()
{
return "columns_definitions/column_attribute.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 97 => 22, 88 => 19, 84 => 18, 80 => 17, 75 => 16, 73 => 15, 67 => 14, 62 => 13, 60 => 12, 56 => 10, 52 => 8, 50 => 7, 47 => 6, 45 => 5, 44 => 4, 42 => 3, 39 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/column_attribute.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/column_attribute.twig");
}
}

View File

@@ -0,0 +1,499 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* table/search/index.twig */
class __TwigTemplate_d5e802d0f6d1e171672e264f9bba51c6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<ul class=\"nav nav-pills m-2\">
<li class=\"nav-item\">
<a class=\"nav-link active\" href=\"";
// line 3
echo PhpMyAdmin\Url::getFromRoute("/table/search", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null), "pos" => 0]);
echo "\">
";
// line 4
echo PhpMyAdmin\Html\Generator::getIcon("b_search", _gettext("Table search"), false, false, "TabsMode");
echo "
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 9
echo PhpMyAdmin\Url::getFromRoute("/table/zoom-search", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)]);
echo "\">
";
// line 10
echo PhpMyAdmin\Html\Generator::getIcon("b_select", _gettext("Zoom search"), false, false, "TabsMode");
echo "
</a>
</li>
<li class=\"nav-item\">
<a class=\"nav-link\" href=\"";
// line 15
echo PhpMyAdmin\Url::getFromRoute("/table/find-replace", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)]);
echo "\">
";
// line 16
echo PhpMyAdmin\Html\Generator::getIcon("b_find_replace", _gettext("Find and replace"), false, false, "TabsMode");
echo "
</a>
</li>
</ul>
<form method=\"post\" action=\"";
// line 21
echo PhpMyAdmin\Url::getFromRoute("/table/search");
echo "\" name=\"insertForm\" id=\"tbl_search_form\" class=\"ajax lock-page\">
";
// line 22
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null), ($context["table"] ?? null));
echo "
<input type=\"hidden\" name=\"goto\" value=\"";
// line 23
echo twig_escape_filter($this->env, ($context["goto"] ?? null), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"back\" value=\"";
// line 24
echo PhpMyAdmin\Url::getFromRoute("/table/search");
echo "\">
<div class=\"card\">
<div class=\"card-header\">";
echo _gettext("Do a \"query by example\" (wildcard: \"%\")");
// line 27
echo "</div>
<div class=\"card-body\">
<div id=\"fieldset_table_qbe\">
<div class=\"table-responsive-md jsresponsive\">
<table class=\"table table-striped table-hover table-sm w-auto\">
<thead>
<tr>
";
// line 35
if (($context["geom_column_flag"] ?? null)) {
// line 36
echo " <th>";
echo _gettext("Function");
echo "</th>
";
}
// line 38
echo " <th>";
echo _gettext("Column");
echo "</th>
<th>";
echo _gettext("Type");
// line 39
echo "</th>
<th>";
echo _gettext("Collation");
// line 40
echo "</th>
<th>";
echo _gettext("Operator");
// line 41
echo "</th>
<th>";
echo _gettext("Value");
// line 42
echo "</th>
</tr>
</thead>
<tbody>
";
// line 46
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (twig_length_filter($this->env, ($context["column_names"] ?? null)) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["column_index"]) {
// line 47
echo " <tr class=\"noclick\">
";
// line 49
echo " ";
if (($context["geom_column_flag"] ?? null)) {
// line 50
echo " ";
// line 51
echo " <td>
";
// line 52
$context["geom_types"] = PhpMyAdmin\Utils\Gis::getDataTypes();
// line 53
echo " ";
if (twig_in_filter((($__internal_compile_0 = ($context["column_types"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[$context["column_index"]] ?? null) : null), ($context["geom_types"] ?? null))) {
// line 54
echo " <select class=\"geom_func\" name=\"geom_func[";
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
echo "]\">
";
// line 56
echo " ";
$context["funcs"] = PhpMyAdmin\Utils\Gis::getFunctions((($__internal_compile_1 = ($context["column_types"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[$context["column_index"]] ?? null) : null), true, true);
// line 57
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["funcs"] ?? null));
foreach ($context['_seq'] as $context["func_name"] => $context["func"]) {
// line 58
echo " ";
$context["name"] = ((twig_get_attribute($this->env, $this->source, $context["func"], "display", [], "array", true, true, false, 58)) ? ((($__internal_compile_2 = $context["func"]) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["display"] ?? null) : null)) : ($context["func_name"]));
// line 59
echo " <option value=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\">
";
// line 60
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['func_name'], $context['func'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo " </select>
";
}
// line 65
echo " </td>
";
}
// line 67
echo " ";
// line 68
echo " <th>";
// line 70
echo twig_escape_filter($this->env, (($__internal_compile_3 = ($context["column_names"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[$context["column_index"]] ?? null) : null), "html", null, true);
// line 71
echo "</th>
";
// line 72
$context["properties"] = twig_get_attribute($this->env, $this->source, ($context["self"] ?? null), "getColumnProperties", [0 => $context["column_index"], 1 => $context["column_index"]], "method", false, false, false, 72);
// line 73
echo " <td dir=\"ltr\">
";
// line 74
echo twig_escape_filter($this->env, (($__internal_compile_4 = ($context["properties"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["type"] ?? null) : null), "html", null, true);
echo "
</td>
<td>
";
// line 77
echo twig_escape_filter($this->env, (($__internal_compile_5 = ($context["properties"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["collation"] ?? null) : null), "html", null, true);
echo "
</td>
<td>
";
// line 80
echo (($__internal_compile_6 = ($context["properties"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["func"] ?? null) : null);
echo "
</td>
";
// line 83
echo " <td data-type=\"";
echo twig_escape_filter($this->env, (($__internal_compile_7 = ($context["properties"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["type"] ?? null) : null), "html", null, true);
echo "\">
";
// line 84
echo (($__internal_compile_8 = ($context["properties"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["value"] ?? null) : null);
echo "
";
// line 86
echo " <input type=\"hidden\" name=\"criteriaColumnNames[";
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
echo "]\" value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_9 = ($context["column_names"] ?? null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9[$context["column_index"]] ?? null) : null), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"criteriaColumnTypes[";
// line 87
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
echo "]\" value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_10 = ($context["column_types"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10[$context["column_index"]] ?? null) : null), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"criteriaColumnCollations[";
// line 88
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
echo "]\" value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_11 = ($context["column_collations"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11[$context["column_index"]] ?? null) : null), "html", null, true);
echo "\">
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column_index'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo " </tbody>
</table>
</div>
<div id=\"gis_editor\"></div>
<div id=\"popup_background\"></div>
</div>
";
// line 99
if ((($context["default_sliders_state"] ?? null) != "disabled")) {
// line 100
echo " <div>
<button class=\"btn btn-sm btn-secondary\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#searchExtraOptions\" aria-expanded=\"";
// line 101
echo (((($context["default_sliders_state"] ?? null) == "open")) ? ("true") : ("false"));
echo "\" aria-controls=\"searchExtraOptions\">
";
echo _gettext("Extra options");
// line 103
echo " </button>
</div>
<div class=\"collapse mt-3";
// line 105
echo (((($context["default_sliders_state"] ?? null) == "open")) ? (" show") : (""));
echo "\" id=\"searchExtraOptions\">
";
}
// line 107
echo "
";
// line 109
echo " <fieldset>
<div class=\"mb-3\">
<label class=\"form-label\" for=\"columnsToDisplaySelect\">";
echo _gettext("Select columns (at least one):");
// line 111
echo "</label>
<select class=\"form-select resize-vertical\" id=\"columnsToDisplaySelect\" name=\"columnsToDisplay[]\" size=\"";
// line 112
echo twig_escape_filter($this->env, min(twig_length_filter($this->env, ($context["column_names"] ?? null)), 10), "html", null, true);
echo "\" multiple>
";
// line 113
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["column_names"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["each_field"]) {
// line 114
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
echo "\" selected>
";
// line 115
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['each_field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo " </select>
</div>
<div class=\"form-check mb-3\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"distinct\" value=\"DISTINCT\" id=\"oDistinct\">
<label class=\"form-check-label\" for=\"oDistinct\" dir=\"ltr\" lang=\"en\">DISTINCT</label>
</div>
</fieldset>
";
// line 127
echo " <div class=\"mb-3\">
<label class=\"form-label\" for=\"customWhereClauseInput\">
<em>";
echo _gettext("Or");
// line 129
echo "</em>
";
echo _gettext("Add search conditions (body of the \"where\" clause):");
// line 131
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("Functions");
echo "
</label>
<input class=\"form-control\" id=\"customWhereClauseInput\" type=\"text\" name=\"customWhereClause\" size=\"64\">
</div>
";
// line 137
echo " <div class=\"mb-3\">
<label class=\"form-label\" for=\"maxRowsInput\">";
echo _gettext("Number of rows per page");
// line 138
echo "</label>
<input class=\"form-control\" id=\"maxRowsInput\" type=\"number\" name=\"session_max_rows\" min=\"1\" value=\"";
// line 139
echo twig_escape_filter($this->env, ($context["max_rows"] ?? null), "html", null, true);
echo "\" required>
</div>
";
// line 143
echo " <fieldset>
<legend class=\"visually-hidden\">";
echo _gettext("Display order:");
// line 144
echo "</legend>
<div class=\"mb-3\">
<label class=\"form-label\" for=\"orderByColumnSelect\">";
echo _gettext("Order by:");
// line 146
echo "</label>
<select class=\"form-select\" id=\"orderByColumnSelect\" name=\"orderByColumn\">
<option value=\"--nil--\" selected></option>
";
// line 149
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["column_names"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["each_field"]) {
// line 150
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
echo "\">
";
// line 151
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['each_field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 154
echo " </select>
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"order\" id=\"orderByAscRadio\" value=\"ASC\" checked>
<label class=\"form-check-label\" for=\"orderByAscRadio\">";
echo _gettext("Ascending");
// line 159
echo "</label>
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"radio\" name=\"order\" id=\"orderByDescRadio\" value=\"DESC\">
<label class=\"form-check-label\" for=\"orderByDescRadio\">";
echo _gettext("Descending");
// line 163
echo "</label>
</div>
</fieldset>
";
// line 166
if ((($context["default_sliders_state"] ?? null) != "disabled")) {
// line 167
echo " </div>
";
}
// line 169
echo " </div>
<div class=\"card-footer\">
<input class=\"btn btn-primary\" type=\"submit\" name=\"submit\" value=\"";
echo _gettext("Go");
// line 172
echo "\">
</div>
</div>
</form>
<div class=\"modal fade\" id=\"rangeSearchModal\" tabindex=\"-1\" aria-labelledby=\"rangeSearchModalLabel\" aria-hidden=\"false\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"rangeSearchModalLabel\">";
echo _gettext("Range search");
// line 181
echo "</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Close");
// line 182
echo "\"></button>
</div>
<div class=\"modal-body\">
<fieldset class=\"pma-fieldset\">
<legend id=\"rangeSearchLegend\"></legend>
<label for=\"min_value\">";
echo _gettext("Minimum value:");
// line 187
echo "</label>
<input type=\"text\" id=\"min_value\"><br>
<span class=\"small_font\" id=\"rangeSearchMin\"></span><br>
<label for=\"max_value\">";
echo _gettext("Maximum value:");
// line 190
echo "</label>
<input type=\"text\" id=\"max_value\"><br>
<span class=\"small_font\" id=\"rangeSearchMax\"></span>
</fieldset>
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" id=\"rangeSearchModalGo\">";
echo _gettext("Go");
// line 196
echo "</button>
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">";
echo _gettext("Cancel");
// line 197
echo "</button>
</div>
</div>
</div>
</div>
<div id=\"sqlqueryresultsouter\"></div>
";
}
public function getTemplateName()
{
return "table/search/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 470 => 197, 466 => 196, 457 => 190, 451 => 187, 443 => 182, 439 => 181, 427 => 172, 421 => 169, 417 => 167, 415 => 166, 410 => 163, 403 => 159, 395 => 154, 386 => 151, 381 => 150, 377 => 149, 372 => 146, 367 => 144, 363 => 143, 357 => 139, 354 => 138, 350 => 137, 341 => 131, 337 => 129, 332 => 127, 322 => 118, 313 => 115, 308 => 114, 304 => 113, 300 => 112, 297 => 111, 292 => 109, 289 => 107, 284 => 105, 280 => 103, 275 => 101, 272 => 100, 270 => 99, 261 => 92, 249 => 88, 243 => 87, 236 => 86, 232 => 84, 227 => 83, 222 => 80, 216 => 77, 210 => 74, 207 => 73, 205 => 72, 202 => 71, 200 => 70, 198 => 68, 196 => 67, 192 => 65, 188 => 63, 179 => 60, 174 => 59, 171 => 58, 166 => 57, 163 => 56, 158 => 54, 155 => 53, 153 => 52, 150 => 51, 148 => 50, 145 => 49, 142 => 47, 138 => 46, 132 => 42, 128 => 41, 124 => 40, 120 => 39, 114 => 38, 108 => 36, 106 => 35, 96 => 27, 89 => 24, 85 => 23, 81 => 22, 77 => 21, 69 => 16, 65 => 15, 57 => 10, 53 => 9, 45 => 4, 41 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "table/search/index.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/search/index.twig");
}
}

View File

@@ -0,0 +1,80 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/favorite_anchor.twig */
class __TwigTemplate_9f54959d5f89f3ec53606b059b5708a2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<a id=\"";
echo twig_escape_filter($this->env, ($context["table_name_hash"] ?? null), "html", null, true);
echo "_favorite_anchor\"
class=\"ajax favorite_table_anchor\"
href=\"";
// line 3
echo PhpMyAdmin\Url::getFromRoute("/database/structure/favorite-table", ($context["fav_params"] ?? null));
echo "\"
title=\"";
// line 4
echo twig_escape_filter($this->env, ((($context["already_favorite"] ?? null)) ? (_gettext("Remove from Favorites")) : (_gettext("Add to Favorites"))), "html", null, true);
echo "\"
data-favtargets=\"";
// line 5
echo twig_escape_filter($this->env, ($context["db_table_name_hash"] ?? null), "html", null, true);
echo "\">
";
// line 6
echo ((($context["already_favorite"] ?? null)) ? (PhpMyAdmin\Html\Generator::getIcon("b_favorite")) : (PhpMyAdmin\Html\Generator::getIcon("b_no_favorite")));
echo "
</a>
";
}
public function getTemplateName()
{
return "database/structure/favorite_anchor.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 55 => 6, 51 => 5, 47 => 4, 43 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/favorite_anchor.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/favorite_anchor.twig");
}
}

View File

@@ -0,0 +1,69 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* table/search/column_comparison_operators.twig */
class __TwigTemplate_fe827019cb9e487f8c3927b719c65fef extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<select class=\"column-operator\" id=\"ColumnOperator";
echo twig_escape_filter($this->env, ($context["search_index"] ?? null), "html", null, true);
echo "\" name=\"criteriaColumnOperators[";
echo twig_escape_filter($this->env, ($context["search_index"] ?? null), "html", null, true);
echo "]\">
";
// line 2
echo ($context["type_operators"] ?? null);
echo "
</select>
";
}
public function getTemplateName()
{
return "table/search/column_comparison_operators.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 44 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "table/search/column_comparison_operators.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/search/column_comparison_operators.twig");
}
}

View File

@@ -0,0 +1,287 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* columns_definitions/table_fields_definitions.twig */
class __TwigTemplate_03ae9f274690423717f183a90adc8f6e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<div class=\"responsivetable\">
<table id=\"table_columns\" class=\"table table-striped caption-top align-middle mb-0 noclick\">
<caption class=\"tblHeaders\">
";
echo _gettext("Structure");
// line 5
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("CREATE_TABLE");
echo "
</caption>
<tr>
<th>
";
echo _gettext("Name");
// line 10
echo " </th>
<th>
";
echo _gettext("Type");
// line 13
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("data-types");
echo "
</th>
<th>
";
echo _gettext("Length/Values");
// line 17
echo " ";
echo PhpMyAdmin\Html\Generator::showHint(_gettext("If column type is \"enum\" or \"set\", please enter the values using this format: 'a','b','c'…<br>If you ever need to put a backslash (\"\\\") or a single quote (\"'\") amongst those values, precede it with a backslash (for example '\\\\xyz' or 'a\\'b')."));
echo "
</th>
<th>
";
echo _gettext("Default");
// line 21
echo " ";
echo PhpMyAdmin\Html\Generator::showHint(_gettext("For default values, please enter just a single value, without backslash escaping or quotes, using this format: a"));
echo "
</th>
<th>
";
echo _gettext("Collation");
// line 25
echo " </th>
<th>
";
echo _gettext("Attributes");
// line 28
echo " </th>
<th>
";
echo _gettext("Null");
// line 31
echo " </th>
";
// line 34
echo " ";
if ((array_key_exists("change_column", $context) && !twig_test_empty(($context["change_column"] ?? null)))) {
// line 35
echo " <th>
";
echo _gettext("Adjust privileges");
// line 37
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("faq", "faq6-39");
echo "
</th>
";
}
// line 40
echo "
";
// line 44
echo " ";
if ( !($context["is_backup"] ?? null)) {
// line 45
echo " <th>
";
echo _gettext("Index");
// line 47
echo " </th>
";
}
// line 49
echo "
<th>
<abbr title=\"AUTO_INCREMENT\">A_I</abbr>
</th>
<th>
";
echo _gettext("Comments");
// line 55
echo " </th>
";
// line 57
if (($context["is_virtual_columns_supported"] ?? null)) {
// line 58
echo " <th>
";
echo _gettext("Virtuality");
// line 60
echo " </th>
";
}
// line 62
echo "
";
// line 63
if (array_key_exists("fields_meta", $context)) {
// line 64
echo " <th>
";
echo _gettext("Move column");
// line 66
echo " </th>
";
}
// line 68
echo "
";
// line 69
if (( !(null === twig_get_attribute($this->env, $this->source, ($context["relation_parameters"] ?? null), "browserTransformationFeature", [], "any", false, false, false, 69)) && ($context["browse_mime"] ?? null))) {
// line 70
echo " <th>
";
echo _gettext("Media type");
// line 72
echo " </th>
<th>
<a href=\"";
// line 74
echo PhpMyAdmin\Url::getFromRoute("/transformation/overview");
echo "#transformation\" title=\"";
echo _gettext("List of available transformations and their options");
// line 76
echo "\" target=\"_blank\">
";
echo _gettext("Browser display transformation");
// line 78
echo " </a>
</th>
<th>
";
echo _gettext("Browser display transformation options");
// line 82
echo " ";
echo PhpMyAdmin\Html\Generator::showHint(_gettext("Please enter the values for transformation options using this format: 'a', 100, b,'c'…<br>If you ever need to put a backslash (\"\\\") or a single quote (\"'\") amongst those values, precede it with a backslash (for example '\\\\xyz' or 'a\\'b')."));
echo "
</th>
<th>
<a href=\"";
// line 85
echo PhpMyAdmin\Url::getFromRoute("/transformation/overview");
echo "#input_transformation\"
title=\"";
echo _gettext("List of available transformations and their options");
// line 86
echo "\"
target=\"_blank\">
";
echo _gettext("Input transformation");
// line 89
echo " </a>
</th>
<th>
";
echo _gettext("Input transformation options");
// line 93
echo " ";
echo PhpMyAdmin\Html\Generator::showHint(_gettext("Please enter the values for transformation options using this format: 'a', 100, b,'c'…<br>If you ever need to put a backslash (\"\\\") or a single quote (\"'\") amongst those values, precede it with a backslash (for example '\\\\xyz' or 'a\\'b')."));
echo "
</th>
";
}
// line 96
echo " </tr>
";
// line 97
$context["options"] = ["" => "", "VIRTUAL" => "VIRTUAL"];
// line 98
echo " ";
if (($context["supports_stored_keyword"] ?? null)) {
// line 99
echo " ";
$context["options"] = twig_array_merge(($context["options"] ?? null), ["STORED" => "STORED"]);
// line 100
echo " ";
} else {
// line 101
echo " ";
$context["options"] = twig_array_merge(($context["options"] ?? null), ["PERSISTENT" => "PERSISTENT"]);
// line 102
echo " ";
}
// line 103
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["content_cells"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["content_row"]) {
// line 104
echo " <tr>
";
// line 105
$this->loadTemplate("columns_definitions/column_attributes.twig", "columns_definitions/table_fields_definitions.twig", 105)->display(twig_to_array(twig_array_merge($context["content_row"], ["options" => // line 106
($context["options"] ?? null), "change_column" => // line 107
($context["change_column"] ?? null), "is_virtual_columns_supported" => // line 108
($context["is_virtual_columns_supported"] ?? null), "browse_mime" => // line 109
($context["browse_mime"] ?? null), "max_rows" => // line 110
($context["max_rows"] ?? null), "char_editing" => // line 111
($context["char_editing"] ?? null), "attribute_types" => // line 112
($context["attribute_types"] ?? null), "privs_available" => // line 113
($context["privs_available"] ?? null), "max_length" => // line 114
($context["max_length"] ?? null), "charsets" => // line 115
($context["charsets"] ?? null), "relation_parameters" => // line 116
($context["relation_parameters"] ?? null)])));
// line 118
echo " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['content_row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo "</table>
</div>
";
}
public function getTemplateName()
{
return "columns_definitions/table_fields_definitions.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 263 => 120, 256 => 118, 254 => 116, 253 => 115, 252 => 114, 251 => 113, 250 => 112, 249 => 111, 248 => 110, 247 => 109, 246 => 108, 245 => 107, 244 => 106, 243 => 105, 240 => 104, 235 => 103, 232 => 102, 229 => 101, 226 => 100, 223 => 99, 220 => 98, 218 => 97, 215 => 96, 208 => 93, 202 => 89, 197 => 86, 192 => 85, 185 => 82, 179 => 78, 175 => 76, 171 => 74, 167 => 72, 163 => 70, 161 => 69, 158 => 68, 154 => 66, 150 => 64, 148 => 63, 145 => 62, 141 => 60, 137 => 58, 135 => 57, 131 => 55, 123 => 49, 119 => 47, 115 => 45, 112 => 44, 109 => 40, 102 => 37, 98 => 35, 95 => 34, 91 => 31, 86 => 28, 81 => 25, 73 => 21, 65 => 17, 57 => 13, 52 => 10, 43 => 5, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/table_fields_definitions.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/table_fields_definitions.twig");
}
}

View File

@@ -0,0 +1,123 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* table/delete/confirm.twig */
class __TwigTemplate_f145f0218e726c71f13e89b1582fa98c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<form action=\"";
echo PhpMyAdmin\Url::getFromRoute("/table/delete/rows");
echo "\" method=\"post\">
";
// line 2
echo PhpMyAdmin\Url::getHiddenInputs(["db" => // line 3
($context["db"] ?? null), "table" => // line 4
($context["table"] ?? null), "selected" => // line 5
($context["selected"] ?? null), "original_sql_query" => // line 6
($context["sql_query"] ?? null), "fk_checks" => "0"]);
// line 8
echo "
<fieldset class=\"pma-fieldset confirmation\">
<legend>
";
echo _gettext("Do you really want to execute the following query?");
// line 13
echo " </legend>
<ul>
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["selected"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 17
echo " <li><code>DELETE FROM ";
echo twig_escape_filter($this->env, PhpMyAdmin\Util::backquote(($context["table"] ?? null)), "html", null, true);
echo " WHERE ";
echo twig_escape_filter($this->env, $context["row"], "html", null, true);
echo ";</code></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " </ul>
</fieldset>
<fieldset class=\"pma-fieldset tblFooters\">
<div id=\"foreignkeychk\" class=\"float-start\">
<input type=\"checkbox\" name=\"fk_checks\" id=\"fk_checks\" value=\"1\"";
// line 24
echo ((($context["is_foreign_key_check"] ?? null)) ? (" checked") : (""));
echo ">
<label for=\"fk_checks\">";
echo _gettext("Enable foreign key checks");
// line 25
echo "</label>
</div>
<div class=\"float-end\">
<input id=\"buttonYes\" class=\"btn btn-secondary\" type=\"submit\" name=\"mult_btn\" value=\"";
echo _gettext("Yes");
// line 28
echo "\">
<input id=\"buttonNo\" class=\"btn btn-secondary\" type=\"submit\" name=\"mult_btn\" value=\"";
echo _gettext("No");
// line 29
echo "\">
</div>
</fieldset>
</form>
";
}
public function getTemplateName()
{
return "table/delete/confirm.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 97 => 29, 93 => 28, 87 => 25, 82 => 24, 75 => 19, 64 => 17, 60 => 16, 55 => 13, 48 => 8, 46 => 6, 45 => 5, 44 => 4, 43 => 3, 42 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "table/delete/confirm.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/delete/confirm.twig");
}
}

View File

@@ -0,0 +1,269 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* database/structure/table_header.twig */
class __TwigTemplate_d5585fbc73e6ccad142c723ccf43ddb3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<form method=\"post\" action=\"";
echo PhpMyAdmin\Url::getFromRoute("/database/structure");
echo "\" name=\"tablesForm\" id=\"tablesForm\">
";
// line 2
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
echo "
<div class=\"table-responsive\">
<table class=\"table table-striped table-hover table-sm w-auto data\">
<thead>
<tr>
<th class=\"d-print-none\"></th>
<th>";
// line 8
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Table"), "table");
echo "</th>
";
// line 9
if (($context["replication"] ?? null)) {
// line 10
echo " <th>";
echo _gettext("Replication");
echo "</th>
";
}
// line 12
echo "
";
// line 13
if (($context["db_is_system_schema"] ?? null)) {
// line 14
echo " ";
$context["action_colspan"] = 3;
// line 15
echo " ";
} else {
// line 16
echo " ";
$context["action_colspan"] = 6;
// line 17
echo " ";
}
// line 18
echo " ";
if ((($context["num_favorite_tables"] ?? null) > 0)) {
// line 19
echo " ";
$context["action_colspan"] = (($context["action_colspan"] ?? null) + 1);
// line 20
echo " ";
}
// line 21
echo " <th colspan=\"";
echo twig_escape_filter($this->env, ($context["action_colspan"] ?? null), "html", null, true);
echo "\" class=\"d-print-none\">
";
echo _gettext("Action");
// line 23
echo " </th>
";
// line 25
echo " <th>
";
// line 26
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Rows"), "records", "DESC");
echo "
";
// line 27
echo PhpMyAdmin\Html\Generator::showHint(PhpMyAdmin\Sanitize::sanitizeMessage(_gettext("May be approximate. Click on the number to get the exact count. See [doc@faq3-11]FAQ 3.11[/doc].")));
echo "
</th>
";
// line 29
if ( !(($context["properties_num_columns"] ?? null) > 1)) {
// line 30
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Type"), "type");
echo "</th>
<th>";
// line 31
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Collation"), "collation");
echo "</th>
";
}
// line 33
echo "
";
// line 34
if (($context["is_show_stats"] ?? null)) {
// line 35
echo " ";
// line 36
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Size"), "size", "DESC");
echo "</th>
";
// line 38
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Overhead"), "overhead", "DESC");
echo "</th>
";
}
// line 40
echo "
";
// line 41
if (($context["show_charset"] ?? null)) {
// line 42
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Charset"), "charset");
echo "</th>
";
}
// line 44
echo "
";
// line 45
if (($context["show_comment"] ?? null)) {
// line 46
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Comment"), "comment");
echo "</th>
";
}
// line 48
echo "
";
// line 49
if (($context["show_creation"] ?? null)) {
// line 50
echo " ";
// line 51
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Creation"), "creation", "DESC");
echo "</th>
";
}
// line 53
echo "
";
// line 54
if (($context["show_last_update"] ?? null)) {
// line 55
echo " ";
// line 56
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Last update"), "last_update", "DESC");
echo "</th>
";
}
// line 58
echo "
";
// line 59
if (($context["show_last_check"] ?? null)) {
// line 60
echo " ";
// line 61
echo " <th>";
echo PhpMyAdmin\Util::sortableTableHeader(_gettext("Last check"), "last_check", "DESC");
echo "</th>
";
}
// line 63
echo " </tr>
</thead>
<tbody>
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["structure_table_rows"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["structure_table_row"]) {
// line 67
echo " ";
$this->loadTemplate("database/structure/structure_table_row.twig", "database/structure/table_header.twig", 67)->display(twig_to_array($context["structure_table_row"]));
// line 68
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['structure_table_row'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 69
echo " </tbody>
";
// line 70
if (($context["body_for_table_summary"] ?? null)) {
// line 71
echo " ";
$this->loadTemplate("database/structure/body_for_table_summary.twig", "database/structure/table_header.twig", 71)->display(twig_to_array(($context["body_for_table_summary"] ?? null)));
// line 72
echo " ";
}
// line 73
echo "</table>
</div>
";
// line 75
if (($context["check_all_tables"] ?? null)) {
// line 76
echo " ";
$this->loadTemplate("database/structure/check_all_tables.twig", "database/structure/table_header.twig", 76)->display(twig_to_array(($context["check_all_tables"] ?? null)));
}
// line 78
echo "</form>
";
// line 79
if (($context["check_all_tables"] ?? null)) {
// line 80
echo " ";
$this->loadTemplate("database/structure/bulk_action_modal.twig", "database/structure/table_header.twig", 80)->display(twig_to_array(($context["check_all_tables"] ?? null)));
}
}
public function getTemplateName()
{
return "database/structure/table_header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 245 => 80, 243 => 79, 240 => 78, 236 => 76, 234 => 75, 230 => 73, 227 => 72, 224 => 71, 222 => 70, 219 => 69, 213 => 68, 210 => 67, 206 => 66, 201 => 63, 195 => 61, 193 => 60, 191 => 59, 188 => 58, 182 => 56, 180 => 55, 178 => 54, 175 => 53, 169 => 51, 167 => 50, 165 => 49, 162 => 48, 156 => 46, 154 => 45, 151 => 44, 145 => 42, 143 => 41, 140 => 40, 134 => 38, 129 => 36, 127 => 35, 125 => 34, 122 => 33, 117 => 31, 112 => 30, 110 => 29, 105 => 27, 101 => 26, 98 => 25, 95 => 23, 89 => 21, 86 => 20, 83 => 19, 80 => 18, 77 => 17, 74 => 16, 71 => 15, 68 => 14, 66 => 13, 63 => 12, 57 => 10, 55 => 9, 51 => 8, 42 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "database/structure/table_header.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/database/structure/table_header.twig");
}
}

View File

@@ -0,0 +1,103 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* sql/no_results_returned.twig */
class __TwigTemplate_6d927ee313bd3a042ab316b41cecc8a7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo ($context["message"] ?? null);
echo "
";
// line 3
echo ($context["sql_query_results_table"] ?? null);
echo "
";
// line 5
echo ($context["profiling_chart"] ?? null);
echo "
";
// line 7
if ( !($context["is_procedure"] ?? null)) {
// line 8
echo " <fieldset class=\"pma-fieldset d-print-none\">
<legend>";
echo _gettext("Query results operations");
// line 9
echo "</legend>
<span>
";
// line 11
echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/view/create"), ["db" => // line 13
($context["db"] ?? null), "table" => ($context["table"] ?? null), "printview" => "1", "sql_query" => ($context["sql_query"] ?? null)], PhpMyAdmin\Html\Generator::getIcon("b_view_add", _gettext("Create view"), true), ["class" => "create_view ajax btn"]);
// line 16
echo "
</span>
</fieldset>
";
}
// line 20
echo "
";
// line 21
echo ($context["bookmark"] ?? null);
echo "
";
// line 23
echo twig_include($this->env, $context, "modals/create_view.twig");
echo "
";
}
public function getTemplateName()
{
return "sql/no_results_returned.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 79 => 23, 74 => 21, 71 => 20, 65 => 16, 63 => 13, 62 => 11, 58 => 9, 54 => 8, 52 => 7, 47 => 5, 42 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "sql/no_results_returned.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/sql/no_results_returned.twig");
}
}

View File

@@ -0,0 +1,809 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* columns_definitions/column_attributes.twig */
class __TwigTemplate_a02ac9da12a1fae84f3488071e5c51dc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 2
$context["ci"] = 0;
// line 3
echo "
";
// line 6
$context["ci_offset"] = -1;
// line 7
echo "
<td class=\"text-center\">
";
// line 10
echo " ";
$this->loadTemplate("columns_definitions/column_name.twig", "columns_definitions/column_attributes.twig", 10)->display(twig_to_array(["column_number" => // line 11
($context["column_number"] ?? null), "ci" => // line 12
($context["ci"] ?? null), "ci_offset" => // line 13
($context["ci_offset"] ?? null), "column_meta" => // line 14
($context["column_meta"] ?? null), "has_central_columns_feature" => !(null === twig_get_attribute($this->env, $this->source, // line 15
($context["relation_parameters"] ?? null), "centralColumnsFeature", [], "any", false, false, false, 15)), "max_rows" => // line 16
($context["max_rows"] ?? null)]));
// line 18
echo " ";
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 19
echo "</td>
<td class=\"text-center\">
<select class=\"column_type\" name=\"field_type[";
// line 21
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\"";
// line 22
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "column_status", [], "array", true, true, false, 22) && !(($__internal_compile_0 = (($__internal_compile_1 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["column_status"] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["isEditable"] ?? null) : null))) ? (" disabled") : (""));
echo ">
";
// line 23
echo PhpMyAdmin\Util::getSupportedDatatypes(true, ($context["type_upper"] ?? null));
echo "
</select>
";
// line 25
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 26
echo "</td>
<td class=\"text-center\">
<input id=\"field_";
// line 28
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"text\" name=\"field_length[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"";
// line 29
echo twig_escape_filter($this->env, ($context["length_values_input_size"] ?? null), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, ($context["length"] ?? null), "html", null, true);
echo "\" class=\"textfield\">
<p class=\"enum_notice\" id=\"enum_notice_";
// line 30
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\">
<a href=\"#\" class=\"open_enum_editor\">";
echo _gettext("Edit ENUM/SET values");
// line 31
echo "</a>
</p>
";
// line 33
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 34
echo "</td>
<td class=\"text-center\">
<select name=\"field_default_type[";
// line 36
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" class=\"default_type\">
<option value=\"NONE\"";
// line 37
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "DefaultType", [], "array", true, true, false, 37) && ((($__internal_compile_2 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["DefaultType"] ?? null) : null) == "NONE"))) ? (" selected") : (""));
echo ">
";
echo _pgettext("for default", "None");
// line 39
echo " </option>
<option value=\"USER_DEFINED\"";
// line 40
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "DefaultType", [], "array", true, true, false, 40) && ((($__internal_compile_3 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["DefaultType"] ?? null) : null) == "USER_DEFINED"))) ? (" selected") : (""));
echo ">
";
echo _gettext("As defined:");
// line 42
echo " </option>
<option value=\"NULL\"";
// line 43
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "DefaultType", [], "array", true, true, false, 43) && ((($__internal_compile_4 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["DefaultType"] ?? null) : null) == "NULL"))) ? (" selected") : (""));
echo ">
NULL
</option>
<option value=\"CURRENT_TIMESTAMP\"";
// line 46
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "DefaultType", [], "array", true, true, false, 46) && ((($__internal_compile_5 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["DefaultType"] ?? null) : null) == "CURRENT_TIMESTAMP"))) ? (" selected") : (""));
echo ">
CURRENT_TIMESTAMP
</option>
";
// line 49
if (PhpMyAdmin\Util::isUUIDSupported()) {
// line 50
echo " <option value=\"UUID\"";
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "DefaultType", [], "array", true, true, false, 50) && ((($__internal_compile_6 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["DefaultType"] ?? null) : null) == "UUID"))) ? (" selected") : (""));
echo ">
UUID
</option>
";
}
// line 54
echo " </select>
";
// line 55
if ((($context["char_editing"] ?? null) == "textarea")) {
// line 56
echo " <textarea name=\"field_default_value[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" cols=\"15\" class=\"textfield default_value\">";
echo twig_escape_filter($this->env, ($context["default_value"] ?? null), "html", null, true);
echo "</textarea>
";
} else {
// line 58
echo " <input type=\"text\" name=\"field_default_value[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"12\" value=\"";
echo twig_escape_filter($this->env, ($context["default_value"] ?? null), "html", null, true);
echo "\" class=\"textfield default_value\">
";
}
// line 60
echo " ";
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 61
echo "</td>
<td class=\"text-center\">
";
// line 64
echo " <select lang=\"en\" dir=\"ltr\" name=\"field_collation[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\">
<option value=\"\"></option>
";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["charsets"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
// line 67
echo " <optgroup label=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "name", [], "any", false, false, false, 67), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "description", [], "any", false, false, false, 67), "html", null, true);
echo "\">
";
// line 68
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["charset"], "collations", [], "any", false, false, false, 68));
foreach ($context['_seq'] as $context["_key"] => $context["collation"]) {
// line 69
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 69), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "description", [], "any", false, false, false, 69), "html", null, true);
echo "\"";
// line 70
echo (((twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 70) == (($__internal_compile_7 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["Collation"] ?? null) : null))) ? (" selected") : (""));
echo ">";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 71), "html", null, true);
// line 72
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['collation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </optgroup>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['charset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo " </select>
";
// line 77
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 78
echo "</td>
<td class=\"text-center\">
";
// line 81
echo " ";
$this->loadTemplate("columns_definitions/column_attribute.twig", "columns_definitions/column_attributes.twig", 81)->display(twig_to_array(["column_number" => // line 82
($context["column_number"] ?? null), "ci" => // line 83
($context["ci"] ?? null), "ci_offset" => // line 84
($context["ci_offset"] ?? null), "column_meta" => // line 85
($context["column_meta"] ?? null), "extracted_columnspec" => // line 86
($context["extracted_columnspec"] ?? null), "submit_attribute" => // line 87
($context["submit_attribute"] ?? null), "attribute_types" => // line 88
($context["attribute_types"] ?? null)]));
// line 90
echo " ";
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 91
echo "</td>
<td class=\"text-center\">
<input name=\"field_null[";
// line 93
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"checkbox\" value=\"YES\" class=\"allow_null\"";
// line 94
echo (((( !twig_test_empty((($__internal_compile_8 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["Null"] ?? null) : null)) && ((($__internal_compile_9 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["Null"] ?? null) : null) != "NO")) && ((($__internal_compile_10 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["Null"] ?? null) : null) != "NOT NULL"))) ? (" checked") : (""));
echo ">
";
// line 95
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 96
echo "</td>
";
// line 97
if ((array_key_exists("change_column", $context) && !twig_test_empty(($context["change_column"] ?? null)))) {
// line 98
echo " ";
// line 99
echo " <td class=\"text-center\">
<input name=\"field_adjust_privileges[";
// line 100
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"checkbox\" value=\"NULL\" class=\"allow_null\"";
// line 101
if (($context["privs_available"] ?? null)) {
echo " checked>";
} else {
// line 102
echo " title=\"";
echo _gettext("You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details");
echo "\" disabled>";
}
// line 104
echo " ";
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 105
echo " </td>
";
}
// line 107
if ( !($context["is_backup"] ?? null)) {
// line 108
echo " ";
// line 109
echo " <td class=\"text-center\">
<select name=\"field_key[";
// line 110
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" data-index=\"\">
<option value=\"none_";
// line 111
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\">---</option>
<option value=\"primary_";
// line 112
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\" title=\"";
echo _gettext("Primary");
echo "\"";
// line 113
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Key", [], "array", true, true, false, 113) && ((($__internal_compile_11 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["Key"] ?? null) : null) == "PRI"))) ? (" selected") : (""));
echo ">
PRIMARY
</option>
<option value=\"unique_";
// line 116
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\" title=\"";
echo _gettext("Unique");
echo "\"";
// line 117
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Key", [], "array", true, true, false, 117) && ((($__internal_compile_12 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_12) || $__internal_compile_12 instanceof ArrayAccess ? ($__internal_compile_12["Key"] ?? null) : null) == "UNI"))) ? (" selected") : (""));
echo ">
UNIQUE
</option>
<option value=\"index_";
// line 120
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\" title=\"";
echo _gettext("Index");
echo "\"";
// line 121
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Key", [], "array", true, true, false, 121) && ((($__internal_compile_13 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_13) || $__internal_compile_13 instanceof ArrayAccess ? ($__internal_compile_13["Key"] ?? null) : null) == "MUL"))) ? (" selected") : (""));
echo ">
INDEX
</option>
<option value=\"fulltext_";
// line 124
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\" title=\"";
echo _gettext("Fulltext");
echo "\"";
// line 125
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Key", [], "array", true, true, false, 125) && ((($__internal_compile_14 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_14) || $__internal_compile_14 instanceof ArrayAccess ? ($__internal_compile_14["Key"] ?? null) : null) == "FULLTEXT"))) ? (" selected") : (""));
echo ">
FULLTEXT
</option>
<option value=\"spatial_";
// line 128
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "\" title=\"";
echo _gettext("Spatial");
echo "\"";
// line 129
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Key", [], "array", true, true, false, 129) && ((($__internal_compile_15 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_15) || $__internal_compile_15 instanceof ArrayAccess ? ($__internal_compile_15["Key"] ?? null) : null) == "SPATIAL"))) ? (" selected") : (""));
echo ">
SPATIAL
</option>
</select>
";
// line 133
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 134
echo " </td>
";
}
// line 136
echo "<td class=\"text-center\">
<input name=\"field_extra[";
// line 137
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"checkbox\" value=\"AUTO_INCREMENT\"";
// line 138
echo (((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Extra", [], "array", true, true, false, 138) && (twig_lower_filter($this->env, (($__internal_compile_16 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_16) || $__internal_compile_16 instanceof ArrayAccess ? ($__internal_compile_16["Extra"] ?? null) : null)) == "auto_increment"))) ? (" checked") : (""));
echo ">
";
// line 139
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 140
echo "</td>
<td class=\"text-center\">
<textarea id=\"field_";
// line 142
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" rows=\"1\" name=\"field_comments[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" maxlength=\"";
echo twig_escape_filter($this->env, ($context["max_length"] ?? null), "html", null, true);
echo "\">";
// line 143
((((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 143) && twig_test_iterable(($context["comments_map"] ?? null))) && twig_get_attribute($this->env, $this->source, ($context["comments_map"] ?? null), (($__internal_compile_17 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_17) || $__internal_compile_17 instanceof ArrayAccess ? ($__internal_compile_17["Field"] ?? null) : null), [], "array", true, true, false, 143))) ? (print (twig_escape_filter($this->env, (($__internal_compile_18 = ($context["comments_map"] ?? null)) && is_array($__internal_compile_18) || $__internal_compile_18 instanceof ArrayAccess ? ($__internal_compile_18[(($__internal_compile_19 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_19) || $__internal_compile_19 instanceof ArrayAccess ? ($__internal_compile_19["Field"] ?? null) : null)] ?? null) : null), "html", null, true))) : (print ("")));
// line 144
echo "</textarea>
";
// line 145
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 146
echo "</td>
";
// line 148
if (($context["is_virtual_columns_supported"] ?? null)) {
// line 149
echo " <td class=\"text-center\">
<select name=\"field_virtuality[";
// line 150
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" id=\"field_";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" class=\"virtuality\">
";
// line 151
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 152
echo " ";
$context["virtuality"] = ((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Extra", [], "array", true, true, false, 152)) ? ((($__internal_compile_20 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_20) || $__internal_compile_20 instanceof ArrayAccess ? ($__internal_compile_20["Extra"] ?? null) : null)) : (null));
// line 153
echo " ";
// line 154
echo " ";
$context["virtuality"] = ((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Virtuality", [], "array", true, true, false, 154)) ? ((($__internal_compile_21 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_21) || $__internal_compile_21 instanceof ArrayAccess ? ($__internal_compile_21["Virtuality"] ?? null) : null)) : (($context["virtuality"] ?? null)));
// line 155
echo "
<option value=\"";
// line 156
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\"";
echo (((( !(null === ($context["virtuality"] ?? null)) && ($context["key"] != "")) && (twig_slice($this->env, ($context["virtuality"] ?? null), 0, twig_length_filter($this->env, $context["key"])) === $context["key"]))) ? (" selected") : (""));
echo ">
";
// line 157
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " </select>
";
// line 162
if ((($context["char_editing"] ?? null) == "textarea")) {
// line 163
echo " <textarea name=\"field_expression[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" cols=\"15\" class=\"textfield expression\">";
((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Expression", [], "array", true, true, false, 163)) ? (print (twig_escape_filter($this->env, (($__internal_compile_22 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_22) || $__internal_compile_22 instanceof ArrayAccess ? ($__internal_compile_22["Expression"] ?? null) : null), "html", null, true))) : (print ("")));
echo "</textarea>
";
} else {
// line 165
echo " <input type=\"text\" name=\"field_expression[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"12\" value=\"";
((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Expression", [], "array", true, true, false, 165)) ? (print (twig_escape_filter($this->env, (($__internal_compile_23 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_23) || $__internal_compile_23 instanceof ArrayAccess ? ($__internal_compile_23["Expression"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\" placeholder=\"";
echo _gettext("Expression");
echo "\" class=\"textfield expression\">
";
}
// line 167
echo " ";
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 168
echo " </td>
";
}
// line 171
if (array_key_exists("fields_meta", $context)) {
// line 172
echo " ";
$context["current_index"] = 0;
// line 173
echo " ";
$context["cols"] = (twig_length_filter($this->env, ($context["move_columns"] ?? null)) - 1);
// line 174
echo " ";
$context["break"] = false;
// line 175
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, ($context["cols"] ?? null)));
foreach ($context['_seq'] as $context["_key"] => $context["mi"]) {
// line 176
echo " ";
if (((twig_get_attribute($this->env, $this->source, (($__internal_compile_24 = ($context["move_columns"] ?? null)) && is_array($__internal_compile_24) || $__internal_compile_24 instanceof ArrayAccess ? ($__internal_compile_24[$context["mi"]] ?? null) : null), "name", [], "any", false, false, false, 176) == (($__internal_compile_25 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_25) || $__internal_compile_25 instanceof ArrayAccess ? ($__internal_compile_25["Field"] ?? null) : null)) && !($context["break"] ?? null))) {
// line 177
echo " ";
$context["current_index"] = $context["mi"];
// line 178
echo " ";
$context["break"] = true;
// line 179
echo " ";
}
// line 180
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mi'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 181
echo "
<td class=\"text-center\">
<select id=\"field_";
// line 183
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" name=\"field_move_to[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"1\" width=\"5em\">
<option value=\"\" selected=\"selected\">&nbsp;</option>
<option value=\"-first\"";
// line 185
echo (((($context["current_index"] ?? null) == 0)) ? (" disabled=\"disabled\"") : (""));
echo ">
";
echo _gettext("first");
// line 187
echo " </option>
";
// line 188
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, (twig_length_filter($this->env, ($context["move_columns"] ?? null)) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["mi"]) {
// line 189
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (($__internal_compile_26 = ($context["move_columns"] ?? null)) && is_array($__internal_compile_26) || $__internal_compile_26 instanceof ArrayAccess ? ($__internal_compile_26[$context["mi"]] ?? null) : null), "name", [], "any", false, false, false, 189), "html", null, true);
echo "\"";
// line 190
echo ((((($context["current_index"] ?? null) == $context["mi"]) || (($context["current_index"] ?? null) == ($context["mi"] + 1)))) ? (" disabled") : (""));
echo ">
";
// line 191
echo twig_escape_filter($this->env, twig_sprintf(_gettext("after %s"), PhpMyAdmin\Util::backquote(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (($__internal_compile_27 = ($context["move_columns"] ?? null)) && is_array($__internal_compile_27) || $__internal_compile_27 instanceof ArrayAccess ? ($__internal_compile_27[$context["mi"]] ?? null) : null), "name", [], "any", false, false, false, 191)))), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mi'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 194
echo " </select>
";
// line 195
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 196
echo " </td>
";
}
// line 198
echo "
";
// line 199
if ((( !(null === twig_get_attribute($this->env, $this->source, ($context["relation_parameters"] ?? null), "browserTransformationFeature", [], "any", false, false, false, 199)) && !(null === twig_get_attribute($this->env, $this->source, ($context["relation_parameters"] ?? null), "columnCommentsFeature", [], "any", false, false, false, 199))) && ($context["browse_mime"] ?? null))) {
// line 200
echo " <td class=\"text-center\">
<select id=\"field_";
// line 201
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" size=\"1\" name=\"field_mimetype[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\">
<option value=\"\">&nbsp;</option>
";
// line 203
if ((twig_get_attribute($this->env, $this->source, ($context["available_mime"] ?? null), "mimetype", [], "array", true, true, false, 203) && twig_test_iterable((($__internal_compile_28 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_28) || $__internal_compile_28 instanceof ArrayAccess ? ($__internal_compile_28["mimetype"] ?? null) : null)))) {
// line 204
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((($__internal_compile_29 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_29) || $__internal_compile_29 instanceof ArrayAccess ? ($__internal_compile_29["mimetype"] ?? null) : null));
foreach ($context['_seq'] as $context["_key"] => $context["media_type"]) {
// line 205
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_replace_filter($context["media_type"], ["/" => "_"]), "html", null, true);
echo "\"";
// line 206
echo ((((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 206) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["mime_map"] ?? null), (($__internal_compile_30 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_30) || $__internal_compile_30 instanceof ArrayAccess ? ($__internal_compile_30["Field"] ?? null) : null), [], "array", false, true, false, 206), "mimetype", [], "array", true, true, false, 206)) && ((($__internal_compile_31 = (($__internal_compile_32 = // line 207
($context["mime_map"] ?? null)) && is_array($__internal_compile_32) || $__internal_compile_32 instanceof ArrayAccess ? ($__internal_compile_32[(($__internal_compile_33 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_33) || $__internal_compile_33 instanceof ArrayAccess ? ($__internal_compile_33["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_31) || $__internal_compile_31 instanceof ArrayAccess ? ($__internal_compile_31["mimetype"] ?? null) : null) == twig_replace_filter($context["media_type"], ["/" => "_"])))) ? (" selected") : (""));
echo ">
";
// line 208
echo twig_escape_filter($this->env, twig_lower_filter($this->env, $context["media_type"]), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['media_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 211
echo " ";
}
// line 212
echo " </select>
";
// line 213
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 214
echo " </td>
<td class=\"text-center\">
<select id=\"field_";
// line 216
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" size=\"1\" name=\"field_transformation[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\">
<option value=\"\" title=\"";
echo _gettext("None");
// line 217
echo "\"></option>
";
// line 218
if ((twig_get_attribute($this->env, $this->source, ($context["available_mime"] ?? null), "transformation", [], "array", true, true, false, 218) && twig_test_iterable((($__internal_compile_34 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_34) || $__internal_compile_34 instanceof ArrayAccess ? ($__internal_compile_34["transformation"] ?? null) : null)))) {
// line 219
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((($__internal_compile_35 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_35) || $__internal_compile_35 instanceof ArrayAccess ? ($__internal_compile_35["transformation"] ?? null) : null));
foreach ($context['_seq'] as $context["mimekey"] => $context["transform"]) {
// line 220
echo " ";
$context["parts"] = twig_split_filter($this->env, $context["transform"], ":");
// line 221
echo " <option value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_36 = (($__internal_compile_37 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_37) || $__internal_compile_37 instanceof ArrayAccess ? ($__internal_compile_37["transformation_file"] ?? null) : null)) && is_array($__internal_compile_36) || $__internal_compile_36 instanceof ArrayAccess ? ($__internal_compile_36[$context["mimekey"]] ?? null) : null), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('get_description')->getCallable()((($__internal_compile_38 = (($__internal_compile_39 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_39) || $__internal_compile_39 instanceof ArrayAccess ? ($__internal_compile_39["transformation_file"] ?? null) : null)) && is_array($__internal_compile_38) || $__internal_compile_38 instanceof ArrayAccess ? ($__internal_compile_38[$context["mimekey"]] ?? null) : null)), "html", null, true);
echo "\"";
// line 222
echo (((((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 222) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 223
($context["mime_map"] ?? null), (($__internal_compile_40 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_40) || $__internal_compile_40 instanceof ArrayAccess ? ($__internal_compile_40["Field"] ?? null) : null), [], "array", false, true, false, 223), "transformation", [], "array", true, true, false, 223)) && !(null === (($__internal_compile_41 = (($__internal_compile_42 = // line 224
($context["mime_map"] ?? null)) && is_array($__internal_compile_42) || $__internal_compile_42 instanceof ArrayAccess ? ($__internal_compile_42[(($__internal_compile_43 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_43) || $__internal_compile_43 instanceof ArrayAccess ? ($__internal_compile_43["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_41) || $__internal_compile_41 instanceof ArrayAccess ? ($__internal_compile_41["transformation"] ?? null) : null))) && twig_matches((("@" . (($__internal_compile_44 = (($__internal_compile_45 = // line 225
($context["available_mime"] ?? null)) && is_array($__internal_compile_45) || $__internal_compile_45 instanceof ArrayAccess ? ($__internal_compile_45["transformation_file_quoted"] ?? null) : null)) && is_array($__internal_compile_44) || $__internal_compile_44 instanceof ArrayAccess ? ($__internal_compile_44[$context["mimekey"]] ?? null) : null)) . "3?@i"), (($__internal_compile_46 = (($__internal_compile_47 = ($context["mime_map"] ?? null)) && is_array($__internal_compile_47) || $__internal_compile_47 instanceof ArrayAccess ? ($__internal_compile_47[(($__internal_compile_48 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_48) || $__internal_compile_48 instanceof ArrayAccess ? ($__internal_compile_48["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_46) || $__internal_compile_46 instanceof ArrayAccess ? ($__internal_compile_46["transformation"] ?? null) : null)))) ? (" selected") : (""));
echo ">
";
// line 226
echo twig_escape_filter($this->env, ((((($this->env->getFunction('get_name')->getCallable()((($__internal_compile_49 = (($__internal_compile_50 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_50) || $__internal_compile_50 instanceof ArrayAccess ? ($__internal_compile_50["transformation_file"] ?? null) : null)) && is_array($__internal_compile_49) || $__internal_compile_49 instanceof ArrayAccess ? ($__internal_compile_49[$context["mimekey"]] ?? null) : null)) . " (") . twig_lower_filter($this->env, (($__internal_compile_51 = ($context["parts"] ?? null)) && is_array($__internal_compile_51) || $__internal_compile_51 instanceof ArrayAccess ? ($__internal_compile_51[0] ?? null) : null))) . ":") . (($__internal_compile_52 = ($context["parts"] ?? null)) && is_array($__internal_compile_52) || $__internal_compile_52 instanceof ArrayAccess ? ($__internal_compile_52[1] ?? null) : null)) . ")"), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['mimekey'], $context['transform'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 229
echo " ";
}
// line 230
echo " </select>
";
// line 231
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 232
echo " </td>
<td class=\"text-center\">
<input id=\"field_";
// line 234
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"text\" name=\"field_transformation_options[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"16\" class=\"textfield\" value=\"";
// line 235
(((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 235) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["mime_map"] ?? null), (($__internal_compile_53 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_53) || $__internal_compile_53 instanceof ArrayAccess ? ($__internal_compile_53["Field"] ?? null) : null), [], "array", false, true, false, 235), "transformation_options", [], "array", true, true, false, 235))) ? (print (twig_escape_filter($this->env, (($__internal_compile_54 = (($__internal_compile_55 = ($context["mime_map"] ?? null)) && is_array($__internal_compile_55) || $__internal_compile_55 instanceof ArrayAccess ? ($__internal_compile_55[(($__internal_compile_56 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_56) || $__internal_compile_56 instanceof ArrayAccess ? ($__internal_compile_56["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_54) || $__internal_compile_54 instanceof ArrayAccess ? ($__internal_compile_54["transformation_options"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\">
";
// line 236
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 237
echo " </td>
<td class=\"text-center\">
<select id=\"field_";
// line 239
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" size=\"1\" name=\"field_input_transformation[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\">
<option value=\"\" title=\"";
echo _gettext("None");
// line 240
echo "\"></option>
";
// line 241
if ((twig_get_attribute($this->env, $this->source, ($context["available_mime"] ?? null), "input_transformation", [], "array", true, true, false, 241) && twig_test_iterable((($__internal_compile_57 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_57) || $__internal_compile_57 instanceof ArrayAccess ? ($__internal_compile_57["input_transformation"] ?? null) : null)))) {
// line 242
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((($__internal_compile_58 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_58) || $__internal_compile_58 instanceof ArrayAccess ? ($__internal_compile_58["input_transformation"] ?? null) : null));
foreach ($context['_seq'] as $context["mimekey"] => $context["transform"]) {
// line 243
echo " ";
$context["parts"] = twig_split_filter($this->env, $context["transform"], ":");
// line 244
echo " <option value=\"";
echo twig_escape_filter($this->env, (($__internal_compile_59 = (($__internal_compile_60 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_60) || $__internal_compile_60 instanceof ArrayAccess ? ($__internal_compile_60["input_transformation_file"] ?? null) : null)) && is_array($__internal_compile_59) || $__internal_compile_59 instanceof ArrayAccess ? ($__internal_compile_59[$context["mimekey"]] ?? null) : null), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('get_description')->getCallable()((($__internal_compile_61 = (($__internal_compile_62 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_62) || $__internal_compile_62 instanceof ArrayAccess ? ($__internal_compile_62["input_transformation_file"] ?? null) : null)) && is_array($__internal_compile_61) || $__internal_compile_61 instanceof ArrayAccess ? ($__internal_compile_61[$context["mimekey"]] ?? null) : null)), "html", null, true);
echo "\"";
// line 245
echo ((((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 245) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["mime_map"] ?? null), (($__internal_compile_63 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_63) || $__internal_compile_63 instanceof ArrayAccess ? ($__internal_compile_63["Field"] ?? null) : null), [], "array", false, true, false, 245), "input_transformation", [], "array", true, true, false, 245)) && twig_matches((("@" . (($__internal_compile_64 = (($__internal_compile_65 = // line 246
($context["available_mime"] ?? null)) && is_array($__internal_compile_65) || $__internal_compile_65 instanceof ArrayAccess ? ($__internal_compile_65["input_transformation_file_quoted"] ?? null) : null)) && is_array($__internal_compile_64) || $__internal_compile_64 instanceof ArrayAccess ? ($__internal_compile_64[$context["mimekey"]] ?? null) : null)) . "3?@i"), (($__internal_compile_66 = (($__internal_compile_67 = ($context["mime_map"] ?? null)) && is_array($__internal_compile_67) || $__internal_compile_67 instanceof ArrayAccess ? ($__internal_compile_67[(($__internal_compile_68 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_68) || $__internal_compile_68 instanceof ArrayAccess ? ($__internal_compile_68["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_66) || $__internal_compile_66 instanceof ArrayAccess ? ($__internal_compile_66["input_transformation"] ?? null) : null)))) ? (" selected") : (""));
echo ">
";
// line 247
echo twig_escape_filter($this->env, ((((($this->env->getFunction('get_name')->getCallable()((($__internal_compile_69 = (($__internal_compile_70 = ($context["available_mime"] ?? null)) && is_array($__internal_compile_70) || $__internal_compile_70 instanceof ArrayAccess ? ($__internal_compile_70["input_transformation_file"] ?? null) : null)) && is_array($__internal_compile_69) || $__internal_compile_69 instanceof ArrayAccess ? ($__internal_compile_69[$context["mimekey"]] ?? null) : null)) . " (") . twig_lower_filter($this->env, (($__internal_compile_71 = ($context["parts"] ?? null)) && is_array($__internal_compile_71) || $__internal_compile_71 instanceof ArrayAccess ? ($__internal_compile_71[0] ?? null) : null))) . ":") . (($__internal_compile_72 = ($context["parts"] ?? null)) && is_array($__internal_compile_72) || $__internal_compile_72 instanceof ArrayAccess ? ($__internal_compile_72[1] ?? null) : null)) . ")"), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['mimekey'], $context['transform'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 250
echo " ";
}
// line 251
echo " </select>
";
// line 252
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 253
echo " </td>
<td class=\"text-center\">
<input id=\"field_";
// line 255
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (($context["ci"] ?? null) - ($context["ci_offset"] ?? null)), "html", null, true);
echo "\" type=\"text\" name=\"field_input_transformation_options[";
echo twig_escape_filter($this->env, ($context["column_number"] ?? null), "html", null, true);
echo "]\" size=\"16\" class=\"textfield\" value=\"";
// line 256
(((twig_get_attribute($this->env, $this->source, ($context["column_meta"] ?? null), "Field", [], "array", true, true, false, 256) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["mime_map"] ?? null), (($__internal_compile_73 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_73) || $__internal_compile_73 instanceof ArrayAccess ? ($__internal_compile_73["Field"] ?? null) : null), [], "array", false, true, false, 256), "input_transformation_options", [], "array", true, true, false, 256))) ? (print (twig_escape_filter($this->env, (($__internal_compile_74 = (($__internal_compile_75 = ($context["mime_map"] ?? null)) && is_array($__internal_compile_75) || $__internal_compile_75 instanceof ArrayAccess ? ($__internal_compile_75[(($__internal_compile_76 = ($context["column_meta"] ?? null)) && is_array($__internal_compile_76) || $__internal_compile_76 instanceof ArrayAccess ? ($__internal_compile_76["Field"] ?? null) : null)] ?? null) : null)) && is_array($__internal_compile_74) || $__internal_compile_74 instanceof ArrayAccess ? ($__internal_compile_74["input_transformation_options"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\">
";
// line 257
$context["ci"] = (($context["ci"] ?? null) + 1);
// line 258
echo " </td>
";
}
}
public function getTemplateName()
{
return "columns_definitions/column_attributes.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 785 => 258, 783 => 257, 779 => 256, 772 => 255, 768 => 253, 766 => 252, 763 => 251, 760 => 250, 751 => 247, 747 => 246, 746 => 245, 740 => 244, 737 => 243, 732 => 242, 730 => 241, 727 => 240, 718 => 239, 714 => 237, 712 => 236, 708 => 235, 701 => 234, 697 => 232, 695 => 231, 692 => 230, 689 => 229, 680 => 226, 676 => 225, 675 => 224, 674 => 223, 673 => 222, 667 => 221, 664 => 220, 659 => 219, 657 => 218, 654 => 217, 645 => 216, 641 => 214, 639 => 213, 636 => 212, 633 => 211, 624 => 208, 620 => 207, 619 => 206, 615 => 205, 610 => 204, 608 => 203, 599 => 201, 596 => 200, 594 => 199, 591 => 198, 587 => 196, 585 => 195, 582 => 194, 573 => 191, 569 => 190, 565 => 189, 561 => 188, 558 => 187, 553 => 185, 544 => 183, 540 => 181, 534 => 180, 531 => 179, 528 => 178, 525 => 177, 522 => 176, 517 => 175, 514 => 174, 511 => 173, 508 => 172, 506 => 171, 502 => 168, 499 => 167, 489 => 165, 481 => 163, 479 => 162, 475 => 160, 466 => 157, 460 => 156, 457 => 155, 454 => 154, 452 => 153, 449 => 152, 445 => 151, 437 => 150, 434 => 149, 432 => 148, 429 => 146, 427 => 145, 424 => 144, 422 => 143, 413 => 142, 409 => 140, 407 => 139, 403 => 138, 396 => 137, 393 => 136, 389 => 134, 387 => 133, 380 => 129, 375 => 128, 369 => 125, 364 => 124, 358 => 121, 353 => 120, 347 => 117, 342 => 116, 336 => 113, 331 => 112, 327 => 111, 319 => 110, 316 => 109, 314 => 108, 312 => 107, 308 => 105, 305 => 104, 300 => 102, 296 => 101, 289 => 100, 286 => 99, 284 => 98, 282 => 97, 279 => 96, 277 => 95, 273 => 94, 266 => 93, 262 => 91, 259 => 90, 257 => 88, 256 => 87, 255 => 86, 254 => 85, 253 => 84, 252 => 83, 251 => 82, 249 => 81, 245 => 78, 243 => 77, 240 => 76, 233 => 74, 226 => 72, 224 => 71, 221 => 70, 215 => 69, 211 => 68, 204 => 67, 200 => 66, 190 => 64, 186 => 61, 183 => 60, 175 => 58, 167 => 56, 165 => 55, 162 => 54, 154 => 50, 152 => 49, 146 => 46, 140 => 43, 137 => 42, 132 => 40, 129 => 39, 124 => 37, 116 => 36, 112 => 34, 110 => 33, 106 => 31, 99 => 30, 93 => 29, 86 => 28, 82 => 26, 80 => 25, 75 => 23, 71 => 22, 64 => 21, 60 => 19, 57 => 18, 55 => 16, 54 => 15, 53 => 14, 52 => 13, 51 => 12, 50 => 11, 48 => 10, 44 => 7, 42 => 6, 39 => 3, 37 => 2,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/column_attributes.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/column_attributes.twig");
}
}

View File

@@ -0,0 +1,490 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* sql/query.twig */
class __TwigTemplate_9cd81adfcdbd148abcd27557d21e396f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<form method=\"post\" action=\"";
echo PhpMyAdmin\Url::getFromRoute("/import");
echo "\" class=\"ajax lock-page\" id=\"sqlqueryform\" name=\"sqlform\"";
// line 2
echo ((($context["is_upload"] ?? null)) ? (" enctype=\"multipart/form-data\"") : (""));
echo ">
";
// line 3
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null), ($context["table"] ?? null));
echo "
<input type=\"hidden\" name=\"is_js_confirmed\" value=\"0\">
<input type=\"hidden\" name=\"pos\" value=\"0\">
<input type=\"hidden\" name=\"goto\" value=\"";
// line 6
echo twig_escape_filter($this->env, ($context["goto"] ?? null), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"message_to_show\" value=\"";
echo _gettext("Your SQL query has been executed successfully.");
// line 7
echo "\">
<input type=\"hidden\" name=\"prev_sql_query\" value=\"";
// line 8
echo twig_escape_filter($this->env, ($context["query"] ?? null), "html", null, true);
echo "\">
";
// line 10
if (((($context["display_tab"] ?? null) == "full") || (($context["display_tab"] ?? null) == "sql"))) {
// line 11
echo " <a id=\"querybox\"></a>
<div class=\"card mb-3\">
<div class=\"card-header\">";
// line 14
echo ($context["legend"] ?? null);
echo "</div>
<div class=\"card-body\">
<div id=\"queryfieldscontainer\">
<div class=\"row\">
<div class=\"col\">
<div class=\"mb-3\">
<textarea class=\"form-control\" tabindex=\"100\" name=\"sql_query\" id=\"sqlquery\" cols=\"";
// line 20
echo twig_escape_filter($this->env, ($context["textarea_cols"] ?? null), "html", null, true);
echo "\" rows=\"";
echo twig_escape_filter($this->env, ($context["textarea_rows"] ?? null), "html", null, true);
echo "\" data-textarea-auto-select=\"";
echo ((($context["textarea_auto_select"] ?? null)) ? ("true") : ("false"));
echo "\" aria-label=\"";
echo _gettext("SQL query");
echo "\">";
// line 21
echo twig_escape_filter($this->env, ($context["query"] ?? null), "html", null, true);
// line 22
echo "</textarea>
</div>
<div id=\"querymessage\"></div>
<div class=\"btn-toolbar\" role=\"toolbar\">
";
// line 27
if ( !twig_test_empty(($context["columns_list"] ?? null))) {
// line 28
echo " <div class=\"btn-group me-2\" role=\"group\">
<input type=\"button\" value=\"SELECT *\" id=\"selectall\" class=\"btn btn-secondary button sqlbutton\">
<input type=\"button\" value=\"SELECT\" id=\"select\" class=\"btn btn-secondary button sqlbutton\">
<input type=\"button\" value=\"INSERT\" id=\"insert\" class=\"btn btn-secondary button sqlbutton\">
<input type=\"button\" value=\"UPDATE\" id=\"update\" class=\"btn btn-secondary button sqlbutton\">
<input type=\"button\" value=\"DELETE\" id=\"delete\" class=\"btn btn-secondary button sqlbutton\">
</div>
";
}
// line 36
echo "
<div class=\"btn-group me-2\" role=\"group\">
<input type=\"button\" value=\"";
echo _gettext("Clear");
// line 38
echo "\" id=\"clear\" class=\"btn btn-secondary button sqlbutton\">
";
// line 39
if (($context["codemirror_enable"] ?? null)) {
// line 40
echo " <input type=\"button\" value=\"";
echo _gettext("Format");
echo "\" id=\"format\" class=\"btn btn-secondary button sqlbutton\">
";
}
// line 42
echo " </div>
<input type=\"button\" value=\"";
echo _gettext("Get auto-saved query");
// line 44
echo "\" id=\"saved\" class=\"btn btn-secondary button sqlbutton\">
</div>
<div class=\"my-3\">
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"parameterized\" id=\"parameterized\">
<label class=\"form-check-label\" for=\"parameterized\">
";
// l10n: Bind parameters in the SQL query using :parameterName format
echo _gettext("Bind parameters");
// line 52
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("faq", "faq6-40");
echo "
</label>
</div>
</div>
<div class=\"mb-3\" id=\"parametersDiv\"></div>
</div>
";
// line 59
if ( !twig_test_empty(($context["columns_list"] ?? null))) {
// line 60
echo " <div class=\"col-xl-2 col-lg-3\">
<div class=\"mb-3\">
<label class=\"visually-hidden\" for=\"fieldsSelect\">";
echo _gettext("Columns");
// line 62
echo "</label>
<select class=\"form-select resize-vertical\" id=\"fieldsSelect\" name=\"dummy\" size=\"";
// line 63
echo twig_escape_filter($this->env, ($context["textarea_rows"] ?? null), "html", null, true);
echo "\" ondblclick=\"Functions.insertValueQuery()\" multiple>
";
// line 64
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["columns_list"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 65
echo " <option value=\"";
echo twig_escape_filter($this->env, PhpMyAdmin\Util::backquote((($__internal_compile_0 = $context["field"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["Field"] ?? null) : null)), "html", null, true);
echo "\"";
// line 66
(((( !(null === (($__internal_compile_1 = $context["field"]) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["Field"] ?? null) : null)) && !(null === (($__internal_compile_2 = $context["field"]) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["Comment"] ?? null) : null))) && (twig_length_filter($this->env, (($__internal_compile_3 = $context["field"]) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["Field"] ?? null) : null)) > 0))) ? (print (twig_escape_filter($this->env, ((" title=\"" . (($__internal_compile_4 = $context["field"]) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["Comment"] ?? null) : null)) . "\""), "html", null, true))) : (print ("")));
echo ">
";
// line 67
echo twig_escape_filter($this->env, (($__internal_compile_5 = $context["field"]) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["Field"] ?? null) : null), "html", null, true);
echo "
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 70
echo " </select>
</div>
<input type=\"button\" class=\"btn btn-secondary button\" id=\"insertBtn\" name=\"insert\" value=\"";
// line 74
if (PhpMyAdmin\Util::showIcons("ActionLinksMode")) {
echo "<<";
echo "\" title=\"";
}
echo _gettext("Insert");
// line 75
echo "\">
</div>
";
}
// line 78
echo " </div>
</div>
";
// line 81
if (($context["has_bookmark"] ?? null)) {
// line 82
echo " <div class=\"row row-cols-lg-auto g-3 align-items-center\">
<div class=\"col-6\">
<label class=\"form-label\" for=\"bkm_label\">";
echo _gettext("Bookmark this SQL query:");
// line 84
echo "</label>
</div>
<div class=\"col-6\">
<input class=\"form-control\" type=\"text\" name=\"bkm_label\" id=\"bkm_label\" tabindex=\"110\" value=\"\">
</div>
<div class=\"col-12\">
<div class=\"form-check form-check-inline\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"bkm_all_users\" tabindex=\"111\" id=\"id_bkm_all_users\" value=\"true\">
<label class=\"form-check-label\" for=\"id_bkm_all_users\">";
echo _gettext("Let every user access this bookmark");
// line 93
echo "</label>
</div>
</div>
<div class=\"col-12\">
<div class=\"form-check form-check-inline\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"bkm_replace\" tabindex=\"112\" id=\"id_bkm_replace\" value=\"true\">
<label class=\"form-check-label\" for=\"id_bkm_replace\">";
echo _gettext("Replace existing bookmark of same name");
// line 100
echo "</label>
</div>
</div>
</div>
";
}
// line 105
echo " </div>
<div class=\"card-footer\">
<div class=\"row row-cols-lg-auto g-3 align-items-center\">
<div class=\"col-12\">
<div class=\"input-group me-2\">
<span class=\"input-group-text\">";
echo _gettext("Delimiter");
// line 110
echo "</span>
<label class=\"visually-hidden\" for=\"id_sql_delimiter\">";
echo _gettext("Delimiter");
// line 111
echo "</label>
<input class=\"form-control\" type=\"text\" name=\"sql_delimiter\" tabindex=\"131\" size=\"3\" value=\"";
// line 112
echo twig_escape_filter($this->env, ($context["delimiter"] ?? null), "html", null, true);
echo "\" id=\"id_sql_delimiter\">
</div>
</div>
<div class=\"col-12\">
<div class=\"form-check form-check-inline\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"show_query\" value=\"1\" id=\"checkbox_show_query\" tabindex=\"132\">
<label class=\"form-check-label\" for=\"checkbox_show_query\">";
echo _gettext("Show this query here again");
// line 119
echo "</label>
</div>
</div>
<div class=\"col-12\">
<div class=\"form-check form-check-inline\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"retain_query_box\" value=\"1\" id=\"retain_query_box\" tabindex=\"133\"";
// line 126
echo ((($context["retain_query_box"] ?? null)) ? (" checked") : (""));
echo ">
<label class=\"form-check-label\" for=\"retain_query_box\">";
echo _gettext("Retain query box");
// line 127
echo "</label>
</div>
</div>
<div class=\"col-12\">
<div class=\"form-check form-check-inline\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"rollback_query\" value=\"1\" id=\"rollback_query\" tabindex=\"134\">
<label class=\"form-check-label\" for=\"rollback_query\">";
echo _gettext("Rollback when finished");
// line 134
echo "</label>
</div>
</div>
<div class=\"col-12\">
<div class=\"form-check\">
<input type=\"hidden\" name=\"fk_checks\" value=\"0\">
<input class=\"form-check-input\" type=\"checkbox\" name=\"fk_checks\" id=\"fk_checks\" value=\"1\"";
// line 141
echo ((($context["is_foreign_key_check"] ?? null)) ? (" checked") : (""));
echo ">
<label class=\"form-check-label\" for=\"fk_checks\">";
echo _gettext("Enable foreign key checks");
// line 142
echo "</label>
</div>
</div>
<div class=\"col-12\">
<input class=\"btn btn-primary ms-1\" type=\"submit\" id=\"button_submit_query\" name=\"SQL\" tabindex=\"200\" value=\"";
echo _gettext("Go");
// line 147
echo "\">
</div>
</div>
</div>
</div>
";
}
// line 153
echo "
";
// line 154
if (((($context["display_tab"] ?? null) == "full") && !twig_test_empty(($context["bookmarks"] ?? null)))) {
// line 155
echo " <div class=\"card mb-3\">
<div class=\"card-header\">";
echo _gettext("Bookmarked SQL query");
// line 156
echo "</div>
<div class=\"card-body\">
<div class=\"row row-cols-lg-auto g-3 align-items-center\">
<div class=\"col-6\">
<label class=\"form-label\" for=\"id_bookmark\">";
echo _gettext("Bookmark:");
// line 160
echo "</label>
</div>
<div class=\"col-6\">
<select class=\"form-select\" name=\"id_bookmark\" id=\"id_bookmark\">
<option value=\"\">&nbsp;</option>
";
// line 165
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["bookmarks"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["bookmark"]) {
// line 166
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "id", [], "any", false, false, false, 166), "html", null, true);
echo "\" data-varcount=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "variable_count", [], "any", false, false, false, 166), "html", null, true);
echo "\">
";
// line 167
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "label", [], "any", false, false, false, 167), "html", null, true);
echo "
";
// line 168
if (twig_get_attribute($this->env, $this->source, $context["bookmark"], "is_shared", [], "any", false, false, false, 168)) {
// line 169
echo " (";
echo _gettext("shared");
echo ")
";
}
// line 171
echo " </option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bookmark'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 173
echo " </select>
</div>
<div class=\"form-check form-check-inline col-12\">
<input class=\"form-check-input\" type=\"radio\" name=\"action_bookmark\" value=\"0\" id=\"radio_bookmark_exe\" checked>
<label class=\"form-check-label\" for=\"radio_bookmark_exe\">";
echo _gettext("Submit");
// line 178
echo "</label>
</div>
<div class=\"form-check form-check-inline col-12\">
<input class=\"form-check-input\" type=\"radio\" name=\"action_bookmark\" value=\"1\" id=\"radio_bookmark_view\">
<label class=\"form-check-label\" for=\"radio_bookmark_view\">";
echo _gettext("View only");
// line 182
echo "</label>
</div>
<div class=\"form-check form-check-inline col-12\">
<input class=\"form-check-input\" type=\"radio\" name=\"action_bookmark\" value=\"2\" id=\"radio_bookmark_del\">
<label class=\"form-check-label\" for=\"radio_bookmark_del\">";
echo _gettext("Delete");
// line 186
echo "</label>
</div>
</div>
<div class=\"hide\">
";
echo _gettext("Variables");
// line 192
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("faq", "faqbookmark");
echo "
<div class=\"row row-cols-auto\" id=\"bookmarkVariables\"></div>
</div>
</div>
<div class=\"card-footer text-end\">
<input class=\"btn btn-secondary\" type=\"submit\" name=\"SQL\" id=\"button_submit_bookmark\" value=\"";
echo _gettext("Go");
// line 198
echo "\">
</div>
</div>
";
}
// line 202
echo "
";
// line 203
if (($context["can_convert_kanji"] ?? null)) {
// line 204
echo " <div class=\"card mb-3\">
<div class=\"card-body\">
";
// line 206
$this->loadTemplate("encoding/kanji_encoding_form.twig", "sql/query.twig", 206)->display($context);
// line 207
echo " </div>
</div>
";
}
// line 210
echo "</form>
<div id=\"sqlqueryresultsouter\"></div>
<div class=\"modal fade\" id=\"simulateDmlModal\" tabindex=\"-1\" aria-labelledby=\"simulateDmlModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"simulateDmlModalLabel\">";
echo _gettext("Simulate query");
// line 218
echo "</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Close");
// line 219
echo "\"></button>
</div>
<div class=\"modal-body\">
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">";
echo _gettext("Close");
// line 224
echo "</button>
</div>
</div>
</div>
</div>
";
}
public function getTemplateName()
{
return "sql/query.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 463 => 224, 455 => 219, 451 => 218, 440 => 210, 435 => 207, 433 => 206, 429 => 204, 427 => 203, 424 => 202, 418 => 198, 407 => 192, 399 => 186, 392 => 182, 385 => 178, 377 => 173, 370 => 171, 364 => 169, 362 => 168, 358 => 167, 351 => 166, 347 => 165, 340 => 160, 333 => 156, 329 => 155, 327 => 154, 324 => 153, 316 => 147, 308 => 142, 303 => 141, 294 => 134, 284 => 127, 279 => 126, 271 => 119, 260 => 112, 257 => 111, 253 => 110, 245 => 105, 238 => 100, 228 => 93, 216 => 84, 211 => 82, 209 => 81, 204 => 78, 199 => 75, 193 => 74, 188 => 70, 179 => 67, 175 => 66, 171 => 65, 167 => 64, 163 => 63, 160 => 62, 155 => 60, 153 => 59, 142 => 52, 131 => 44, 126 => 42, 120 => 40, 118 => 39, 115 => 38, 110 => 36, 100 => 28, 98 => 27, 91 => 22, 89 => 21, 80 => 20, 71 => 14, 66 => 11, 64 => 10, 59 => 8, 56 => 7, 51 => 6, 45 => 3, 41 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "sql/query.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/sql/query.twig");
}
}

View File

@@ -0,0 +1,77 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* filter.twig */
class __TwigTemplate_abccd3a003c111f84b2f7071ce6e3b3e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<div class=\"card mb-3\" id=\"tableFilter\">
<div class=\"card-header\">";
echo _gettext("Filters");
// line 2
echo "</div>
<div class=\"card-body row row-cols-lg-auto gy-1 gx-3 align-items-center\">
<label class=\"col-12 col-form-label\" for=\"filterText\">";
echo _gettext("Containing the word:");
// line 4
echo "</label>
<div class=\"col-12\">
<input class=\"form-control\" name=\"filterText\" type=\"text\" id=\"filterText\" value=\"";
// line 6
echo twig_escape_filter($this->env, ($context["filter_value"] ?? null), "html", null, true);
echo "\">
</div>
</div>
</div>
";
}
public function getTemplateName()
{
return "filter.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 50 => 6, 46 => 4, 41 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "filter.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/filter.twig");
}
}