gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

35 righe
1.2 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$error = true;
if (!empty($_SESSION["utente"])) {
$manager = new richiesteOE($_POST["modulo"],$_POST["codice_elemento"],$_POST["sub"]);
if (!empty($_POST["codice"])) {
$tmp = $manager->getRichieste("N",["codice"=>$_POST["codice"]]);
if (!empty($tmp)) {
$richiesta = $tmp[0];
if ($_SESSION["utente"]->permission($richiesta["modulo"],$richiesta["codice_elemento"],"richieste") && $richiesta["attivo"] == "N") {
$_POST["codice_ente"] = $_SESSION["ente"]->codice;
$update = ["codice"=>$richiesta["codice"],"soft_delete"=>"S","attivo"=>"N"];
$salva = new salva();
$salva->debug = false;
$salva->nome_tabella = "b_richieste_oe";
$salva->operazione = "UPDATE";
$salva->oggetto = $update;
$codice = $salva->save();
if ($codice != false) {
$error = false;
?>
swal({title:js_dict["success-msg"],type:"success"}).then(function(){ tableRichieste.draw() });
<?
}
}
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>