setLotto($lotto["codice"])) { $managerRichieste = $gara->getManagerRichieste(); $richieste = $managerRichieste->getRichieste(); if (!empty($richieste)) { $status = "status-border-warning"; $hrefComandoLotto = $hrefComando . "&codice_lotto={$lotto["codice"]}"; foreach($richieste AS $richiesta) { $ooee = $managerRichieste->getOE($richiesta["codice"]); if (!empty($ooee)) { $totaleRichieste += count($ooee); foreach($ooee AS $oe) { if (!empty($oe["sha256"])) { $countRisposte++; $oeInfo = oeManager::getOE($oe["codice_operatore"]); $alertManager->addSuccessAlert(mysql2datetime($oe["timestamp_trasmissione"]) . " - " . $oeInfo["ragione_sociale"] . " - " . __("Risposta") . ": " . $richiesta["titolo"],$hrefComandoLotto); } } } } } } } if ($totaleRichieste > 0 && $totaleRichieste == $countRisposte) { $status = "status-border-success"; } unset($gara->lotto); } ?>