permission($radice,$_GET["codice"])) { $codice_round = $_GET["codice_round"] ?? null; $gara = gara::init($_GET["codice"],$codice_round); if ($gara !== false) { $record = $gara->info; $round = $gara->round; $lotti = $gara->getLotti(); $extraInfoGara = $gara->getExtraInfo()["gara"]; $breadcrumb = array(); $breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; $breadcrumb[""] = __("Pannello"); include_once $beRoot."/layout/top.php"; $stati = gara::getStati(); $stato = $stati[$record["stato"]]; if ($record["stato"] == 20 && strtotime($round["pubblicazione"]) > time()) { $stato["titolo"] = "Programmata pubblicazione"; } $alertManager = new alertManager("gara-{$record["codice"]}"); $canCreate = $_SESSION["ente"]->checkLimite($radice,true); if ($canCreate) { if (!$_SESSION["utente"]->readOnly) { $canCreate = $_SESSION["utente"]->permission("gare.insert"); } else { $canCreate = false; } } if ($gara->quickAvailable && !isset($extraInfoGara["quickPanel"]) && empty($gara->info["stato"])) { ?>
">
quickAvailable && $_SESSION["utente"]->isSupportoOrRoot()) { ?>
">
hasSuperPowers()) { ?> 0) { ?> checkPartecipantiPresenti()) { ?> canAssignPermissions()) { ?> printAlertModalButton() ?> " title="">
info["importata"])): ?> info["importata"] === "BDNCP"): ?>

validaElaborazione() !== true && $gara->info["stato"] < 10) : ?>

" class="clearfix"> #

getRounds(); if (count($rounds) > 1) { ?>
getProcedura(); $cont = []; foreach($rounds AS $rnd) { if (!isset($cont[$rnd["id"]])) { $cont[$rnd["id"]] = 0; } $cont[$rnd["id"]]++; $infoFase = $procedura["fasi"][$rnd["id"]]; ?>
privata) { $filtri["privata"] = true; } if ($gara->getModalita()["online"]) { $filtri["online"] = true; } else { $filtri["offline"] = true; } if (!empty($gara->round["infoFase"])) { if ($gara->round["infoFase"]["graduatoria"]) { $filtri["graduatoria"] = true; } else { $filtri["istanza_semplice"] = true; } } if (strtotime($round["scadenza"])<=time() || $gara->quickPanel) { unset($filtri["scaduta"]); } if (strtotime($round["apertura"])<=time() || $gara->quickPanel) { unset($filtri["apertura"]); } $ris_tipi = gara::getTipologie(); if (count($ris_tipi) > 0) { ?>
$rec_tipo) { $filtri["tipo"] = $id_tipo; $stati = $gara->getStatoPannello(); $statoMin = $stati["min"]; $statoMax = $stati["max"]; $ris_comandi = gara::getModuli($filtri,$statoMax,null,$gara->quickPanel); if (count($ris_comandi) > 0) { $class = 12 / count($ris_tipi); $class= "col-sm-".$class; $tipo = __($rec_tipo["titolo"]); ?>
$rec) { $badge = ""; $show = true; $folder = explode("/",$rec["link"]); $temp = array_pop($folder); $folder = implode("/",$folder); $hrefComando = $rec["link"]; $hrefComando .= (strpos($rec["link"], "?") === false) ? "?" : "&"; $hrefComando .= "codice={$record["codice"]}&codice_round={$round["codice"]}"; if (file_exists($root.$folder."/check.php")) { include($root.$folder."/check.php"); } $lock = $gara->checkLock($id_comando,$statoMin); $status = ""; if (file_exists($root.$folder."/_status.php") && ($show || empty($rec["stato_minimo"]) || $rec["stato_minimo"] <= 20)) { include($root.$folder."/_status.php"); } if ($show && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_comando) && $_SESSION["utente"]->permission($rec["modulo_riferimento"])) { ?> " href="" title="">
alerts)) { $alertManager->printModal(); } ?>
'; die(); } } else { echo ''; die(); }