dashboard fix
This commit is contained in:
@@ -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'] ?>"
|
||||
|
||||
Reference in New Issue
Block a user