Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
201 righe
8.6 KiB
201 righe
8.6 KiB
<!doctype html> |
|
<?php |
|
include '../../lib/api.php'; |
|
|
|
if (!Utils::isStatoSportelloPreparazione()) { |
|
Utils::RedirectTo(HTTP_PRIVATE_SECTION . 'info.php'); |
|
} |
|
|
|
//$state = $LoggedAccount->checkStateEditableFieldPage(); |
|
|
|
$nucleo = $LoggedAccount->loadNucleoFamiliare(); |
|
//Utils::print_array($LoggedAccount); |
|
//exit(); |
|
?> |
|
<html lang="en"> |
|
<? include_once ROOT . 'layout/head.php'; ?> |
|
<body> |
|
<? |
|
include_once ROOT . 'layout/header.php'; |
|
?> |
|
<main role="main"> |
|
<header class="masthead masthead-page"> |
|
<div class="container"> |
|
<div class="row "> |
|
<div class="col-lg-12 p-3"> |
|
<div class="row"> |
|
<div class="col-lg-2"> |
|
<img src="<?= BASE_HTTP ?>assets/img/footer_web_loghi_white.png" alt="" class="logo-footer"/> |
|
</div> |
|
<div class="col-lg-10"> |
|
<h6><?= TEXT_ASSESSORATO_BANDO ?></h6> |
|
<h6><?= TEXT_DESCRIZIONE_BANDO ?></h6> |
|
</div> |
|
</div> |
|
<? |
|
$txtBenvenuto = ($LoggedAccount->Anagrafica->SESSO == "M" ? "Benvenuto Sig." : "Benvenuta Sig.ra"); |
|
$contenuto = $txtBenvenuto . ' <b>' . $LoggedAccount->Anagrafica->COGNOME . ' ' . $LoggedAccount->Anagrafica->NOME . '</b>'; |
|
?> |
|
<h3 class="mb-2"><?= $contenuto ?></h3> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
include_once ROOT . 'layout/header_svg.php'; |
|
?> |
|
</header> |
|
<div class="container-fluid"> |
|
<? include_once ROOT . 'layout/loader.php'; ?> |
|
<div class="row"> |
|
<div class="col-sm-12"> |
|
<nav aria-label="breadcrumb"> |
|
<ol class="breadcrumb"> |
|
<li class="breadcrumb-item"><a href="javascript:goBack()">Pagina iniziale</a></li> |
|
<li class="breadcrumb-item active" aria-current="page">Sezione componenti del nucleo familiare del richiedente. </li> |
|
</ol> |
|
</nav> |
|
</div> |
|
</div> |
|
<div class="row"> |
|
<div class="col-sm-12"> |
|
<h3>Sezione componenti del nucleo familiare del richiedente.</h3> |
|
</div> |
|
</div> |
|
<hr> |
|
<div class="row"> |
|
<div class="col-sm-12"> |
|
|
|
<div class="card"> |
|
<div class="card-header bg-primary text-white"> |
|
<div class="row"> |
|
<div class="col-lg-2"> |
|
<i class="fas fa-users"></i> Componenti |
|
</div> |
|
<div class="col-lg-10 text-right"> |
|
<button type="button" onclick="goToPage('page_nucleo_familiare')" class="btn btn-sm btn-success"><i class="fas fa-plus"></i> Aggiungi Figlio nel Nucleo Familiare</button> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="card-body"> |
|
<b class="infoPresentazione"> |
|
Indicare i figli del proprio nucleo familiare, per i quali potrà essere richiesta l'erogazione degli sconti sui voli effettuati. |
|
</b> |
|
<table id="dt_nucleo_familiare" class="table table-striped table-bordered" style="width:100%"> |
|
<thead> |
|
<tr> |
|
<th>#</th> |
|
<th>Nominativo</th> |
|
<th>Codice Fiscale</th> |
|
<th>Data di Nascita</th> |
|
<th>Residenza</th> |
|
<!--<th>Rapporto di Parentela</th>--> |
|
<th>Studente</th> |
|
<th>Disabile dal 67%</th> |
|
<th>Gestione</th> |
|
</tr> |
|
</thead> |
|
</table> |
|
<br> |
|
</div> |
|
<div class="card-footer text-right"> |
|
<button type="button" id="btn-dashboard" class="btn btn-md btn-primary" onclick="goBack()"><i class="fas fa-tachometer-alt"></i> Torna alla pagina iniziale</button> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</main> |
|
<? include_once ROOT . 'layout/footer.php'; ?> |
|
</body> |
|
<script> |
|
//var dt; |
|
$(document).ready(function () { |
|
listNucleo(); |
|
}); |
|
|
|
function editComponente(idUtente) { |
|
$.redirect(HTTP_PRIVATE_SECTION + "page_nucleo_familiare.php", {ID: idUtente}); |
|
} |
|
|
|
function deleteComponente(ricevo) { |
|
var object = { |
|
module: 'nucleo_familiare', |
|
action: 'deleteComponente', |
|
id: ricevo |
|
} |
|
Swal.fire({ |
|
title: "Attenzione", |
|
text: "Sei sicuro di voler proseguire con l'operazione selezionata?", |
|
icon: 'warning', |
|
showCancelButton: true, |
|
cancelButtonText: "Annulla", |
|
confirmButtonColor: '#3085d6', |
|
cancelButtonColor: '#d33', |
|
confirmButtonText: 'OK' |
|
}).then((result) => { |
|
if (result.value) { |
|
$('#loader').show(); |
|
postdataClassic(WS_CALL, object, function (response) { |
|
var risp = jQuery.parseJSON(response); |
|
if (risp.esito === 1) { |
|
$('#loader').hide(); |
|
functionSwall('success', 'Operazione Completata con Successo'); |
|
|
|
listNucleo(true); |
|
} else { |
|
$('#loader').hide(); |
|
functionSwall('error', risp.erroreDescrizione, ""); |
|
} |
|
}); |
|
} |
|
}); |
|
} |
|
|
|
|
|
|
|
function goBack() { |
|
$.redirect(HTTP_PRIVATE_SECTION + "dashboard.php"); |
|
} |
|
|
|
function listNucleo(reload) { |
|
var dt = $("#dt_nucleo_familiare"); |
|
if (!reload) { |
|
|
|
dtNucleo = dt.DataTable({ |
|
'searching': false, |
|
'processing': true, |
|
'serverSide': true, |
|
'paging': false, |
|
"info": false, |
|
'serverMethod': 'post', |
|
"order": [[0, 'ASC']], |
|
'ajax': { |
|
'url': WS_CALL, |
|
'data': { |
|
'module': 'nucleo_familiare', |
|
'action': 'listNucleo' |
|
} |
|
}, |
|
'columns': [ |
|
{data: 'NR', orderable: false}, |
|
{data: 'NOMINATIVO', orderable: false}, |
|
{data: 'CODICE_FISCALE', orderable: false}, |
|
{data: 'DATA_NASCITA', orderable: false}, |
|
{data: 'RESIDENZA', orderable: false}, |
|
// {data: 'RAPPORTO_PARENTELA', orderable: false}, |
|
{data: 'STUDENTE', orderable: false}, |
|
{data: 'DISABILE', orderable: false}, |
|
{data: 'OP', orderable: false} |
|
], |
|
'initComplete': function (settings, json) { |
|
} |
|
}); |
|
} else { |
|
dt.DataTable().ajax.reload(function (json) { |
|
}); |
|
} |
|
} |
|
|
|
|
|
</script> |
|
</html>
|