getAtti(); if (!empty($atti)) { $status = "status-border-success"; foreach($atti AS $atto) { if ($atto["stato"] < 100) { $status = "status-border-warning"; } } if ($status == "status-border-warning") { $alertManager->addWarningAlert(__("Atti da inviare"),$hrefComando); } } else { $alertManager->addDangerAlert(__("Nessun atto presente"),$hrefComando); } } ?>