if ($_SESSION["utente"]->isSupportoOrRoot()) {
if ($_SESSION["utente"]->hasSuperPowers()) {
?>
} else { ?>
}
}
DGUE::printUploadButton() ?>
= strtoupper(__("strumenti")) ?>
$types = Modulo::getTipologie();
$tools_array = $tmpTools = [];
foreach($types AS $tipologia => $tipo) {
if (!empty($moduli[$tipologia])) {
$tools = $moduli[$tipologia];
$style = [];
$style["container"] = $style["tool"] = "";
if(! empty($tipo["style-container"]) && is_array($tipo["style-container"])) {
foreach($tipo["style-container"] as $property => $value) {
$style["container"] .= "{$property}: {$value};";
}
}
if(! empty($tipo["style-tool"]) && is_array($tipo["style-tool"])) {
foreach($tipo["style-tool"] as $property => $value) {
$style["tool"] .= "{$property}: {$value};";
}
}
?>
}
}
$tools = $tools_array;
unset($tools_array);
?>
}
?>
">
"; } ?>
= __($tipo["titolo"]) ?>
= __($tipo["titolo"]) ?>
-
$sth = $pdo->prepare("SELECT * FROM b_tools_preferiti WHERE codice_utente = :codice_utente AND id_modulo = :id_modulo ");
$sth->bindValue(':codice_utente', $_SESSION["utente"]->codice);
uasort($tools, function($a, $b) {
return $a['titolo'] <=> $b['titolo'];
});
foreach ($tools as $id_tool => $tool) {
if ($tool["completed"] != "N") {
$active = false;
$tool["preferito"] = 0;
$sth->bindValue(':id_modulo', $id_tool);
$sth->execute();
if($sth->rowCount() == 1) { $tool["preferito"] = 1; }
if ($radice == $id_tool) { $active = true; }
?>
-
" style="= $style["tool"] ?>" class="w-100 text-left">
"; } ?>
= ($tool["completed"] == "N") ? "
" : "" ?> gerarchia === 1) ? "text-warning" : "" ?>">= __($tool["titolo"]) ?> = ($tool["completed"] == "N") ? "" : "" ?> $rad_tool = $id_tool; if (strpos($id_tool,"ordini-")!==false) { $rad_tool = "ordini"; } if (strpos($id_tool,"network-")!==false) { $rad_tool = "network"; } if (file_exists("{$beRoot}/{$rad_tool}/badge.php")) { ?> include($beRoot."/". $rad_tool ."/badge.php"); ?> } ?>
$tools_array[$id_tool] = $tool;
}
}
?>