verifyUtente()) { die_forbidden(); } if (!empty($npa->scheda) && $codice == ($npa->scheda["codice"] ?? 0)) { $return_url = "/"; if (!empty($npa->lot)) { $return_url = "/backend/npa/lotti/panel.php?codice_lotto={$npa->lot["codice_lotto_npa"]}&codice_fascicolo={$npa->fascicolo["codice"]}"; } elseif (!empty($npa->fascicolo["modulo_riferimento"]) && !empty($npa->fascicolo["id_riferimento"])) { $return_url = "/backend/{$npa->fascicolo["modulo_riferimento"]}/npa/index.php?codice={$npa->fascicolo["id_riferimento"]}"; } $result = $npa->deleteScheda($message); // Catturiamo eventuali notice da PHP $notices = ob_get_clean(); if (!empty($notices)) { ?> swal({ title: js_dict.attenzione, html: ``, type: "error" }).then(function(){ window.location.href = ``; }); swal({ title: , html: , type: "" }).then(function(){ ; });