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.
456 righe
23 KiB
456 righe
23 KiB
<!doctype html> |
|
<html lang="it"> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
<link rel="apple-touch-icon" sizes="57x57" href="/src/img/favicon.ico/apple-icon-57x57.png"> |
|
<link rel="apple-touch-icon" sizes="60x60" href="/src/img/favicon.ico/apple-icon-60x60.png"> |
|
<link rel="apple-touch-icon" sizes="72x72" href="/src/img/favicon.ico/apple-icon-72x72.png"> |
|
<link rel="apple-touch-icon" sizes="76x76" href="/src/img/favicon.ico/apple-icon-76x76.png"> |
|
<link rel="apple-touch-icon" sizes="114x114" href="/src/img/favicon.ico/apple-icon-114x114.png"> |
|
<link rel="apple-touch-icon" sizes="120x120" href="/src/img/favicon.ico/apple-icon-120x120.png"> |
|
<link rel="apple-touch-icon" sizes="144x144" href="/src/img/favicon.ico/apple-icon-144x144.png"> |
|
<link rel="apple-touch-icon" sizes="152x152" href="/src/img/favicon.ico/apple-icon-152x152.png"> |
|
<link rel="apple-touch-icon" sizes="180x180" href="/src/img/favicon.ico/apple-icon-180x180.png"> |
|
<link rel="icon" type="image/png" sizes="192x192" href="/src/img/favicon.ico/android-icon-192x192.png"> |
|
<link rel="icon" type="image/png" sizes="32x32" href="/src/img/favicon.ico/favicon-32x32.png"> |
|
<link rel="icon" type="image/png" sizes="96x96" href="/src/img/favicon.ico/favicon-96x96.png"> |
|
<link rel="icon" type="image/png" sizes="16x16" href="/src/img/favicon.ico/favicon-16x16.png"> |
|
<link rel="manifest" href="/manifest.json"> |
|
<meta name="msapplication-TileColor" content="#ffffff"> |
|
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
|
<meta name="theme-color" content="#ffffff"> |
|
<? |
|
if(!empty($meta["title"]) && !empty($meta["description"]) && !empty($meta["keywords"])) { |
|
?> |
|
<title><?= $meta["title"] ?></title> |
|
<meta name="title" content="<?= $meta["title"] ?>"/> |
|
<meta name=description content="<?= $meta["description"] ?>"> |
|
<meta name="keywords" content="<?= $meta["keywords"] ?>"> |
|
<? |
|
} else { |
|
?> |
|
<title><?= $_SESSION["config"]["nome_sito"] ?></title> |
|
<meta name="title" content="<?= $_SESSION["config"]["nome_sito"] ?>"/> |
|
<meta name=description content="Procurement - appalti"> |
|
<meta name="keywords" content="Procurement - appalti" /> |
|
<? |
|
} |
|
?> |
|
<meta http-equiv="Cache-control" content="no-cache"> |
|
<!--[if lt IE 9]> |
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> |
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
|
<![endif]--> |
|
<? if (!empty($required_css)) foreach($required_css AS $css) { ?> |
|
<link rel="stylesheet" type="text/css" href="<?= $css ?>"> |
|
<? } ?> |
|
<? |
|
if (!isset($_SESSION["ente"])) { |
|
if (!empty($_SESSION["id_sessione-admin"])) { |
|
echo '<meta http-equiv="refresh" content="0;URL=/accesso.php">'; |
|
die(); |
|
} |
|
?> |
|
</head> |
|
<body> |
|
<div class="row h-100"> |
|
<div class="h1 d-block my-auto col text-center font-amica color-amica"> |
|
<a class="color-amica" style="text-decoration:none" href="<?= $config["publicFrontEnd"] ?>"> |
|
<span class="icon-tuttogare fa-5x"></span><br> |
|
DOMINIO INESISTENTE |
|
</a> |
|
</div> |
|
</div> |
|
</body> |
|
</html> |
|
<? |
|
die(); |
|
} else { |
|
$collapseTop = true; |
|
if (isset($extendedTop)) { |
|
$collapseTop = false; |
|
} |
|
if (!empty($required_js)) foreach($required_js AS $js) { |
|
?> |
|
<script type="text/javascript" src="<?= $js ?>"></script> |
|
<? |
|
} |
|
$json_dict_path = "/dictionary/IT.json"; |
|
if (file_exists($root."/dictionary/".$_SESSION["language"].".json")) { |
|
$json_dict_path = "/dictionary/".$_SESSION["language"].".json"; |
|
} |
|
?> |
|
<script> |
|
var js_dict |
|
$.getJSON('<?= $json_dict_path ?>', function(data) { |
|
js_dict = data; |
|
}); |
|
</script> |
|
<? |
|
if (isset($_SESSION["utente"])) { |
|
$userInfo = $_SESSION["utente"]->getInfo(); |
|
include($root."/profilo/verify.php"); |
|
} |
|
|
|
if (!empty($_SESSION["ente"]->moduli)) { |
|
$areeMenuLayout = []; |
|
$areeAreaPubblica = getJSON("aree-menu.json"); |
|
$keysAreaPubblica = array_keys($areeAreaPubblica); |
|
foreach($keysAreaPubblica AS $keyArea) { |
|
$areeMenuLayout[$keyArea] = []; |
|
} |
|
$oeMenu = []; |
|
if (!empty($_SESSION["utente"]->oe)) { |
|
$oeMenu[] = ["icon"=>"fa fa-envelope","link"=>"/comunicazioni/index.php","titolo"=>__("Comunicazioni"),"descrizione"=>__("Comunicazioni ricevute"),"badge"=>"/comunicazioni/badge.php"]; |
|
$oeMenu[] = ["icon"=>"fa fa-file", "link" => "/norme_tecniche.php", "titolo" => __("Norme tecniche"), "descrizione" => __("Norme tecniche di utilizzo")]; |
|
$oeMenu[] = ["icon"=>"fa fa-paper-plane","link"=>"/richieste/index.php","titolo"=>__("Richieste e integrazioni"),"descrizione"=>__("Rispondi alle richieste di integrazioni ricevute dalla Stazione appaltante"),"badge"=>"/richieste/badge.php"]; |
|
$oeMenu[] = ["icon"=>"fa fa-edit","link"=>"/dgue/index.php","titolo"=>__("DGUE"),"descrizione"=>__("Elenco dei DGUE compilati")]; |
|
} |
|
foreach($_SESSION["ente"]->moduli AS $id_modulo => $menu_modulo) { |
|
if ($menu_modulo["completed"] == "S" || ($menu_modulo["completed"] == "W" && $_SESSION["developEnv"])) { |
|
if ($menu_modulo["menu"]) { |
|
$areeMenuLayout[$menu_modulo["area"]][] = ["label" => __($menu_modulo["titolo"]), "descrizione" => __($menu_modulo["descrizione"]), "link" => "/{$id_modulo}/", "icon" => $menu_modulo["icon"]]; |
|
} |
|
if (!empty($menu_modulo["public_menu"])) { |
|
foreach($menu_modulo["public_menu"] AS $voce) { |
|
$areeMenuLayout[$voce["area"]][] = $voce; |
|
} |
|
} |
|
|
|
if (!empty($_SESSION["utente"]->oe)) { |
|
if (!empty($menu_modulo["oe_menu"])) { |
|
foreach($menu_modulo["oe_menu"] AS $voce) { |
|
$oeMenu[$voce["link"]] = $voce; |
|
} |
|
} |
|
} |
|
if (!empty($_SESSION["utente"]->enteInnovativo)) { |
|
if (!empty($menu_modulo["enti_menu"])) { |
|
foreach($menu_modulo["enti_menu"] AS $voce) { |
|
$oeMenu[$voce["link"]] = $voce; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
$pagine = $pdo->go("SELECT codice, titolo, tipologia, link FROM b_pagina WHERE codice_ente = :ente AND attivo = 'S' AND soft_delete = 'N' ORDER BY ordinamento",[":ente"=>$_SESSION["ente"]->codice]); |
|
if ($pagine->rowCount() > 0) { |
|
while($pagina = $pagine->fetch(PDO::FETCH_ASSOC)) { |
|
$pagina["label"] = $pagina["titolo"]; |
|
$pagina["icon"] = ""; |
|
$pagina["descrizione"] = ""; |
|
if ($pagina["tipologia"] == "HTML") { |
|
$pagina["link"] = "/pagine/id{$pagina["codice"]}-".sanitize_string($pagina["titolo"]); |
|
} |
|
$areeMenuLayout["altro"][] = $pagina; |
|
} |
|
} |
|
} |
|
$interfaccia["interfaccia_menu"] = (!empty($_SESSION["ente"]->getInfo()["interfaccia_menu"])) ? $_SESSION["ente"]->getInfo()["interfaccia_menu"] : "254f8f"; |
|
$interfaccia["interfaccia_menu_top"] = (!empty($_SESSION["ente"]->getInfo()["interfaccia_menu_top"])) ? $_SESSION["ente"]->getInfo()["interfaccia_menu_top"] : "002E7A"; |
|
$interfaccia["interfaccia_bottom"] = (!empty($_SESSION["ente"]->getInfo()["interfaccia_bottom"])) ? $_SESSION["ente"]->getInfo()["interfaccia_bottom"] : "666666"; |
|
if(!empty($_SESSION['ente']->codice) && file_exists("$root/inc/scripts/{$_SESSION['ente']->codice}/scripts.php")){ |
|
include_once("$root/inc/scripts/{$_SESSION['ente']->codice}/scripts.php"); |
|
} |
|
?> |
|
<style> |
|
<? if ($_SESSION["ente"]->getInfo()["interfaccia_a"] != "") { ?> |
|
a { color: #<? echo $_SESSION["ente"]->getInfo()["interfaccia_a"]; ?>} |
|
<? } ?> |
|
<? if ($_SESSION["ente"]->getInfo()["interfaccia_a_hover"] != "") { ?> |
|
a:hover { color: #<? echo $_SESSION["ente"]->getInfo()["interfaccia_a_hover"]; ?>} |
|
<? } ?> |
|
<? if ($interfaccia["interfaccia_menu"] != "") { |
|
$textColorMenu = (evaluateColorContrast($interfaccia["interfaccia_menu"],"000000")["ratio"] > 7) ? "black" : "white"; |
|
?> |
|
.menu { background-color: #<? echo $interfaccia["interfaccia_menu"]; ?> } |
|
.menu > * { color: <? echo $textColorMenu; ?> } |
|
.menu a.col { color: <? echo $textColorMenu; ?> } |
|
#menuSM { background-color: #<? echo $interfaccia["interfaccia_menu"]; ?> } |
|
#menuSM > * { color: <? echo $textColorMenu; ?> } |
|
#menuSM a { color: <? echo $textColorMenu; ?> } |
|
<? } ?> |
|
<? if ($interfaccia["interfaccia_menu_top"] != "") { |
|
$textColorTop = (evaluateColorContrast($interfaccia["interfaccia_menu_top"],"000000")["ratio"] > 7) ? "black" : "white"; |
|
?> |
|
#menu-top, .oeMenu { background-color: #<? echo $interfaccia["interfaccia_menu_top"]; ?> !important} |
|
#menu-top > *, #menuSM > a.oeMenu { color: <? echo $textColorTop; ?> } |
|
#menu-top a, #menuSM > a.oeMenu { color: <? echo $textColorTop; ?> } |
|
<? } ?> |
|
<? if ($interfaccia["interfaccia_bottom"] != "") { |
|
$textColorBottom = $BottomTextColorStyle = (evaluateColorContrast($interfaccia["interfaccia_bottom"],"000000")["ratio"] > 7) ? "black" : "white"; |
|
?> |
|
#bottom { background-color: #<? echo $interfaccia["interfaccia_bottom"]; ?> !important } |
|
#bottom > * { color: <? echo $textColorBottom; ?> } |
|
#bottom a { color: <? echo $textColorBottom; ?> } |
|
<? } ?> |
|
<? |
|
$config["interfaccia"] = $interfaccia; |
|
$config["textColorMenu"] = $textColorMenu; |
|
$config["textColorTop"] = $textColorTop; |
|
$config["textColorBottom"] = $textColorBottom; |
|
?> |
|
</style> |
|
</head> |
|
<body> |
|
<div class="p-0 m-0"> |
|
<button style="position:fixed; z-index: 8999; bottom: 20px; right: 20px; display:none" class="btn btn-lg btn-primary" id="scrollToTop" onClick="window.scrollTo(0,0)"> |
|
<span class="fa fa-chevron-up"></span> |
|
<span class="sr-only">__("Torna su") ?></span> |
|
</button> |
|
<script> |
|
var $buoop = {required:{e:0,f:0,o:0,s:0,c:0},insecure:true,unsupported:true,api:2018.10 }; |
|
function $buo_f(){ |
|
var e = document.createElement("script"); |
|
e.src = "//browser-update.org/update.min.js"; |
|
document.body.appendChild(e); |
|
}; |
|
try {document.addEventListener("DOMContentLoaded", $buo_f,false)} |
|
catch(e){window.attachEvent("onload", $buo_f)} |
|
</script> |
|
<div id="wait_div"></div> |
|
<noscript> |
|
<div class="row"> |
|
<div class="col alert p-5 alert-danger text-center m-0"> |
|
<span class="fa fa-exclamation-triangle fa-5x"></span><br> |
|
<?= __("E' necessario abilitare Javascript per utilizzare il portale") ?> |
|
</div> |
|
</div> |
|
</noscript> |
|
<div id="menuSM"> |
|
<button class="btn btn-danger p-3 my-1 text-left btn-block" onClick="$('#menuSM').slideUp('fast');"> |
|
<span class="fa fa-chevron-up"></span> <?= __("Ritorna") ?> |
|
</button> |
|
<a href="/index.php" class="d-block p-3" title="<?= __("Homepage") ?>"> |
|
<span class="fa fa-home"></span> |
|
<?= __("Homepage") ?> |
|
</a> |
|
<? if (!empty($areeMenuLayout)) { |
|
if (!empty($oeMenu)) { |
|
foreach($oeMenu AS $voce) { ?> |
|
<a href="<?= $voce["link"] ?>" class="oeMenu d-block p-3"> |
|
<span class="<?= $voce["icon"] ?>"></span> |
|
<?= $voce["titolo"] ?> |
|
<? |
|
if (!empty($voce["badge"]) && file_exists($root.$voce["badge"])) { |
|
include($root.$voce["badge"]); |
|
} |
|
?> |
|
</a> |
|
<? |
|
} |
|
} |
|
foreach($areeMenuLayout AS $menu) { |
|
foreach($menu AS $voce) { ?> |
|
<a href="<?= $voce["link"] ?>" class="d-block p-3 my-1" title="<?= $voce["descrizione"] ?>"> |
|
<span class="<?= $voce["icon"] ?>"></span> |
|
<?= $voce["label"] ?> |
|
</a> |
|
<? } |
|
} |
|
} ?> |
|
</div> |
|
<div id="top-container" class="sticky-top"> |
|
<div class="container-fluid"> |
|
<div class="row py-2 px-2 <?= (!empty($_SESSION["ente"]) && $_SESSION["ente"]->getInfo()["ambienteTest"] == "S") ? "progress-bar-striped" : "" ?>" id="menu-top"> |
|
<? if (!empty($_SESSION["ente"]->getInfo()["url"])) { ?> |
|
<div class="col d-none d-md-block my-auto float-left"> |
|
<span class="fa fa-university"></span> <a href="<?= $_SESSION["ente"]->getInfo()["url"] ?>" title="<?= __("Vai al sito istuzionale") ?>"><?= __("Sito istituzionale") ?></a> |
|
</div> |
|
<? } ?> |
|
<div class="d-block d-md-none col-2"> |
|
<button class="btn btn-default btn-sm" onClick="$('#menuSM').slideDown('fast');"> |
|
<span class="fa fa-bars"></span> |
|
<span class="sr-only"><?= __("Menu") ?></span> |
|
</button> |
|
</div> |
|
<div class="col-10"> |
|
<div class="mx-md-2 text-right float-right"> |
|
<? if (!isset($_SESSION["utente"])) { ?> |
|
<a class="ml-3" href="/login-form.php"> |
|
<span class="fa fa-user-circle align-middle" style="font-size:1.4em"></span> |
|
<span class="d-none d-sm-inline"><?= __("Accedi") ?></span> |
|
</a> |
|
<a class="ml-3" href="/register.php"> |
|
<span class="fa fa-edit align-middle" style="font-size:1.4em"></span> |
|
<span class="d-none d-sm-inline"><?= __("Registrati") ?></span> |
|
</a> |
|
<? } else { ?> |
|
<? if ($_SESSION["utente"]->gerarchia < 100) { ?> |
|
<a href="#" onClick="showModalWithURL('/backend/utenti/edit.php?codice=<?= $_SESSION["utente"]->codice ?>')" title="<?= __("Profilo") ?>"><span class="fa fa-user-circle"></span> <?= $userInfo["nome"] . " " . $userInfo["cognome"]; ?> |
|
<? if (empty($_SESSION["utente"]->getInfo()["cf"])) { ?> |
|
<span class="text-warning"><span class="fa fa-exclamation-triangle"></span> |
|
<? } ?> |
|
</a> |
|
<a href="/backend/index.php" class="ml-3 " title="<?= __("Area Riservata") ?>"><span class="fa fa-th"></span> <?= __("Area Riservata") ?></a> |
|
<? } ?> |
|
<? |
|
if ($_SESSION["utente"]->isSupportoOrRoot() && isset($_SESSION["ente"])) { |
|
?> |
|
<span class="badge badge-primary mx-2 p-2"> |
|
ID Tenant: <?= $_SESSION["ente"]->codice ?> |
|
</span> |
|
<? |
|
} |
|
?> |
|
<a href="/logout.php" title="logout" class="p-1 px-2 rounded-circle bg-danger"><span class="fa fa-power-off"></span></a> |
|
<? } ?> |
|
</div> |
|
<div class="mx-md-3 text-right float-right"> |
|
<a href="#" onClick="showModalWithURL('/search/form.php')" class="ml-3"> |
|
<span class="fa fa-search align-middle" style="font-size:1.4em"></span> |
|
<span class="d-none d-sm-inline"><?= __("Cerca") ?></span> |
|
</a> |
|
</div> |
|
<div class="mx-md-3 text-right float-right"> |
|
<div class="dropdown"> |
|
<a class="dropdown-toggle" href="#" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
<span class="fa fa-flag"></span> <?= $lang_disp[$_SESSION["language"]]["descrizione"] ?> |
|
</a> |
|
<div class="dropdown-menu" aria-labelledby="dropdownLanguage"> |
|
<? foreach ($lang_disp AS $keyLg => $descLg) { |
|
if ($keyLg != $_SESSION["language"]) { ?> |
|
<a class="dropdown-item" style="color:#222" href="/index.php?language=<?= $keyLg ?>" title="<?= $descLg["descrizione"] ?>"><?= $descLg["descrizione"] ?></a> |
|
<? } |
|
} ?> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="d-none d-md-block mx-3 font-weight-bold float-right"> |
|
<span class="fa fa-calendar"></span> <span id="serverDate"><?= date("d/m/Y"); ?></span> |
|
<span class="fa fa-clock"></span> <span id="serverClockH"><?= date("H") ?></span><span class="syscolon">:</span><span id="serverClockI"><?= date("i") ?></span> |
|
</div> |
|
<div class="clearfix"></div> |
|
</div> |
|
</div> |
|
<? |
|
$heightStemma = "150"; |
|
$paddingTop = "10px"; |
|
$paddingTopMenu = "15px"; |
|
$displayName = ""; |
|
if (!empty($collapseTop)) { |
|
$heightStemma = "35"; |
|
$paddingTopMenu = "15px"; |
|
$paddingTop = "0px; float:left"; |
|
$displayName = "d-none collapsed-top"; |
|
} |
|
$showTextName = settingsManager::getValue("visualizzaNomeEstesoInFrontoffice"); |
|
?> |
|
<div class="row px-5 pb-1 d-none d-md-block menu" id="SpazioStemmaLG" style="padding-top: <?= $paddingTop ?>"> |
|
<h1 class="m-0 p-0"> |
|
<a href="/index.php" title="Homepage"> |
|
<img src="/documenti/enti/<? echo $_SESSION["ente"]->getInfo()["logo"] ?>" id="stemmaLG" height="<?= $heightStemma ?>" alt="<? echo $_SESSION["ente"]->getInfo()["denominazione"] ?>"> |
|
</a> |
|
<span id="denominazioneEnte" class="<?= $displayName ?>"><?= ($showTextName === "N") ? "" : $_SESSION["ente"]->getInfo()["denominazione"] ?></span> |
|
</h1> |
|
</div> |
|
<? if (!empty($areeMenuLayout)) { ?> |
|
<div class="row d-none d-md-block menu menuLG" id="menuLg" style="padding: <?= $paddingTopMenu ?> 10px;"> |
|
<div id="menuLgFlex" class="d-inline-flex flex-row flex-wrap"> |
|
<a class="col h5 text-center" href="/index.php" title="<?= __("Vai all'homepage") ?>"> |
|
<span class="fa fa-home"></span> |
|
</a> |
|
<? foreach($areeMenuLayout AS $idArea => $menu) { |
|
if (!empty($menu)) { ?> |
|
<div class="dropdown"> |
|
<a class="col h5 text-center dropdown-toggle" href="#" role="button" id="dropdownMenu<?= $idArea ?>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
<?= __($areeAreaPubblica[$idArea]["titolo"]); ?> |
|
</a> |
|
<div class="dropdown-menu mt-3" aria-labelledby="dropdownMenu<?= $idArea ?>"> |
|
<? foreach($menu AS $voce) { ?> |
|
<a href="<?= $voce["link"] ?>" class="dropdown-item h6 py-4" title="<?= $voce["descrizione"] ?>"> |
|
<span class="<?= $voce["icon"] ?> mr-3"></span><?= $voce["label"] ?> |
|
</a> |
|
<? } ?> |
|
</div> |
|
</div> |
|
<? } ?> |
|
<? } ?> |
|
</div> |
|
</div> |
|
<? } |
|
} ?> |
|
</div> |
|
<div class="row no-gutters d-block d-md-none menu"> |
|
<div class="h5 py-3 px-5"> |
|
<a href="/index.php" title="Homepage"> |
|
<img src="/documenti/enti/<? echo $_SESSION["ente"]->getInfo()["logo"] ?>" id="stemmaSM" height="70" alt="<? echo $_SESSION["ente"]->getInfo()["denominazione"] ?>"> |
|
</a> |
|
<?= $_SESSION["ente"]->getInfo()["denominazione"] ?> |
|
</div> |
|
</div> |
|
<? |
|
if (!empty($breadcrumb) && is_array($breadcrumb)) { |
|
$tmpBradC = []; |
|
$tmpBradC["/index.php"] = "<span class='fa fa-home'></span> " . __("Home"); |
|
$breadcrumb = $tmpBradC + $breadcrumb; |
|
?> |
|
<nav class="d-none d-md-block" aria-label="breadcrumb"> |
|
<ol class="breadcrumb m-0"> |
|
<? foreach($breadcrumb AS $link => $label) { ?> |
|
<li class="breadcrumb-item <?= empty($link) ? " active" : "" ?>"> |
|
<?if (!empty($link)) { echo '<a href="'. $link .'">'; } ?> |
|
<?= $label ?> |
|
<? if (!empty($link)) echo '</a>' ?> |
|
</li> |
|
<? } ?> |
|
</ol> |
|
</nav> |
|
<? |
|
} |
|
?> |
|
</div> |
|
<? if (!empty($_SESSION["utente"]->oe) || !empty($_SESSION["utente"]->enteInnovativo)) {?> |
|
<div class="row no-gutters"> |
|
<div class="col-md-2 py-3 px-0 d-none bg-dark d-md-block position-fixed h-100 scrollable" style="left:0"> |
|
<div class="mb-3"> |
|
<? if (!empty($_SESSION["utente"]->oe)) { |
|
$ratingVR = $_SESSION["utente"]->myVR(); |
|
if (settingsManager::getValue("showPunteggioVR-OE") == "S" && $ratingVR > 0) { |
|
$punteggioMassimo = settingsManager::getValue("punteggioMassimoVR"); |
|
$color = make_color($ratingVR/$punteggioMassimo,0,1); |
|
?> |
|
<span class="d-block pr-2 py-2 my-2 text-white text-right"> |
|
<?= __("Rating ottenuto") ?>: <span class="fa fa-star" style="color:<?= $color ?>"></span> <?= $ratingVR ?> / <?= $punteggioMassimo ?> |
|
</span> |
|
<? } ?> |
|
<a href="/oe/index.php" class="d-block pl-2 py-2 my-2 bg-primary text-white text-left font-weight-bold"> |
|
<span class="fa fa-user-circle"></span> <?= $_SESSION["utente"]->oe["ragione_sociale"] ?> |
|
<? if (empty($_SESSION["utente"]->getInfo()["cf"])) { ?> |
|
<span class="text-warning float-right pr-2"><span class="fa fa-exclamation-triangle"></span> |
|
<? } ?> |
|
</a> |
|
<? } else { ?> |
|
<a href="/enti_innovazione/index.php" class="d-block pl-2 py-2 my-2 bg-primary text-white text-left font-weight-bold"> |
|
<span class="fa fa-user-circle"></span> <?= $_SESSION["utente"]->enteInnovativo["denominazione"] ?> |
|
</a> |
|
<? } ?> |
|
</div> |
|
<? |
|
if (!empty($oeMenu)) { |
|
foreach($oeMenu AS $voce) { ?> |
|
<a href="<?= $voce["link"] ?>" class="d-block pl-2 py-2 mb-1 bg-info text-white text-left font-weight-bold"> |
|
<span class="<?= $voce["icon"] ?>"></span> |
|
<?= __($voce["titolo"]) ?> |
|
<? |
|
if (!empty($voce["badge"]) && file_exists($root.$voce["badge"])) { |
|
include($root.$voce["badge"]); |
|
} |
|
?> |
|
</a> |
|
<? |
|
} |
|
} |
|
?> |
|
<a href="/logout.php" class="d-block pl-4 py-2 mb-1 bg-danger text-white text-left font-weight-bold"> |
|
<span class="fa fa-power-off"></span> |
|
<?= __("Esci") ?> |
|
</a> |
|
</div> |
|
<div class="col-12 offset-md-2 col-md-10 p-0"> |
|
<? } ?> |
|
<div class="mb-5"></div> |
|
<div id="main-content">
|
|
|