getRisposteElaborazione()["asta"]) && $gara->getRisposteElaborazione()["asta"] == "S") { $statuses = []; foreach($lotti as $lotto) { if ($gara->setLotto($lotto["codice"])) { $asta = $gara->getAsta(); if (!empty($asta)) { if (strtotime($asta["fine"]) < time()) { $statuses[] = "status-border-success"; } else { if (strtotime($asta["inizio"]) < time()) { $alertManager->addSuccessAlert(__("Lotto") . " {$lotto["numero"]} - " . __("Asta in corso"), $hrefComando .= "&codice_lotto=" . $lotto["codice"]); } $statuses[] = "status-border-warning"; } } else { $alertManager->addDangerAlert(__("Lotto") . " {$lotto["numero"]} - " . __("Asta non configurata"), $hrefComando .= "&codice_lotto=" . $lotto["codice"]); $statuses[] = "status-border-danger"; } } } if (!empty($statuses)) { $statuses = array_unique($statuses); if (count($statuses) === 1) { $status = $statuses[0]; } else { $status = "status-border-warning"; } } } ?>