add new functionality in agent dashboard
parent
88e8efa31f
commit
58e3e33b4a
|
@ -46,7 +46,7 @@ date_default_timezone_set('Asia/Kolkata');
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
|
@ -71,6 +71,7 @@ date_default_timezone_set('Asia/Kolkata');
|
|||
<?php
|
||||
if($_SESSION['type'] === 'admin'){ ?>
|
||||
<li><a href="/Admin/agent_View_report">Commission</a></li>
|
||||
<li><a href="/Admin/agent-targets">Agent Targets</a></li>
|
||||
<li><a href="/Admin/Settings_Agent">Agent Settings</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
|
|
|
@ -108,7 +108,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
}
|
||||
|
||||
const logo = new Image();
|
||||
logo.src = '/asset/images/new_logo.jpeg';
|
||||
logo.src = '/asset/images/new_logo2.jpg';
|
||||
logo.onload = function() { addHeader(); };
|
||||
logo.onerror = function() { addHeader(); };
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
const grandTotal = <?php echo json_encode($grandTotal); ?>;
|
||||
|
||||
const logo = new Image();
|
||||
logo.src = '/asset/images/new_logo.jpeg';
|
||||
logo.src = '/asset/images/new_logo2.jpg';
|
||||
logo.onload = () => addHeader();
|
||||
logo.onerror = () => addHeader();
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
const titleText = "Grafin Ventures Transaction Report";
|
||||
|
||||
const logo = new Image();
|
||||
logo.src = '/asset/images/new_logo.jpeg';
|
||||
logo.src = '/asset/images/new_logo2.jpg';
|
||||
logo.onload = () => addContent();
|
||||
logo.onerror = () => addContent();
|
||||
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
$conn->set_charset("utf8");
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
// Get agent list
|
||||
$getAgentListsQuery = "SELECT * FROM " . $GLOBALS['arif_users'];
|
||||
$agentResult = $conn->query($getAgentListsQuery);
|
||||
$agentList = [];
|
||||
if ($agentResult && $agentResult->num_rows > 0) {
|
||||
while ($row = $agentResult->fetch_assoc()) {
|
||||
$agentList[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle form submission
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$collectableAmount = isset($_POST['COLLECTABLE_AMOUNT']) ? floatval($_POST['COLLECTABLE_AMOUNT']) : 0;
|
||||
$collectableAgent = isset($_POST['COLLECTABLE_AGENT']) ? $_POST['COLLECTABLE_AGENT'] : null;
|
||||
|
||||
if ($collectableAmount > 0 && $collectableAgent) {
|
||||
$stmt = $conn->prepare("INSERT INTO agent_collections (agent, collectable_amount, collected_amount, date) VALUES (?, ?, 0, CURDATE())");
|
||||
$stmt->bind_param("sd", $collectableAgent, $collectableAmount);
|
||||
|
||||
if ($stmt->execute()) {
|
||||
echo "<div class='alert alert-success'>Target assigned successfully!</div>";
|
||||
} else {
|
||||
echo "<div class='alert alert-danger'>Error: " . $stmt->error . "</div>";
|
||||
}
|
||||
$stmt->close();
|
||||
} else {
|
||||
echo "<div class='alert alert-warning'>Please enter a valid amount and select an agent.</div>";
|
||||
}
|
||||
}
|
||||
|
||||
$conn->close();
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
<h2>Agent Collection Targets</h2>
|
||||
<form method="post" style="display: flex; flex-direction: column; gap: 15px;">
|
||||
<div>
|
||||
<label for="COLLECTABLE_AMOUNT">Collectable Amount:</label>
|
||||
<input id="COLLECTABLE_AMOUNT" class="form-control" name="COLLECTABLE_AMOUNT" type="text" placeholder="Enter Amount" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="COLLECTABLE_AGENT">Collectable Agent:</label>
|
||||
<select class="form-control" name="COLLECTABLE_AGENT" id="COLLECTABLE_AGENT">
|
||||
<?php
|
||||
foreach($agentList as $agent){
|
||||
echo '<option value="'.$agent['user_id'].'">'.$agent['user_id'].' / '.$agent['user_name'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Assign Target</button>
|
||||
</form>
|
||||
</div>
|
|
@ -9,7 +9,7 @@
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
|
|
|
@ -3,11 +3,9 @@ if (!isset($_SESSION['user_id']) || empty($_SESSION['user_id'])) {
|
|||
echo "<script>window.location.href = '/Agent/agent-login'</script>";
|
||||
exit;
|
||||
}
|
||||
function getTotalAmount(array $rows): float {
|
||||
// array_column diye sudhu AT_AMOUNT gulo niye ashbo
|
||||
$amounts = array_column($rows, 'AT_AMOUNT');
|
||||
|
||||
// jodi kono data na thake tahole 0 return hobe
|
||||
function getTotalAmount(array $rows): float {
|
||||
$amounts = array_column($rows, 'AT_AMOUNT');
|
||||
return array_sum($amounts);
|
||||
}
|
||||
|
||||
|
@ -17,47 +15,152 @@ if ($conn->connect_error) {
|
|||
}
|
||||
|
||||
$today = date("Y-m-d");
|
||||
$userId = $_SESSION['user_id'];
|
||||
$message = ""; // success/error message holder
|
||||
|
||||
// query
|
||||
$sql = "SELECT * FROM {$GLOBALS['arif_tran']} WHERE AT_ADMIN = '{$_SESSION['user_id']}' AND DATE(AT_TIMESTAMP) = '$today'";
|
||||
/* === Save button click handle === */
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['save_collection'])) {
|
||||
$rowId = intval($_POST['row_id']);
|
||||
$collectedAmount = floatval($_POST['collected_amount']);
|
||||
|
||||
$stmt = $conn->prepare("UPDATE agent_collections SET collected_amount = ? WHERE id = ? AND agent = ? AND date = ?");
|
||||
$stmt->bind_param("diss", $collectedAmount, $rowId, $userId, $today);
|
||||
|
||||
if ($stmt->execute()) {
|
||||
$message = "<p class='success-msg'>✅ Collection saved successfully!</p>";
|
||||
} else {
|
||||
$message = "<p class='error-msg'>❌ Failed to save collection!</p>";
|
||||
}
|
||||
$stmt->close();
|
||||
}
|
||||
|
||||
/* === Data fetch === */
|
||||
$targetSql = "SELECT * FROM agent_collections WHERE agent = '$userId' AND date = '$today'";
|
||||
$targetResult = $conn->query($targetSql);
|
||||
$targetRows = $targetResult->fetch_all(MYSQLI_ASSOC);
|
||||
|
||||
$sql = "SELECT * FROM {$GLOBALS['arif_tran']} WHERE AT_ADMIN = '$userId' AND DATE(AT_TIMESTAMP) = '$today'";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
// direct fetch_all
|
||||
$rows = $result ? $result->fetch_all(MYSQLI_ASSOC) : [];
|
||||
$totalAmount = getTotalAmount($rows);
|
||||
// var_dump($rows); // ekhane pura array peye jabe
|
||||
|
||||
$collectable = $targetRows[0]['collectable_amount'] ?? 0;
|
||||
$remaining = $collectable - $totalAmount;
|
||||
$remaining = $remaining < 0 ? 0 : $remaining;
|
||||
|
||||
$percent = $collectable > 0 ? ($totalAmount / $collectable) * 100 : 0;
|
||||
|
||||
// Fetch last 10 days report
|
||||
$repStmt = "SELECT * FROM agent_collections WHERE agent = '$userId' ORDER BY date DESC LIMIT 10;";
|
||||
$reportsStmt = $conn->query($repStmt);
|
||||
$reportRows = $reportsStmt->fetch_all(MYSQLI_ASSOC);
|
||||
|
||||
// echo json_encode($reportRows);
|
||||
$conn->close();
|
||||
// var_dump($_SESSION);
|
||||
?>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<h3 style="font-size: 20px; font-weight: 600; margin-bottom: 15px;">
|
||||
Welcome, <?= $_SESSION['name'] ?> 👋
|
||||
<h3 class="welcome-text">
|
||||
Welcome, <?= htmlspecialchars($_SESSION['name']) ?> 👋
|
||||
</h3>
|
||||
|
||||
<!-- Show success/error message -->
|
||||
<?= $message ?>
|
||||
|
||||
<div class="dashboard-total-section">
|
||||
<!-- Total Collection Card -->
|
||||
<!-- Total Collection -->
|
||||
<div class="card-box highlight">
|
||||
<h3><?= $totalAmount ?></h3>
|
||||
<h3>₹ <?= number_format($totalAmount, 2) ?></h3>
|
||||
<p>Total Collection</p>
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: <?= $percent ?>%;"></div>
|
||||
</div>
|
||||
<small><?= round($percent, 2) ?>% Completed</small>
|
||||
</div>
|
||||
|
||||
<!-- Loan & Recurring Card -->
|
||||
<!-- Total Collectable (with Remaining) -->
|
||||
<div class="card-box normal">
|
||||
<!-- <p><strong>Loan:</strong> <?= $totalLoan ?? 0 ?></p>
|
||||
<p><strong>Recurring:</strong> <?= $totalRecurring ?? 0 ?></p> -->
|
||||
<h3>₹ <?= number_format($collectable, 2) ?></h3>
|
||||
<p>Total Collectable</p>
|
||||
<div class="remaining-text">
|
||||
Remaining: <strong>₹ <?= number_format($remaining, 2) ?></strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn btn-primary w-100" href="/Agent/Receive" style="width: 100%; margin-top: 20px;">
|
||||
<i class="fa-solid fa-credit-card"></i>
|
||||
Recive New Payment
|
||||
</a>
|
||||
<div style="display: flex; flex-direction: row; width: 100%; justify-content: space-between; margin-top: 20px;">
|
||||
<!-- Payment Receive Button -->
|
||||
<a class="btn btn-primary w-100" href="/Agent/Receive">
|
||||
<i class="fa-solid fa-credit-card"></i>
|
||||
Receive New Payment
|
||||
</a>
|
||||
<!-- Save Collection Button -->
|
||||
<?php if (!empty($targetRows)) : ?>
|
||||
<form method="post" class="w-100">
|
||||
<input type="hidden" name="save_collection" value="1">
|
||||
<input type="hidden" name="row_id" value="<?= $targetRows[0]['id'] ?>">
|
||||
<input type="hidden" name="collected_amount" value="<?= $totalAmount ?>">
|
||||
<button type="submit" class="btn btn-success w-100"><i class="fa-solid fa-save"></i> Save Collection</button>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (!empty($reportRows)) : ?>
|
||||
<div class="report-section">
|
||||
<h4 class="report-title">📊 Last 10 Days Report</h4>
|
||||
<div class="report-cards">
|
||||
<?php foreach ($reportRows as $report): ?>
|
||||
<div class="report-card">
|
||||
<div class="report-date">
|
||||
<?= date("d M Y", strtotime($report['date'])) ?>
|
||||
</div>
|
||||
<div class="report-details">
|
||||
<p><strong>Target:</strong> ₹ <?= number_format($report['collectable_amount'], 2) ?></p>
|
||||
<p><strong>Collected:</strong> ₹ <?= number_format($report['collected_amount'], 2) ?></p>
|
||||
<p><strong>Remaining:</strong> ₹ <?= number_format($report['collectable_amount'] - $report['collected_amount'], 2) ?></p>
|
||||
</div>
|
||||
<div class="report-progress">
|
||||
<?php
|
||||
$percentDone = $report['collectable_amount'] > 0
|
||||
? ($report['collected_amount'] / $report['collectable_amount']) * 100
|
||||
: 0;
|
||||
?>
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: <?= $percentDone ?>%;"></div>
|
||||
</div>
|
||||
<small><?= round($percentDone, 2) ?>% Completed</small>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
.welcome-text {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.success-msg {
|
||||
color: green;
|
||||
background: #e6ffe6;
|
||||
padding: 8px 12px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.error-msg {
|
||||
color: red;
|
||||
background: #ffe6e6;
|
||||
padding: 8px 12px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.dashboard-total-section {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
|
@ -67,18 +170,19 @@ $conn->close();
|
|||
|
||||
.card-box {
|
||||
flex: 1;
|
||||
min-width: 180px;
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
min-width: 200px;
|
||||
background: linear-gradient(135deg, #fdfdfd, #f6f6f6);
|
||||
border-radius: 20px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
box-shadow: 0 6px 20px rgba(0,0,0,0.08);
|
||||
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.card-box:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.card-box h3 {
|
||||
|
@ -89,18 +193,120 @@ $conn->close();
|
|||
}
|
||||
|
||||
.card-box p {
|
||||
margin: 5px 0 0;
|
||||
margin: 6px 0 12px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.card-box.highlight {
|
||||
background: #e95420;
|
||||
background: linear-gradient(135deg, #e95420, #f37249);
|
||||
color: #fff;
|
||||
}
|
||||
.card-box.normal{
|
||||
background: linear-gradient(135deg, #ecececff, #ffffffff);
|
||||
}
|
||||
|
||||
.card-box.highlight h3,
|
||||
.card-box.highlight p {
|
||||
.card-box.highlight p,
|
||||
.card-box.highlight small {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
border-radius: 10px;
|
||||
margin: 10px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
transition: width 0.4s ease;
|
||||
}
|
||||
|
||||
.remaining-text {
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
background: #f0f0f0;
|
||||
display: inline-block;
|
||||
padding: 4px 10px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.report-section {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.report-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.report-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.report-card {
|
||||
background: linear-gradient(135deg, #ecececff, #ffffffff);
|
||||
border-radius: 16px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.report-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
|
||||
}
|
||||
|
||||
.report-date {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.report-details p {
|
||||
margin: 4px 0;
|
||||
font-size: 14px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.report-details strong {
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.report-progress {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.report-progress small {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.report-card .progress-bar {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: #eee;
|
||||
border-radius: 10px;
|
||||
margin: 8px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.report-card .progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(135deg, #e95420, #f37249);
|
||||
border-radius: 10px;
|
||||
transition: width 0.4s ease;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -56,6 +56,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
<div class="container py-5 mx-auto" style="max-width: 420px; margin-top: 200px;">
|
||||
<div class="mx-auto" style="">
|
||||
<div class="card shadow-lg border-0 rounded-4 p-4" style="background: linear-gradient(135deg, #f5f7fa, #d9dce0ff); padding: 20px; border-radius: 15px;">
|
||||
<img src="/asset/images/new_logo2.jpg" alt="Agent Logo" style="width: 80px; height: 80px; border-radius: 20px; display: block; margin: 0 auto 20px auto;">
|
||||
|
||||
<h4 class="text-center mb-4 fw-semibold text-primary">Agent Login</h4>
|
||||
|
||||
<?php if ($error): ?>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo.jpeg" alt=""></a>
|
||||
<a href="/Admin/"><img class="img-responsive logo" style="height:50px" src="/asset/images/new_logo2.jpg" alt=""></a>
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 344 KiB |
|
@ -0,0 +1,182 @@
|
|||
<?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/insert/actions_panel.twig */
|
||||
class __TwigTemplate_7afb17d589b273308658448423e89d40 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 "<fieldset class=\"pma-fieldset\" id=\"actions_panel\">
|
||||
<table class=\"table table-borderless w-auto tdblock\">
|
||||
<tr>
|
||||
<td class=\"text-nowrap align-middle\">
|
||||
<select name=\"submit_type\" class=\"control_at_footer\">
|
||||
";
|
||||
// line 6
|
||||
if ( !twig_test_empty(($context["where_clause"] ?? null))) {
|
||||
// line 7
|
||||
echo " <option value=\"save\">";
|
||||
echo _gettext("Save");
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
// line 9
|
||||
echo " <option value=\"insert\">";
|
||||
echo _gettext("Insert as new row");
|
||||
echo "</option>
|
||||
<option value=\"insertignore\">";
|
||||
echo _gettext("Insert as new row and ignore errors");
|
||||
// line 10
|
||||
echo "</option>
|
||||
<option value=\"showinsert\">";
|
||||
echo _gettext("Show insert query");
|
||||
// line 11
|
||||
echo "</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class=\"align-middle\">
|
||||
<strong>";
|
||||
echo _gettext("and then");
|
||||
// line 15
|
||||
echo "</strong>
|
||||
</td>
|
||||
<td class=\"text-nowrap align-middle\">
|
||||
<select name=\"after_insert\" class=\"control_at_footer\">
|
||||
<option value=\"back\"";
|
||||
// line 19
|
||||
echo (((($context["after_insert"] ?? null) == "back")) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo _gettext("Go back to previous page");
|
||||
echo "</option>
|
||||
<option value=\"new_insert\"";
|
||||
// line 20
|
||||
echo (((($context["after_insert"] ?? null) == "new_insert")) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo _gettext("Insert another new row");
|
||||
echo "</option>
|
||||
";
|
||||
// line 21
|
||||
if ( !twig_test_empty(($context["where_clause"] ?? null))) {
|
||||
// line 22
|
||||
echo " <option value=\"same_insert\"";
|
||||
echo (((($context["after_insert"] ?? null) == "same_insert")) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo _gettext("Go back to this page");
|
||||
echo "</option>
|
||||
";
|
||||
// line 23
|
||||
if ((($context["found_unique_key"] ?? null) && ($context["is_numeric"] ?? null))) {
|
||||
// line 24
|
||||
echo " <option value=\"edit_next\"";
|
||||
echo (((($context["after_insert"] ?? null) == "edit_next")) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo _gettext("Edit next row");
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
// line 26
|
||||
echo " ";
|
||||
}
|
||||
// line 27
|
||||
echo " </select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
";
|
||||
// line 32
|
||||
echo PhpMyAdmin\Html\Generator::showHint(_gettext("Use TAB key to move from value to value, or CTRL+arrows to move anywhere."));
|
||||
echo "
|
||||
</td>
|
||||
<td colspan=\"3\" class=\"text-end align-middle\">
|
||||
<input type=\"button\" class=\"btn btn-secondary preview_sql control_at_footer\" value=\"";
|
||||
echo _gettext("Preview SQL");
|
||||
// line 35
|
||||
echo "\">
|
||||
<input type=\"reset\" class=\"btn btn-secondary control_at_footer\" value=\"";
|
||||
echo _gettext("Reset");
|
||||
// line 36
|
||||
echo "\">
|
||||
<input type=\"submit\" class=\"btn btn-primary control_at_footer\" value=\"";
|
||||
echo _gettext("Go");
|
||||
// line 37
|
||||
echo "\" id=\"buttonYes\">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<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 46
|
||||
echo "</h5>
|
||||
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
|
||||
echo _gettext("Close");
|
||||
// line 47
|
||||
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 52
|
||||
echo "</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "table/insert/actions_panel.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 155 => 52, 147 => 47, 143 => 46, 131 => 37, 127 => 36, 123 => 35, 116 => 32, 109 => 27, 106 => 26, 98 => 24, 96 => 23, 89 => 22, 87 => 21, 81 => 20, 75 => 19, 69 => 15, 62 => 11, 58 => 10, 52 => 9, 46 => 7, 44 => 6, 37 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "table/insert/actions_panel.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/insert/actions_panel.twig");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
<?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/insert/get_head_and_foot_of_insert_row_table.twig */
|
||||
class __TwigTemplate_b1781500677588d72e4b67bd7af6c8f4 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=\"table-responsive-lg\">
|
||||
<table class=\"table table-striped align-middle my-3 insertRowTable w-auto\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>";
|
||||
echo _gettext("Column");
|
||||
// line 5
|
||||
echo "</th>
|
||||
";
|
||||
// line 6
|
||||
echo ($context["type"] ?? null);
|
||||
echo "
|
||||
";
|
||||
// line 7
|
||||
echo ($context["function"] ?? null);
|
||||
echo "
|
||||
<th>";
|
||||
echo _gettext("Null");
|
||||
// line 8
|
||||
echo "</th>
|
||||
<th class=\"w-50\">";
|
||||
echo _gettext("Value");
|
||||
// line 9
|
||||
echo "</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan=\"5\" class=\"tblFooters text-end\">
|
||||
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
|
||||
echo _gettext("Go");
|
||||
// line 15
|
||||
echo "\">
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "table/insert/get_head_and_foot_of_insert_row_table.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 69 => 15, 60 => 9, 56 => 8, 51 => 7, 47 => 6, 44 => 5, 37 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "table/insert/get_head_and_foot_of_insert_row_table.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/insert/get_head_and_foot_of_insert_row_table.twig");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
<?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/insert/get_html_for_insert_edit_form_header.twig */
|
||||
class __TwigTemplate_6b965c234ea03d43250a2e015c7fb944 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 id=\"insertForm\" class=\"lock-page";
|
||||
echo (((($context["has_blob_field"] ?? null) && ($context["is_upload"] ?? null))) ? (" disableAjax") : (""));
|
||||
echo "\" method=\"post\" action=\"";
|
||||
echo PhpMyAdmin\Url::getFromRoute("/table/replace");
|
||||
echo "\" name=\"insertForm\"";
|
||||
echo ((($context["is_upload"] ?? null)) ? (" enctype=\"multipart/form-data\"") : (""));
|
||||
echo ">";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "table/insert/get_html_for_insert_edit_form_header.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 37 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "table/insert/get_html_for_insert_edit_form_header.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/insert/get_html_for_insert_edit_form_header.twig");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,643 @@
|
|||
<?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/insert/column_row.twig */
|
||||
class __TwigTemplate_5d987e0c3be8e12755f389a9d36d94b8 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 class=\"noclick\">
|
||||
<td class=\"text-center\">
|
||||
";
|
||||
// line 3
|
||||
echo twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_title", [], "any", false, false, false, 3);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_name[multi_edit][";
|
||||
// line 4
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 4), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field", [], "any", false, false, false, 4), "html", null, true);
|
||||
echo "\">
|
||||
</td>
|
||||
|
||||
";
|
||||
// line 7
|
||||
if (($context["show_field_types_in_data_edit_view"] ?? null)) {
|
||||
// line 8
|
||||
echo " <td class=\"text-center";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "wrap", [], "any", false, false, false, 8), "html", null, true);
|
||||
echo "\">
|
||||
<span class=\"column_type\" dir=\"ltr\">";
|
||||
// line 9
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 9), "html", null, true);
|
||||
echo "</span>
|
||||
</td>
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
echo "
|
||||
";
|
||||
// line 13
|
||||
if (($context["show_function_fields"] ?? null)) {
|
||||
// line 14
|
||||
echo " ";
|
||||
if (($context["is_column_binary"] ?? null)) {
|
||||
// line 15
|
||||
echo " <td class=\"text-center\">";
|
||||
echo _gettext("Binary");
|
||||
echo "</td>
|
||||
";
|
||||
} elseif ((twig_in_filter("enum", twig_get_attribute($this->env, $this->source, // line 16
|
||||
($context["column"] ?? null), "True_Type", [], "any", false, false, false, 16)) || twig_in_filter("set", twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "True_Type", [], "any", false, false, false, 16)))) {
|
||||
// line 17
|
||||
echo " <td class=\"text-center\">--</td>
|
||||
";
|
||||
} else {
|
||||
// line 19
|
||||
echo " <td>
|
||||
<select name=\"funcs[multi_edit][";
|
||||
// line 20
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 20), "html", null, true);
|
||||
echo "]\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 20));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 20), "html", null, true);
|
||||
echo "')\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_1\">
|
||||
";
|
||||
// line 21
|
||||
echo ($context["function_options"] ?? null);
|
||||
echo "
|
||||
</select>
|
||||
</td>
|
||||
";
|
||||
}
|
||||
// line 25
|
||||
echo " ";
|
||||
}
|
||||
// line 26
|
||||
echo "
|
||||
<td>
|
||||
";
|
||||
// line 28
|
||||
if (((twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Null", [], "any", false, false, false, 28)) == "YES") && !($context["read_only"] ?? null))) {
|
||||
// line 29
|
||||
echo " <input type=\"hidden\" name=\"fields_null_prev[multi_edit][";
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 29), "html", null, true);
|
||||
echo "]\"";
|
||||
echo (((($context["real_null_value"] ?? null) && !twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "first_timestamp", [], "any", false, false, false, 29))) ? (" value=\"on\"") : (""));
|
||||
echo ">
|
||||
<input type=\"checkbox\" class=\"checkbox_null\" name=\"fields_null[multi_edit][";
|
||||
// line 30
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 30), "html", null, true);
|
||||
echo "]\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_2\" aria-label=\"";
|
||||
echo _gettext("Use the NULL value for this column.");
|
||||
echo "\"";
|
||||
echo ((($context["real_null_value"] ?? null)) ? (" checked") : (""));
|
||||
echo ">
|
||||
<input type=\"hidden\" class=\"nullify_code\" name=\"nullify_code[multi_edit][";
|
||||
// line 31
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 31), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo twig_escape_filter($this->env, ($context["nullify_code"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
<input type=\"hidden\" class=\"hashed_field\" name=\"hashed_field[multi_edit][";
|
||||
// line 32
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 32), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 32), "html", null, true);
|
||||
echo "\">
|
||||
<input type=\"hidden\" class=\"multi_edit\" name=\"multi_edit[multi_edit][";
|
||||
// line 33
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 33), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString((("[multi_edit][" . ($context["row_id"] ?? null)) . "]"));
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 35
|
||||
echo " </td>
|
||||
|
||||
<td data-type=\"";
|
||||
// line 37
|
||||
echo twig_escape_filter($this->env, ($context["type"] ?? null), "html", null, true);
|
||||
echo "\" data-decimals=\"";
|
||||
echo twig_escape_filter($this->env, ($context["decimals"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
// line 39
|
||||
echo " <span class=\"default_value hide\">";
|
||||
echo ($context["special_chars"] ?? null);
|
||||
echo "</span>
|
||||
|
||||
";
|
||||
// line 41
|
||||
if ( !twig_test_empty(($context["transformed_value"] ?? null))) {
|
||||
// line 42
|
||||
echo " ";
|
||||
echo ($context["transformed_value"] ?? null);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 44
|
||||
echo " ";
|
||||
if (($context["is_value_foreign_link"] ?? null)) {
|
||||
// line 45
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 46
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 46), "html", null, true);
|
||||
echo "]\" value=\"foreign\">
|
||||
<input type=\"text\" name=\"fields[multi_edit][";
|
||||
// line 47
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 47), "html", null, true);
|
||||
echo "]\" class=\"textfield\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 47));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 47), "html", null, true);
|
||||
echo "')\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" value=\"";
|
||||
echo twig_escape_filter($this->env, ($context["data"] ?? null), "html", null, true);
|
||||
echo "\">
|
||||
<a class=\"ajax browse_foreign\" href=\"";
|
||||
// line 48
|
||||
echo PhpMyAdmin\Url::getFromRoute("/browse-foreigners");
|
||||
echo "\" data-post=\"";
|
||||
echo PhpMyAdmin\Url::getCommon(["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null), "field" => twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field", [], "any", false, false, false, 48), "rownumber" => ($context["row_id"] ?? null), "data" => ($context["data"] ?? null)]);
|
||||
echo "\">";
|
||||
echo PhpMyAdmin\Html\Generator::getIcon("b_browse", _gettext("Browse foreign values"));
|
||||
echo "</a>
|
||||
";
|
||||
} elseif ( !twig_test_empty( // line 49
|
||||
($context["foreign_dropdown"] ?? null))) {
|
||||
// line 50
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 51
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 51), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo ((twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "is_binary", [], "any", false, false, false, 51)) ? ("hex") : ("foreign"));
|
||||
echo "\">
|
||||
<select name=\"fields[multi_edit][";
|
||||
// line 52
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 52), "html", null, true);
|
||||
echo "]\" class=\"textfield\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 52));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 52), "html", null, true);
|
||||
echo "')\">
|
||||
";
|
||||
// line 53
|
||||
echo ($context["foreign_dropdown"] ?? null);
|
||||
echo "
|
||||
</select>
|
||||
";
|
||||
} elseif (((( // line 55
|
||||
($context["longtext_double_textarea"] ?? null) && twig_in_filter("longtext", twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 55))) || twig_in_filter("json", twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 55))) || twig_in_filter("text", twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 55)))) {
|
||||
// line 56
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<textarea name=\"fields[multi_edit][";
|
||||
// line 57
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 57), "html", null, true);
|
||||
echo "]\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" data-type=\"";
|
||||
echo twig_escape_filter($this->env, ($context["data_type"] ?? null), "html", null, true);
|
||||
echo "\" dir=\"";
|
||||
echo twig_escape_filter($this->env, ($context["text_dir"] ?? null), "html", null, true);
|
||||
echo "\" rows=\"";
|
||||
echo twig_escape_filter($this->env, ($context["textarea_rows"] ?? null), "html", null, true);
|
||||
echo "\" cols=\"";
|
||||
echo twig_escape_filter($this->env, ($context["textarea_cols"] ?? null), "html", null, true);
|
||||
echo "\"";
|
||||
// line 58
|
||||
((($context["max_length"] ?? null)) ? (print (twig_escape_filter($this->env, ((" data-maxlength=\"" . ($context["max_length"] ?? null)) . "\""), "html", null, true))) : (print ("")));
|
||||
echo ((twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "is_char", [], "any", false, false, false, 58)) ? (" class=\"char charField\"") : (""));
|
||||
echo " onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 58));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 58), "html", null, true);
|
||||
echo "')\">";
|
||||
// line 60
|
||||
echo (((is_string($__internal_compile_0 = ($context["special_chars"] ?? null)) && is_string($__internal_compile_1 = "
|
||||
") && ('' === $__internal_compile_1 || 0 === strpos($__internal_compile_0, $__internal_compile_1)))) ? ("
|
||||
") : (""));
|
||||
echo ($context["special_chars"] ?? null);
|
||||
// line 61
|
||||
echo "</textarea>
|
||||
";
|
||||
// line 62
|
||||
if ((twig_in_filter("text", twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 62)) && (twig_length_filter($this->env, ($context["special_chars"] ?? null)) > 32000))) {
|
||||
// line 63
|
||||
echo " </td>
|
||||
<td>
|
||||
";
|
||||
echo _gettext("Because of its length,<br> this column might not be editable.");
|
||||
// line 66
|
||||
echo " ";
|
||||
}
|
||||
// line 67
|
||||
echo " ";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 67) == "enum")) {
|
||||
// line 68
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 69
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 69), "html", null, true);
|
||||
echo "]\" value=\"enum\">
|
||||
";
|
||||
// line 70
|
||||
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Type", [], "any", false, false, false, 70)) > 20)) {
|
||||
// line 71
|
||||
echo " <select name=\"fields[multi_edit][";
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 71), "html", null, true);
|
||||
echo "]\" class=\"textfield\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 71));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 71), "html", null, true);
|
||||
echo "')\">
|
||||
<option value=\"\"></option>
|
||||
";
|
||||
// line 73
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "values", [], "any", false, false, false, 73));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["enum_value"]) {
|
||||
// line 74
|
||||
echo " <option value=\"";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 74), "html", null, true);
|
||||
echo "\"";
|
||||
echo (((twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 74) == ($context["enum_selected_value"] ?? null))) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 74), "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['enum_value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 76
|
||||
echo " </select>
|
||||
";
|
||||
} else {
|
||||
// line 78
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "values", [], "any", false, false, false, 78));
|
||||
$context['loop'] = [
|
||||
'parent' => $context['_parent'],
|
||||
'index0' => 0,
|
||||
'index' => 1,
|
||||
'first' => true,
|
||||
];
|
||||
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
|
||||
$length = count($context['_seq']);
|
||||
$context['loop']['revindex0'] = $length - 1;
|
||||
$context['loop']['revindex'] = $length;
|
||||
$context['loop']['length'] = $length;
|
||||
$context['loop']['last'] = 1 === $length;
|
||||
}
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["enum_value"]) {
|
||||
// line 79
|
||||
echo " <input type=\"radio\" name=\"fields[multi_edit][";
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 79), "html", null, true);
|
||||
echo "]\" value=\"";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 79), "html", null, true);
|
||||
echo "\" class=\"textfield\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3_";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 79), "html", null, true);
|
||||
echo "\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 79));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 79), "html", null, true);
|
||||
echo "')\"";
|
||||
echo (((twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 79) == ($context["enum_selected_value"] ?? null))) ? (" checked") : (""));
|
||||
echo ">
|
||||
<label for=\"field_";
|
||||
// line 80
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3_";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 80), "html", null, true);
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["enum_value"], "plain", [], "any", false, false, false, 80), "html", null, true);
|
||||
echo "</label>
|
||||
";
|
||||
++$context['loop']['index0'];
|
||||
++$context['loop']['index'];
|
||||
$context['loop']['first'] = false;
|
||||
if (isset($context['loop']['length'])) {
|
||||
--$context['loop']['revindex0'];
|
||||
--$context['loop']['revindex'];
|
||||
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['enum_value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 82
|
||||
echo " ";
|
||||
}
|
||||
// line 83
|
||||
echo " ";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 83) == "set")) {
|
||||
// line 84
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 85
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 85), "html", null, true);
|
||||
echo "]\" value=\"set\">
|
||||
<select name=\"fields[multi_edit][";
|
||||
// line 86
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 86), "html", null, true);
|
||||
echo "][]\" class=\"textfield\" size=\"";
|
||||
echo twig_escape_filter($this->env, ($context["set_select_size"] ?? null), "html", null, true);
|
||||
echo "\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 86));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 86), "html", null, true);
|
||||
echo "')\" multiple>
|
||||
";
|
||||
// line 87
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(($context["set_values"] ?? null));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["set_value"]) {
|
||||
// line 88
|
||||
echo " <option value=\"";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["set_value"], "plain", [], "any", false, false, false, 88), "html", null, true);
|
||||
echo "\"";
|
||||
echo ((twig_in_filter(twig_get_attribute($this->env, $this->source, $context["set_value"], "plain", [], "any", false, false, false, 88), twig_split_filter($this->env, ($context["data"] ?? null), ","))) ? (" selected") : (""));
|
||||
echo ">";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["set_value"], "plain", [], "any", false, false, false, 88), "html", null, true);
|
||||
echo "</option>
|
||||
";
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['set_value'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 90
|
||||
echo " </select>
|
||||
";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, // line 91
|
||||
($context["column"] ?? null), "is_binary", [], "any", false, false, false, 91) || twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "is_blob", [], "any", false, false, false, 91))) {
|
||||
// line 92
|
||||
echo " ";
|
||||
if (($context["is_column_protected_blob"] ?? null)) {
|
||||
// line 93
|
||||
echo " ";
|
||||
echo _gettext("Binary - do not edit");
|
||||
// line 94
|
||||
echo " (";
|
||||
echo twig_escape_filter($this->env, ($context["blob_value"] ?? null), "html", null, true);
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, ($context["blob_value_unit"] ?? null), "html", null, true);
|
||||
echo ")
|
||||
<input type=\"hidden\" name=\"fields[multi_edit][";
|
||||
// line 95
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 95), "html", null, true);
|
||||
echo "]\" value=\"\">
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 96
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 96), "html", null, true);
|
||||
echo "]\" value=\"protected\">
|
||||
";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, // line 97
|
||||
($context["column"] ?? null), "is_blob", [], "any", false, false, false, 97) || (twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "len", [], "any", false, false, false, 97) > ($context["limit_chars"] ?? null)))) {
|
||||
// line 98
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 99
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 99), "html", null, true);
|
||||
echo "]\" value=\"hex\">
|
||||
<textarea name=\"fields[multi_edit][";
|
||||
// line 100
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 100), "html", null, true);
|
||||
echo "]\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" data-type=\"HEX\" dir=\"";
|
||||
echo twig_escape_filter($this->env, ($context["text_dir"] ?? null), "html", null, true);
|
||||
echo "\" rows=\"";
|
||||
echo twig_escape_filter($this->env, ($context["textarea_rows"] ?? null), "html", null, true);
|
||||
echo "\" cols=\"";
|
||||
echo twig_escape_filter($this->env, ($context["textarea_cols"] ?? null), "html", null, true);
|
||||
echo "\"";
|
||||
// line 101
|
||||
((($context["max_length"] ?? null)) ? (print (twig_escape_filter($this->env, ((" data-maxlength=\"" . ($context["max_length"] ?? null)) . "\""), "html", null, true))) : (print ("")));
|
||||
echo ((twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "is_char", [], "any", false, false, false, 101)) ? (" class=\"char charField\"") : (""));
|
||||
echo " onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 101));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 101), "html", null, true);
|
||||
echo "')\">";
|
||||
// line 103
|
||||
echo (((is_string($__internal_compile_2 = ($context["special_chars"] ?? null)) && is_string($__internal_compile_3 = "
|
||||
") && ('' === $__internal_compile_3 || 0 === strpos($__internal_compile_2, $__internal_compile_3)))) ? ("
|
||||
") : (""));
|
||||
echo ($context["special_chars"] ?? null);
|
||||
// line 104
|
||||
echo "</textarea>
|
||||
";
|
||||
} else {
|
||||
// line 106
|
||||
echo " ";
|
||||
echo ($context["backup_field"] ?? null);
|
||||
echo "
|
||||
<input type=\"hidden\" name=\"fields_type[multi_edit][";
|
||||
// line 107
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 107), "html", null, true);
|
||||
echo "]\" value=\"hex\">
|
||||
";
|
||||
// line 108
|
||||
echo ($context["input_field_html"] ?? null);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 110
|
||||
echo " ";
|
||||
if ((($context["is_upload"] ?? null) && twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "is_blob", [], "any", false, false, false, 110))) {
|
||||
// line 111
|
||||
echo " <br>
|
||||
";
|
||||
// line 113
|
||||
echo " <input type=\"file\" name=\"fields_upload[multi_edit][";
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "][";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 113), "html", null, true);
|
||||
echo "]\" class=\"textfield noDragDrop\" id=\"field_";
|
||||
echo twig_escape_filter($this->env, ($context["id_index"] ?? null), "html", null, true);
|
||||
echo "_3\" size=\"10\" onchange=\"return verificationsAfterFieldChange('";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "Field_md5", [], "any", false, false, false, 113));
|
||||
echo "', '";
|
||||
echo PhpMyAdmin\Sanitize::escapeJsString(($context["row_id"] ?? null));
|
||||
echo "', '";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 113), "html", null, true);
|
||||
echo "')\">
|
||||
";
|
||||
// line 114
|
||||
echo twig_escape_filter($this->env, ($context["max_upload_size"] ?? null), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 116
|
||||
echo " ";
|
||||
echo ($context["select_option_for_upload"] ?? null);
|
||||
echo "
|
||||
";
|
||||
} else {
|
||||
// line 118
|
||||
echo " ";
|
||||
echo ($context["value"] ?? null);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 120
|
||||
echo "
|
||||
";
|
||||
// line 121
|
||||
if (twig_in_filter(twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "pma_type", [], "any", false, false, false, 121), ($context["gis_data_types"] ?? null))) {
|
||||
// line 122
|
||||
echo " <span class=\"open_gis_editor\" data-row-id=\"";
|
||||
echo twig_escape_filter($this->env, ($context["row_id"] ?? null), "html", null, true);
|
||||
echo "\">";
|
||||
echo PhpMyAdmin\Html\Generator::linkOrButton("#", null, PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit/Insert")), [], "_blank");
|
||||
echo "</span>
|
||||
";
|
||||
}
|
||||
// line 124
|
||||
echo " ";
|
||||
}
|
||||
// line 125
|
||||
echo " </td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "table/insert/column_row.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 619 => 125, 616 => 124, 608 => 122, 606 => 121, 603 => 120, 597 => 118, 591 => 116, 586 => 114, 571 => 113, 568 => 111, 565 => 110, 560 => 108, 554 => 107, 549 => 106, 545 => 104, 540 => 103, 530 => 101, 517 => 100, 511 => 99, 506 => 98, 504 => 97, 498 => 96, 492 => 95, 485 => 94, 482 => 93, 479 => 92, 477 => 91, 474 => 90, 461 => 88, 457 => 87, 441 => 86, 435 => 85, 430 => 84, 427 => 83, 424 => 82, 404 => 80, 383 => 79, 365 => 78, 361 => 76, 348 => 74, 344 => 73, 328 => 71, 326 => 70, 320 => 69, 315 => 68, 312 => 67, 309 => 66, 304 => 63, 302 => 62, 299 => 61, 294 => 60, 284 => 58, 269 => 57, 264 => 56, 262 => 55, 257 => 53, 243 => 52, 235 => 51, 230 => 50, 228 => 49, 220 => 48, 204 => 47, 198 => 46, 193 => 45, 190 => 44, 184 => 42, 182 => 41, 176 => 39, 170 => 37, 166 => 35, 157 => 33, 149 => 32, 141 => 31, 129 => 30, 120 => 29, 118 => 28, 114 => 26, 111 => 25, 104 => 21, 90 => 20, 87 => 19, 83 => 17, 81 => 16, 76 => 15, 73 => 14, 71 => 13, 68 => 12, 62 => 9, 57 => 8, 55 => 7, 45 => 4, 41 => 3, 37 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("", "table/insert/column_row.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/insert/column_row.twig");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue