permission("programmazione-art21",$_POST["codice"]) && tokenVerify() && !empty($_POST["scheda"])) { $programma = Programma::init($_POST["codice"]); if (!empty($programma)) { $record = $programma->info; if (!empty(Programma::getSchedeProgramma($programma->info["tipologia"])[$_POST["scheda"]])) { $error = false; if (!empty($_POST["editor-editorStandard"])) { $idScheda = $_POST["scheda"]; $editor = new editorManager("programmazione-art21",$programma->getIdEditorScheda($idScheda)); if ($editor->save($_POST["editor-editorStandard"])) { $programma->updateStato(); ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ window.location.reload(); }); swal({title:"",type:"error"}); swal({title:"",type:"error"});