gestione gare pubbliche
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.
 
 
 
 
 

32 righe
1.2 KiB

<?
if (!empty($gara) && !empty($show)) {
$status = "status-border-danger";
$checkLotti = $gara->getLotti();
$ok = 0;
$totaleLotti = count($checkLotti);
if (!empty($checkLotti)) {
foreach($checkLotti AS $checkLotto) {
$hrefLotto = $hrefComando . "&codice_lotto=" . $checkLotto["codice"];
if ($gara->setLotto($checkLotto["codice"])) {
$invitati = $gara->countInvitati();
if (!empty($invitati)) {
$status = "status-border-warning";
$ok++;
} else {
if ($gara->round["numero"] > 1 && $totaleLotti > 1) {
$alertManager->addWarningAlert(__("Nessun invitato selezionato per il lotto") . ": #{$checkLotto["numero"]}",$hrefLotto);
} else {
$alertManager->addDangerAlert(__("Nessun invitato selezionato per il lotto") . ": #{$checkLotto["numero"]}",$hrefLotto);
}
}
} else {
$alertManager->addDangerAlert(__("Errore inizializzazione lotto") . ": #{$checkLotto["numero"]}",$hrefComando);
break;
}
}
if ($ok === $totaleLotti) {
$status = "status-border-success";
}
}
}
?>