permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice,$_POST["codice_gara"],"buste") && tokenVerify()) { $gara = gara::init($_POST["codice_gara"],$_POST["codice_round"]); if (!empty($gara)) { $lock = $gara->checkLock($cmd_info["id"]); if (!$lock) { $codice_richiesta = $gara->saveRichiesta($_POST); if (!empty($codice_richiesta)) { $error = false; if (count($gara->getLotti()) > 1 && empty($_POST["codice"])) { $showSuccess = false; if (isset($_POST["codice_lotto"])) { $gara->bindRichiesta($codice_richiesta,[$_POST["codice_lotto"]]); ?> swal({title:js_dict["success-msg"],html:'',type:"success",showCancelButton:true,confirmButtonText: '',cancelButtonText: ''}).then((result) => { if (result.value) { showModalWithURL("/backend/gare/buste/lotti.php?codice=&codice_gara=info["codice"] ?>&codice_round=round["codice"] ?>"); } else { window.location.reload(); } }); swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.reload() });