$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) { if (isset($_GET["draw"])) { $return = array(); $return["draw"] = (int)$_GET["draw"]; $return["recordsTotal"] = (int)0; $return["recordsFiltered"] = (int)0; $bind = array(); $sql = "SELECT * FROM b_impostazioni_dati_minimi WHERE soft_delete = 'N' "; $risultati = $pdo->go($sql,$bind); if ($risultati->rowCount() > 0) { if ($_GET["length"] !== "-1") { $sql.= "LIMIT ". (int)$_GET["start"] .", " . (int)$_GET["length"]; } $risultati = $pdo->go($sql,$bind); if ($risultati->rowCount() > 0) { $return["recordsFiltered"] = $return["recordsTotal"]; $return["data"] = array(); $tipologie = getTipologieAffidamento(false); while($record = $risultati->fetch(PDO::FETCH_ASSOC)) { $stato = "bg-danger"; $stato_label = __('disattivo'); if ($record["attivo"]=="S") { $stato = "bg-success"; $stato_label = __('attivo'); } $record["tipologie"] = json_decode($record["tipologie"],true); $row = array(); $row[] = '