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.
53 righe
3.8 KiB
53 righe
3.8 KiB
<? |
|
if (isset($round)) { |
|
$check = $pdo->go("SELECT b_gare_buste.codice FROM b_gare_buste JOIN r_partecipanti_gare ON b_gare_buste.codice_partecipante = r_partecipanti_gare.codice |
|
WHERE b_gare_buste.open = 'N' AND r_partecipanti_gare.conferma = 'S' AND (r_partecipanti_gare.escluso = 'N' OR r_partecipanti_gare.escluso = 'P') AND r_partecipanti_gare.codice_round = :codice_round |
|
LIMIT 0,1",[":codice_round"=>$round["codice"]])->rowCount(); |
|
$status = "status-border-warning"; |
|
$checkEmendamenti = $pdo->go("SELECT r_partecipanti_gare.ragione_sociale, b_gare_lotti.numero, b_gare_lotti.codice |
|
FROM b_gare_emendamenti JOIN r_partecipanti_gare ON b_gare_emendamenti.codice_partecipante = r_partecipanti_gare.codice |
|
JOIN b_gare_lotti ON r_partecipanti_gare.codice_lotto = b_gare_lotti.codice |
|
WHERE b_gare_emendamenti.accettata = 'W' |
|
AND r_partecipanti_gare.conferma = 'S' |
|
AND (r_partecipanti_gare.escluso = 'N' OR r_partecipanti_gare.escluso = 'P') |
|
AND r_partecipanti_gare.codice_round = :codice_round |
|
GROUP BY r_partecipanti_gare.codice",[":codice_round"=>$round["codice"]]); |
|
$checkOscuramenti = $pdo->go("SELECT r_partecipanti_gare.ragione_sociale, b_gare_lotti.numero, b_gare_lotti.codice |
|
FROM b_gare_buste_secretate JOIN r_partecipanti_gare ON b_gare_buste_secretate.codice_partecipante = r_partecipanti_gare.codice |
|
JOIN b_gare_lotti ON r_partecipanti_gare.codice_lotto = b_gare_lotti.codice |
|
LEFT JOIN b_gare_emendamenti ON b_gare_buste_secretate.codice_partecipante = b_gare_emendamenti.codice_partecipante AND b_gare_emendamenti ON b_gare_buste_secretate.codice_richiesta = b_gare_emendamenti.codice_richiesta |
|
WHERE b_gare_buste_secretate.accettata = 'W' |
|
AND r_partecipanti_gare.conferma = 'S' |
|
AND ( |
|
b_gare_buste_secretate.derivazione = 'busta' OR |
|
( |
|
b_gare_buste_secretate.derivazione = 'emendamento' AND b_gare_emendamenti.accettata = 'S' |
|
) |
|
) |
|
AND (r_partecipanti_gare.escluso = 'N' OR r_partecipanti_gare.escluso = 'P') |
|
AND r_partecipanti_gare.codice_round = :codice_round |
|
GROUP BY r_partecipanti_gare.codice",[":codice_round"=>$round["codice"]]); |
|
$status = "status-border-warning"; |
|
$warning = false; |
|
if ($checkEmendamenti->rowCount() > 0) { |
|
$warning = true; |
|
while($emendamento = $checkEmendamenti->fetch(PDO::FETCH_ASSOC)) { |
|
$hrefComandoLotto = $hrefComando . "&codice_lotto={$emendamento["codice"]}"; |
|
$alertManager->addWarningAlert(__("Lotto") . " {$emendamento["numero"]} - " . __("Attesa validazione emendamento") . ": " . $emendamento["ragione_sociale"], $hrefComandoLotto); |
|
} |
|
} |
|
if ($checkOscuramenti->rowCount() > 0) { |
|
$warning = true; |
|
while($segreto = $checkOscuramenti->fetch(PDO::FETCH_ASSOC)) { |
|
$hrefComandoLotto = $hrefComando . "&codice_lotto={$segreto["codice"]}"; |
|
$alertManager->addWarningAlert(__("Lotto") . " {$segreto["numero"]} - " . __("Attesa validazione oscuramento") . ": " . $segreto["ragione_sociale"], $hrefComandoLotto); |
|
} |
|
} |
|
if (!$warning) { |
|
if (!$check) { |
|
$status = "status-border-success"; |
|
} |
|
} |
|
|
|
} |
|
?>
|