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.1 KiB
31 righe
1.1 KiB
<? |
|
if (isset($gara) && isset($gara->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"; |
|
} |
|
} |
|
} |
|
?>
|