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.
37 righe
1.3 KiB
37 righe
1.3 KiB
<? |
|
$show = false; |
|
$status_anomalia = []; |
|
if (!empty($gara)) { |
|
foreach($lotti AS $lotto) { |
|
if ($gara->setLotto($lotto["codice"])) { |
|
$alertInserito = false; |
|
$partecipanti = $gara->getPartecipanti(); |
|
if (!empty($partecipanti)) { |
|
foreach($partecipanti AS $partecipante) { |
|
if ($partecipante["esclusione_automatica"] != "S" && ($partecipante["anomalia"] == "S" || $partecipante["a_verificata"] == "S")) { |
|
$show = true; |
|
if ($partecipante["a_verificata"] == "S") { |
|
$status_anomalia[] = "status-border-success"; |
|
} else { |
|
if (!$alertInserito && empty($lock)) { |
|
$alertManager->addDangerAlert(__("Lotto") . " {$lotto["numero"]} - " . __("Anomalie in attesa di verifica"), $hrefComando .= "&codice_lotto=" . $lotto["codice"]); |
|
$alertInserito = true; |
|
} |
|
$status_anomalia[] = "status-border-danger"; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
$gara->lotto = null; |
|
if (!empty($status_anomalia)) { |
|
$status_anomalia = array_unique($status_anomalia); |
|
if (count($status_anomalia) > 1) { |
|
$status_anomalia = "status-border-warning"; |
|
} else { |
|
$status_anomalia = $status_anomalia[0]; |
|
} |
|
} |
|
} |
|
?>
|