include '../../lib/api.php'; //error_reporting(E_ALL); //ini_set('display_errors', 1); //Utils::print_array($_POST); // //exit(); if (!$bando_setup->ControllaPeriodoPreparazione()) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); } define('WS_MODULE', 'info_camere'); if ($_POST['cod_fis_impresa'] == "" || $LoggedAccount->CODICE_FISCALE == "" || strlen($_POST['cod_fis_impresa']) < 9) { exit(); } $domanda = Domanda::selectIdFromCodiceF($LoggedAccount->CODICE_FISCALE, trim($_POST['cod_fis_impresa'])); //Utils::print_array($domanda); if (intval($domanda->VERSIONE) > 0) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } if ($domanda->CODICE_FISCALE_LEGALE != $LoggedAccount->CODICE_FISCALE) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } if ($domanda->VERSIONE == 1) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } if (trim($_POST['cod_fis_impresa']) != $domanda->CODICE_FISCALE_IMPRESA) { Utils::RedirectTo(BASE_HTTP . 'dashboard.php'); exit(); } $domanda_json = stream_get_contents($domanda->DOMANDA_JSON); $domanda_array = json_decode($domanda_json, true); //PDF //$SchedaPersona = $domanda_array['SchedaPersona']; /// ERRATO // FIX $SchedaPersona = json_encode($LoggedAccount->SchedaPersona); $SchedaPersona = json_decode($SchedaPersona, true); //Utils::print_array($SchedaPersona);exit(); $domanda_adesione = new Domanda_Adesione($domanda->ID); ?> include_once ROOT . 'layout/head.php'; ?>
include_once ROOT . 'layout/header.php'; ?>Per completare la fase di caricamento ed invio del modello è necessario:
Scarica la dichiarazione per procedere alla firma in .P7M