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.
30 righe
1.2 KiB
30 righe
1.2 KiB
<? |
|
if (isset($lotti) && (!empty($showPercentile))) { |
|
$statuses = []; |
|
foreach($lotti AS $lotto) { |
|
$gara->setLotto($lotto["codice"]); |
|
$ribassoBase = $gara->getExtraInfo()["lotto"]["ribassoRiferimentoMetodoC"] ?? null; |
|
$hrefComandoStatus = str_replace("index.php","edit.php",$hrefComando)."&codice_lotto=".$lotto["codice"]; |
|
$risposta = $gara->getRispostaElaborazioneAlgoritmoAnomalia(); |
|
|
|
if (empty($ribassoBase)) { |
|
|
|
$statuses[] = $risposta == "C" ? "status-border-danger" : "status-border-warning"; |
|
$method = $risposta == "C" ? "addDangerAlert" : "addWarningAlert"; |
|
$alertManager->$method(__("Lotto") . " " . $lotto["numero"] . " - " . __("Ribasso di riferimento per anomalia non individuato"),$hrefComandoStatus); |
|
|
|
} else { |
|
$statuses[] = "status-border-success"; |
|
} |
|
} |
|
if (!empty($statuses)) { |
|
$statuses = array_unique($statuses); |
|
if (count($statuses) > 1) { |
|
$status = "status-border-warning"; |
|
} else { |
|
$status = $statuses[0]; |
|
} |
|
} else { |
|
$status = ($risposta == "C") ? "status-border-danger" : "status-border-warning"; |
|
} |
|
}
|
|
|