$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; include_once($configPath); if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) { include_once($root."/backend/layout/top.php"); $bind = [":codice_gestore"=>$_SESSION["ente"]->codice]; $sql = "SELECT codice FROM b_simog WHERE codice_gestore = :codice_gestore "; if ($_SESSION["utente"]->gerarchia > 10) { $ids = Utente::getPermissionsInModulo($_SESSION["ente"]->codice,$_SESSION["utente"]->codice,"anac"); $ids = implode(",",$ids); $sql .= " AND codice IN ({$ids}) "; } if (!$_SESSION["utente"]->fromHere()) { $sql .= " AND codice_ente = :codice_ente "; $bind[":codice_ente"] = $_SESSION["utente"]->codice_ente; } $risultato = $pdo->go($sql,$bind); $stati = anac::getStati(); ?>
| = __("Oggetto") ?> | = __("Lotti") ?> | = __("Anno") ?> | = __("Ente") ?> |
|---|