$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && $_SESSION['utente']->permission($radice, $_GET['codice'], 'classe-documentale') && !empty($_GET['codice'])) { $codice = $_GET['codice']; $contratto = stipula::init($_GET["codice"]); if(!empty($contratto->info['codice'])){ $richieste = RichiestaDocumentale::getRichieste(['codice_contratto' => $contratto->info['codice'], 'bozza' => 'S']); if(!empty($richieste)){ $tmpContraenti = array_values(array_unique(pluck('codice_oe', $richieste))); foreach ($tmpContraenti as $tmpContraente) { $contraenti[] = array_values($contratto->getContraenti("oe", null, $tmpContraente))[0]; } ?>
} } } ?>