Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
31 righe
1.0 KiB
31 righe
1.0 KiB
<? |
|
$show = false; |
|
if (isset($progetto) && !empty($progetto->info["cup"])) { |
|
$monitor = $progetto->getManagerMonitoraggio(); |
|
$schede = $monitor->getScheda(); |
|
if (!empty($schede)) { |
|
$show = true; |
|
foreach($schede AS $scheda) { |
|
if ($scheda["stato"] === "0" || $scheda["stato"] === "1") { |
|
$invia_status = "status-border-warning"; |
|
$alertManager->addWarningAlert(__("Schede in attesa di essere trasmesse"),$hrefComando); |
|
break; |
|
} |
|
} |
|
$packs = $monitor->getPacks(); |
|
if (!empty($packs)) { |
|
$availablePacks = true; |
|
foreach($packs AS $pack) { |
|
if ($pack["stato"] == 10 || $pack["stato"] == 60) { |
|
$invia_status = "status-border-warning"; |
|
$alertManager->addWarningAlert(__("Tracciati in attesa di essere lavorati"),$hrefComando); |
|
break; |
|
} |
|
} |
|
} |
|
if (empty($invia_status) && !empty($availablePacks)) { |
|
$invia_status = "status-border-success"; |
|
} |
|
} |
|
} |
|
?>
|