fixed view and multi

This commit is contained in:
2025-12-03 09:55:42 +01:00
parent dd9d109dee
commit 77e5820dcc
8 changed files with 201 additions and 60 deletions
+11 -1
View File
@@ -49,11 +49,19 @@ $statusNome = $r['status_nome'];
<!-- RIGA VISIBILE -->
<div class="record-summary">
<div class="summary-grid">
<div>
<strong>Conf. Ord.</strong>
<span data-field="conferma_ordine">
<?= htmlspecialchars($r['conferma_ordine'] ?? '') ?>
</span>
</div>
<div><strong>Linea</strong> <span><?= htmlspecialchars($r['linea']) ?></span></div>
<div><strong>Matrice</strong> <span><?= htmlspecialchars($r['matrice']) ?></span></div>
<?php
// Ricostruzione mescole con nuova struttura
$mescRaw = $r['mescole_list'] ?? ''; // il campo viene da GROUP_CONCAT
$mescRaw = $r['mescole_list'] ?? ''; // il campo viene da GROUP_CONCAT
$mescArray = $mescRaw !== '' ? explode(' | ', $mescRaw) : [];
$mescCount = count($mescArray);
?>
@@ -76,6 +84,7 @@ $statusNome = $r['status_nome'];
</button>
<?php endif; ?>
</div>
<div><strong>Cliente</strong> <span><?= htmlspecialchars($r['cliente'] ?? '-') ?></span></div>
<div><strong>Zibo</strong> <span><?= $dataZibo ?></span></div>
<div><strong>Data Cl.</strong> <span><?= $dataCliente ?></span></div>
@@ -91,6 +100,7 @@ $statusNome = $r['status_nome'];
</div>
</div>
<!-- RIGA ESPANSA -->
<div class="record-expanded">
<?php if ($isInProduction || $isPaused): ?>