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.
27 righe
1.1 KiB
27 righe
1.1 KiB
<? |
|
if (!empty($anac)) { |
|
if ($_SESSION["utente"]->permission("simog")) { |
|
$inserisci = $anac->getLastSimogLog("inserisciLotto",$codice_lotto); |
|
$modifica = $anac->getLastSimogLog("modificaLotto",$codice_lotto); |
|
if (!empty($inserisci) && !empty($modifica)) { |
|
$logSimog = ($inserisci["codice"] > $modifica["codice"]) ? $inserisci : $modifica; |
|
} else if (!empty($inserisci)) { |
|
$logSimog = $inserisci; |
|
} else if (!empty($modifica)) { |
|
$logSimog = $modifica; |
|
} |
|
if (empty($logSimog)) { |
|
$status = "status-border-warning"; |
|
if (!empty($alertManager)) { $alertManager->addWarningAlert(__("Lotto non trasmesso al SIMOG"),"/backend/anac/lotti/edit.php?codice_simog={$anac->info["codice"]}&codice_lotto={$codice_lotto}"); } |
|
} else { |
|
if ($logSimog["esito"] == 1) { |
|
$status = "status-border-success"; |
|
} else { |
|
$status = "status-border-danger"; |
|
if (!empty($alertManager)) { $alertManager->addDangerAlert($logSimog["msg"],"/backend/anac/lotti/edit.php?codice_simog={$anac->info["codice"]}&codice_lotto={$codice_lotto}"); } |
|
} |
|
} |
|
} |
|
} |
|
|
|
?>
|