$_POST["codice"], ":codice_form" => $other["codice_form"], ":codice_gruppo" => $other["codice_gruppo"], ":id" => $other["id"], ":type" => $other["type"] ); $sql = "SELECT type,id FROM b_form_data WHERE gruppo_compilazione = :codice AND codice_form = :codice_form AND codice_gruppo = :codice_gruppo AND id = :id AND type = :type "; $ris = $pdo->go($sql,$bind); if ($ris->rowCount() > 1) { $record = $ris->fetch(PDO::FETCH_ASSOC); if ($_SESSION["utente"]->hasSuperPowers() || $_SESSION["utente"]->permission($record["type"],$record["id"]) || (!empty($_SESSION["utente"]->oe) && !empty($_SESSION["ente"]) && ( ($record["type"] == "oe" && $record["id"] == $_SESSION["utente"]->oe["codice"]) || ($record["type"] == "albo_fornitori-{$_SESSION["ente"]->codice}") || ($record["type"] == "albi_commissione-{$_SESSION["ente"]->codice}") ) ) ) { $bind[":utente"] = (!empty($_SESSION["utente"]->codice)) ? $_SESSION["utente"]->codice : -1; $sql = "UPDATE b_form_data SET soft_delete = 'S', utente_modifica = :utente WHERE gruppo_compilazione = :codice AND codice_form = :codice_form AND codice_gruppo = :codice_gruppo AND id = :id AND type = :type"; $ris = $pdo->go($sql,$bind); if ($ris->rowCount() > 1) { $error = false; scriviLog("b_form_group","UPDATE",$pdo->getSQL(),$_POST["codice"]); } } } } } if (!$error) { ?> $("#group-panel-").slideUp('fast',function() { $(this).remove() });