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.
98 righe
3.8 KiB
98 righe
3.8 KiB
<? |
|
$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "anac"; |
|
$cmd_info = concorso::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"], $_GET["codice"], $id_modulo)) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$concorso = concorso::init($_GET["codice"], $codice_round); |
|
if (!empty($concorso)) { |
|
$record = $concorso->info; |
|
$round = $concorso->round; |
|
$lotti = $concorso->getLotti(); |
|
$lock = $concorso->checkLock($cmd_info["id"]); |
|
|
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
|
|
$breadcrumb = array(); |
|
$breadcrumb["/" . $radice . "/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/" . $radice . "/panel.php?codice=" . $record["codice"] . "&codice_round=" . $round["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
|
|
$relazioneGara = anac::relazioniModulo("concorsi", $record["codice"]); |
|
$rup = $concorso->getRup(); |
|
if (empty($relazioneGara)) { |
|
$cig = array_column($lotti, "cig"); |
|
$cig = array_filter($cig); |
|
$npa = $concorso->getNpaInstance(); |
|
if (!empty($npa) || empty($cig)) { |
|
header("Location: /backend/concorsi/npa/index.php?codice={$record["codice"]}&codice_round={$round["codice"]}"); |
|
die(); |
|
} |
|
} |
|
|
|
|
|
|
|
include_once($beRoot . "/layout/top.php"); |
|
if (!empty($lotti)) { |
|
$relazioneconcorso = anac::relazioniModulo("concorsi", $record["codice"]); |
|
if (!empty($relazioneconcorso)) { |
|
$codice_concorso_simog = $relazioneconcorso["gara_simog"]; |
|
$anac = anac::init($codice_concorso_simog); |
|
} else { |
|
if (count($lotti) === 1 && $record["prezzoRiferimento"] <= anac::limiteSmartCIG()) { |
|
if (empty($_GET["smart_cig"])) { |
|
$choose = true; |
|
alertManager::printInfoBox(__("La procedura è idonea per la richiesta di uno SMART CIG, come si desidera procedere?")); |
|
$qs = http_build_query($_GET); |
|
?> |
|
<div class="row"> |
|
<div class="col-12 col-lg-6"> |
|
<a href="index.php?<?= $qs ?>&smart_cig=S" class="btn btn-lg btn-block p-5 text-center btn-primary"> |
|
<?= __("Procedi con SMART CIG") ?> |
|
</a> |
|
</div> |
|
<div class="col-12 col-lg-6"> |
|
<a href="index.php?<?= $qs ?>&smart_cig=N" class="btn btn-lg btn-block p-5 text-center btn-primary"> |
|
<?= __("Procedi con CIG Regolare") ?> |
|
</a> |
|
</div> |
|
</div> |
|
<? |
|
} else { |
|
$smart_cig = $_GET["smart_cig"]; |
|
} |
|
} else { |
|
$smart_cig = "N"; |
|
} |
|
if (isset($smart_cig)) { |
|
$return = $concorso->creaIstanzaANAC($smart_cig); |
|
$codice_concorso_simog = $return["codice_concorso_simog"] ?? null; |
|
$errore_lotto = $return["errore_lotto"] ?? null; |
|
} |
|
} |
|
if (!empty($codice_concorso_simog) && !isset($errore_lotto)) { |
|
if ($_SESSION["utente"]->permission("anac", $codice_concorso_simog)) { |
|
echo "<meta http-equiv=\"refresh\" content=\"0;URL=/backend/anac/panel.php?codice={$codice_concorso_simog}\">"; |
|
die(); |
|
} else { |
|
alertManager::printSuccessBox(__("Relazione creata con successo")); |
|
} |
|
} else { |
|
if (!isset($choose)) { |
|
alertManager::printAlertBox(__("Errore nel riconoscimento della relazione"), $msg); |
|
} |
|
} |
|
} else { |
|
alertManager::printAlertBox(__("Lotti mancanti")); |
|
} |
|
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(); |
|
}
|
|
|