fixed sommario and added queue mago

This commit is contained in:
2026-10-20 12:08:35 +02:00
parent b6145e0553
commit 89e5388b75
12 changed files with 2558 additions and 7 deletions
@@ -250,6 +250,16 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
<?php endforeach; ?>
</div>
<?php
$nuoviMago = 0;
try {
$nuoviMago = (int)$pdo->query("SELECT COUNT(*) FROM mago_prod_queue WHERE queue_status = 'nuovo' OR (queue_status = 'importato' AND mago_changed = 1)")->fetchColumn();
} catch (Throwable $e) {
}
?>
<a href="production_mago_queue.php" class="btn btn-warning fw-bold">
🆕 Nuovi da Mago <?php if ($nuoviMago): ?><span class="badge bg-dark ms-1"><?= $nuoviMago ?></span><?php endif; ?>
</a>
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalNuovo">Aggiungi</button>
<button class="btn btn-secondary" onclick="location.href='production_dashboard.php'">Torna</button>
</div>