added images
This commit is contained in:
parent
7a2cac27cd
commit
5b7a8b57d5
@ -268,6 +268,7 @@ if (!empty($_GET['ajax'])) {
|
|||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
p.*,
|
p.*,
|
||||||
m.nome AS matrice,
|
m.nome AS matrice,
|
||||||
|
m.photo AS matrice_photo,
|
||||||
(
|
(
|
||||||
SELECT GROUP_CONCAT(m.nome ORDER BY m.nome SEPARATOR ' | ')
|
SELECT GROUP_CONCAT(m.nome ORDER BY m.nome SEPARATOR ' | ')
|
||||||
FROM productiondata_mescole pm
|
FROM productiondata_mescole pm
|
||||||
@ -313,6 +314,7 @@ if (!empty($_GET['ajax'])) {
|
|||||||
$sql2 = "SELECT
|
$sql2 = "SELECT
|
||||||
p.*,
|
p.*,
|
||||||
m.nome AS matrice,
|
m.nome AS matrice,
|
||||||
|
m.photo AS matrice_photo,
|
||||||
(
|
(
|
||||||
SELECT GROUP_CONCAT(m2.nome ORDER BY m2.nome SEPARATOR ' | ')
|
SELECT GROUP_CONCAT(m2.nome ORDER BY m2.nome SEPARATOR ' | ')
|
||||||
FROM productiondata_mescole pm
|
FROM productiondata_mescole pm
|
||||||
|
|||||||
@ -37,6 +37,15 @@ $startTime = ($isInProduction || $isPaused)
|
|||||||
$badgeColor = $r['badge_color'] ?? '#6c757d';
|
$badgeColor = $r['badge_color'] ?? '#6c757d';
|
||||||
$lineColor = $r['line_color'] ?? '#e9ecef';
|
$lineColor = $r['line_color'] ?? '#e9ecef';
|
||||||
$statusNome = $r['status_nome'];
|
$statusNome = $r['status_nome'];
|
||||||
|
$matricePhoto = $r['matrice_photo'] ?? '';
|
||||||
|
$placeholder = 'assets/images/no-photo.png';
|
||||||
|
|
||||||
|
if ($matricePhoto) {
|
||||||
|
$matricePath = 'photos/matrici/' . $matricePhoto;
|
||||||
|
} else {
|
||||||
|
$matricePath = $placeholder;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="record-card <?= $isInProduction || $isPaused ? 'in-production expanded' : 'programmed' ?>"
|
<div class="record-card <?= $isInProduction || $isPaused ? 'in-production expanded' : 'programmed' ?>"
|
||||||
@ -49,6 +58,22 @@ $statusNome = $r['status_nome'];
|
|||||||
<!-- RIGA VISIBILE -->
|
<!-- RIGA VISIBILE -->
|
||||||
<div class="record-summary">
|
<div class="record-summary">
|
||||||
<div class="summary-grid">
|
<div class="summary-grid">
|
||||||
|
<!-- FOTO MATRICE -->
|
||||||
|
<div>
|
||||||
|
<strong>Foto</strong>
|
||||||
|
<?php if ($matricePhoto): ?>
|
||||||
|
<div class="photo-thumb"
|
||||||
|
data-full="<?= htmlspecialchars($matricePath, ENT_QUOTES) ?>"
|
||||||
|
style="width:80px;height:60px;border-radius:8px;overflow:hidden;
|
||||||
|
border:1px solid #e2e8f0;cursor:pointer;background:#f8fafc;">
|
||||||
|
<img src="<?= htmlspecialchars($matricePath, ENT_QUOTES) ?>"
|
||||||
|
alt="Foto matrice"
|
||||||
|
style="width:100%;height:100%;object-fit:cover;">
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<span style="color:#94a3b8;">Nessuna foto</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<strong>Conf. Ord.</strong>
|
<strong>Conf. Ord.</strong>
|
||||||
<span data-field="conferma_ordine">
|
<span data-field="conferma_ordine">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user