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.
42 righe
1.6 KiB
42 righe
1.6 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
$id_modulo = "annulla-smart"; |
|
$cmd_info = anac::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"])) { |
|
$anac = anac::init($_GET["codice"]); |
|
if (!empty($anac)) { |
|
$lotto = $anac->getLotti()[0]; |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb = $anac->getBreadcrumb($breadcrumb); |
|
$breadcrumb["/".$radice."/panel.php?codice=".$anac->info["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
?> |
|
<h1> |
|
<?= $titolo_modulo ?> |
|
</h1> |
|
<? |
|
if ($lotto["eliminato"] == "N") { |
|
alertManager::printAlertBox(__("Attenzione, procedendo annullerai lo SMART CIG. Sei sicuro di voler proseguire?")); |
|
?> |
|
<button class="btn btn-danger btn-block my-3" onClick="elimina(<?= $anac->info["codice"] ?>,'anac/annulla-smart')"> |
|
<span class="fa fa-times"></span> <?= __("Annulla SMART CIG") ?> |
|
</button> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__("Lotto già annullato")); |
|
} |
|
include_once ($beRoot."/layout/bottom.php"); |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|
|
|