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.
229 righe
4.5 KiB
229 righe
4.5 KiB
<? |
|
if(!isset($config)){ |
|
header('HTTP/1.0 401 Unauthorized'); |
|
die(); |
|
} |
|
?> |
|
|
|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
|
<title><?= __('Esportazione Comunicazione PDF') ?></title> |
|
<style> |
|
@page { |
|
margin: 0cm; |
|
margin-top: 0.5cm; |
|
margin-left: 1.3cm; |
|
margin-right: 1.3cm; |
|
margin-bottom: 0.5cm; |
|
page-break-inside: avoid !important; |
|
} |
|
|
|
* { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
} |
|
|
|
body { |
|
padding: 30px 40px; |
|
} |
|
|
|
body * { |
|
font-family: 'Lucida Grande', Helvetica, Arial, sans-serif; |
|
} |
|
|
|
.b-none{ |
|
border: none; |
|
} |
|
|
|
.w-15{ |
|
width: 15%; |
|
} |
|
|
|
.w-20{ |
|
width: 20%; |
|
} |
|
|
|
.w-35{ |
|
width: 35%; |
|
} |
|
|
|
.w-45{ |
|
width: 45%; |
|
} |
|
|
|
.w-55{ |
|
width: 55%; |
|
} |
|
|
|
.w-100{ |
|
width: 100%; |
|
} |
|
|
|
.p-0 { |
|
padding: 0; |
|
} |
|
|
|
.px-3{ |
|
padding: 0 1rem |
|
} |
|
|
|
.p-2{ |
|
padding: .5rem |
|
} |
|
|
|
.p-3{ |
|
padding: 1rem |
|
} |
|
|
|
.p-4{ |
|
padding: 1.5rem |
|
} |
|
|
|
.p-5{ |
|
padding: 3rem |
|
} |
|
|
|
.p-10-15{ |
|
padding: 10px 15px; |
|
} |
|
|
|
.mb-5{ |
|
margin-bottom: 3rem; |
|
} |
|
|
|
.container{ |
|
width: 100%; |
|
margin: 10px 0; |
|
} |
|
|
|
.label{ |
|
background: #DDD; |
|
padding: 15px 15px; |
|
border: solid grey; |
|
border-width: 1px 1px 0 1px; |
|
} |
|
|
|
.testo{ |
|
border: solid grey; |
|
border-width: 0px 1px 1px 1px; |
|
} |
|
|
|
|
|
|
|
label{ |
|
font-weight: bold; |
|
} |
|
|
|
.b-collapse { |
|
border-collapse: collapse; |
|
padding: 0; |
|
margin: 0; |
|
} |
|
|
|
.b-grey{ |
|
border: 1px solid grey; |
|
} |
|
|
|
.table-elenco tr:nth-child(even){ |
|
background-color: #DDD; |
|
} |
|
|
|
table, tr, td, th, tbody, thead, tfoot { |
|
page-break-inside: avoid !important; |
|
} |
|
|
|
.b-bottom{ |
|
border-bottom: 1px solid grey; |
|
} |
|
|
|
.b-grey > .table-internal:last-child{ |
|
border: none; |
|
} |
|
|
|
.table-internal{ |
|
height: 50%; |
|
} |
|
|
|
td, tr, th, table{ |
|
vertical-align: middle; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
|
|
<table width="100%" class="mb-5"> |
|
<tr> |
|
<td style="width:150px"><img src="<?= $config["link_sito"] ?>/documenti/enti/<?= $enteInfo["logo"] ?>" style="width:150px"></td> |
|
<td> |
|
<h1><?= $enteInfo["denominazione"] ?></h1> |
|
<strong><?= $enteInfo["indirizzo"] . " - " . $enteInfo["citta"] . " (" . $enteInfo["provincia"] . ")" ?></strong><br> |
|
<h2 style="margin:5px;padding:0px"> |
|
<? if($_GET['type'] == 'elenco'){ ?> |
|
<?= __("Esportazione Elenco Comunicazioni - ") ?> |
|
<? }else{ ?> |
|
<?= __("Esportazione Comunicazione - ") ?> |
|
<? } ?> |
|
|
|
<?= date("d/m/Y") ?> |
|
</h2> |
|
</td> |
|
</tr> |
|
</table> |
|
|
|
<div class="container"> |
|
<div class="label"> |
|
<label><?= __('Data: ') ?> </label> |
|
</div> |
|
<div class="testo p-3"> |
|
<p><?= $comunicazione['timestamp'] ?></p> |
|
</div> |
|
</div> |
|
|
|
<? if(!empty($comunicazione['destinatari'])){ ?> |
|
<div class="container"> |
|
<div class="label"> |
|
<label><?=__('Destinatari:')?> </label> |
|
</div> |
|
<div class="testo p-3"> |
|
<ul class="px-3"> |
|
<? foreach ($comunicazione['destinatari'] as $key => $destinatario) { ?> |
|
<li> |
|
<? if(!empty($comunicazione['numero_protocollo'])){ ?> |
|
<?= __('N. Protocollo: ') ?> |
|
<?= $comunicazione['numero_protocollo'] ?> |
|
<? }else{ ?> |
|
<?= __('Identificativo Interno: ') ?> |
|
<?= $destinatario['protocollo_interno'] ?> |
|
<? } ?> |
|
<?= " - ". $destinatario['pec'] ?> (<?= $destinatario['ragione_sociale'] ?>) |
|
</li> |
|
<? } ?> |
|
</ul> |
|
</div> |
|
</div> |
|
<? } ?> |
|
|
|
<div class="container"> |
|
<div class="label"> |
|
<label><?=__('Oggetto:')?> </label> |
|
</div> |
|
<div class="testo p-3"> |
|
<p><?= $comunicazione['oggetto'] ?></p> |
|
</div> |
|
</div> |
|
|
|
<div class="container"> |
|
<div class="label"> |
|
<label><?= __('Corpo Messaggio:') ?></label> |
|
</div> |
|
<div class="testo p-3"> |
|
<p><?= $comunicazione["corpo"] ?></p> |
|
</div> |
|
</div> |
|
|
|
|
|
</body> |
|
</html>
|