lotto = null; if (!empty($gara->getRichieste())) { if ($gara->round["infoFase"]["graduatoria"]) { $general = 0; foreach($lotti AS $lotto) { if (in_array($lotto["stato"],gara::statiTermineProcedura()) === false) { $empty = 0; if ($gara->setLotto($lotto["codice"])) { $tipologieBusta = $gara->busteDisponibili(); foreach($tipologieBusta AS $tipo => $descrizione) { if (!empty($gara->getRichieste($tipo))) { $status = "status-border-warning"; } else { $msg = __("Lotto") ."#" . $lotto["numero"] . " - " . __("Non sono stati richiesti documenti per la ") . $descrizione["titolo"]; $href = "/backend/gare/buste/index.php?codice={$gara->info["codice"]}&codice_round={$gara->round["codice"]}&codice_lotto={$lotto["codice"]}"; $alertManager->addWarningAlert($msg,$href); $empty++; $general++; } } if ($empty == count($tipologieBusta)) { $msg = __("Lotto") ."#" . $lotto["numero"] . " - " . __("Non sono state configurate richieste"); $href = "/backend/gare/buste/index.php?codice={$gara->info["codice"]}&codice_round={$gara->round["codice"]}&codice_lotto={$lotto["codice"]}"; $alertManager->addDangerAlert($msg,$href); } } else { $alertManager->addDangerAlert(__("Errore inizializzazione lotto per verifica")); } } } if (empty($general)) { $status = "status-border-success"; } } else { $status = "status-border-success"; } if (!$gara->configurazioneBusteConfermata()) { $status = "status-border-danger"; $msg = __("Confermare la configurazione delle buste"); $href = "/backend/gare/buste/index.php?codice={$gara->info["codice"]}&codice_round={$gara->round["codice"]}"; $alertManager->addDangerAlert($msg,$href); } } else { $msg = __("Non sono state configurate richieste"); $href = "/backend/gare/buste/index.php?codice={$gara->info["codice"]}&codice_round={$gara->round["codice"]}"; $alertManager->addDangerAlert($msg,$href); } } ?>