dashboard fix

This commit is contained in:
2025-11-26 11:24:29 +01:00
parent 4c63f16a54
commit a1c9d9f789
5 changed files with 957 additions and 32 deletions
@@ -357,7 +357,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['action'])) {
<tbody>
<?php foreach ($rows_special as $r): ?>
<?php $sec = intval($r['tempo_totale_produzione'] ?? 0); ?>
<?php if (!empty($r['start_time'])) {
// Calcolo differenza tra adesso e lo start_time
$start = strtotime($r['start_time']);
$now = time();
$sec = max(0, $now - $start);
} else {
$sec = 0;
}
?>
<tr class="special-row"
data-id="<?= $r['id'] ?>"