permission($radice,$_POST["codice"],$id_modulo) && tokenVerify() && $_SESSION["utente"]->unlockSupporto()) { $error = false; $entiAbilitati = $_SESSION["utente"]->getEntiBeneficiari(); $checkEnte = false; foreach($entiAbilitati AS $ente) { if ($_POST["codice_ente"] == $ente["codice"]) { $checkEnte = true; break; } } if ($checkEnte) { $progetto = progetto::save($_POST); if (!empty($progetto) && is_a($progetto,"progetto")) { $progetto->getManagerMonitoraggio()->createRecord('A0'); ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.href="/backend/progetti/panel.php?codice=info["codice"] ?>"; }); swal({title:js_dict.error,html:js_dict["error-generic"],type:"error"}); swal({title:js_dict.error,html:"",type:"error"});