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.
 
 
 
 
 

40 righe
1.5 KiB

<?php
$_cdir = __DIR__;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (! empty($_POST) && ! empty($_SESSION["utente"]) && $_SESSION["utente"]->isSupportoOrRoot() && $_SESSION["utente"]->permission($radice)) {
if (!empty($_POST["codice"]) && !empty($_POST["json"])) {
$r = $pdo->go("UPDATE b_guue SET valori = :valori WHERE codice = :codice",[":valori" => $_POST["json"], ":codice" => $_POST["codice"]]);
if ($r->errorInfo()[0] === "00000") {
?>
Swal({
title : "<?=__guue('Complimenti')?>",
html : "<?=__guue('Importazione eseguita correttamente')?>",
type: "success",
confirmButtonText : "Ok",
})()
<?
die();
} else {
?>
Swal({
title : "<?=__guue('Attenzione')?>",
html : "<?=__guue('Si è verificato un errore in fase di importazione')?>",
type: "error",
confirmButtonText : "Ok",
})()
<?
die();
}
} else {
?>
Swal({
title : "<?=__guue('Attenzione')?>",
html : "<?=__guue('Non sono presenti dati da importare')?>",
type: "error",
confirmButtonText : "Ok",
})()
<?
}
}
?>