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.
58 righe
2.5 KiB
58 righe
2.5 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "soa"; |
|
$cmd_info = gara::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"])) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$gara = gara::init($_GET["codice"],$codice_round); |
|
if (!empty($gara)) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
$lock = $gara->checkLock($cmd_info["id"]); |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
if (!empty($round)) { $titolo_modulo .= " - " . $round["infoFase"]["titolo"]; } |
|
$generalOption = true; |
|
$lotti = $gara->getLotti(); |
|
$statiLotti = []; |
|
foreach($lotti AS $lt) { |
|
$checkCategorie = $gara->getSOA($lt["codice"]); |
|
if (!empty($checkCategorie)) { |
|
$somma = 0; |
|
foreach($checkCategorie AS $categoria) { |
|
$somma += $categoria["importo"]; |
|
} |
|
$riferimentoTotale = $lt["importoBase"] + $lt["importoManodopera"] + $lt["oneriNoRibasso"]; |
|
if ($gara->normaRiferimento == "2016-50") { |
|
$riferimentoTotale = $lt["importoBase"] + $lt["oneriNoRibasso"]; |
|
} |
|
$somma = number_format($somma,2); |
|
$riferimentoTotale = number_format($riferimentoTotale,2); |
|
if ($somma == $riferimentoTotale) { |
|
$statiLotti[$lt["codice"]] = ["class"=>"btn-success","label"=>__("Inserimento completo")]; |
|
} else { |
|
$statiLotti[$lt["codice"]] = ["class"=>"btn-warning","label"=>__("Inserimento parziale")]; |
|
} |
|
} else { |
|
$statiLotti[$lt["codice"]] = ["class"=>"btn-danger","label"=>__("Nessun inserimento")]; |
|
} |
|
} |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/panel.php?codice=".$record["codice"]."&codice_round=".$round["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
|
|
?><h1><?= $titolo_modulo ?></h1><? |
|
$gara->printSelectLotto("edit.php?codice=".$record["codice"]."&codice_round=".$round["codice"],false,$statiLotti); |
|
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(); |
|
} |
|
?>
|
|
|