From cff58f2ebce1892056c163172917b5dc5babfd80 Mon Sep 17 00:00:00 2001 From: valentina Date: Tue, 30 Jul 2024 16:32:44 +0200 Subject: [PATCH] Miglioria grafica stampa intervento --- templates/interventi/body.php | 97 ++++++++++++++++++----------------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/templates/interventi/body.php b/templates/interventi/body.php index f95ee82cd..18b5c8527 100755 --- a/templates/interventi/body.php +++ b/templates/interventi/body.php @@ -31,52 +31,53 @@ $d_totali = (int) setting('Cifre decimali per totali in stampa'); Dati intervento */ echo ' +
- + - '; // Indirizzo if (!empty($s_indirizzo) or !empty($s_cap) or !empty($s_citta) or !empty($s_provincia)) { echo ' - '; } elseif (!empty($c_indirizzo) or !empty($c_cap) or !empty($c_citta) or !empty($c_provincia)) { echo ' - '; } echo ' - - + '; @@ -86,16 +87,16 @@ if (!empty($preventivo) or !empty($contratto)) { echo ' - - + '; } @@ -103,31 +104,31 @@ if (!empty($preventivo) or !empty($contratto)) { echo ' - - - - + '; @@ -141,16 +142,16 @@ for ($j = 0; $j < count($rs2); ++$j) { echo ' - - + '; @@ -159,9 +160,9 @@ echo ' echo ' - '; @@ -171,9 +172,9 @@ echo ' echo ' -
'.tr('Rapporto attività', [], ['upper' => true]).''.tr('Rapporto attività', [], ['upper' => true]).'
-

'.tr('Cliente', [], ['upper' => true]).'

+

'.tr('Cliente', [], ['upper' => true]).':

- '.$c_ragionesociale.' + + '.$c_ragionesociale.' -

'.tr('Indirizzo', [], ['upper' => true]).'

+

'.tr('Indirizzo', [], ['upper' => true]).':

- '.$s_indirizzo.' '.$s_cap.' - '.$s_citta.' ('.strtoupper((string) $s_provincia).') + + '.$s_indirizzo.' '.$s_cap.' - '.$s_citta.' ('.strtoupper((string) $s_provincia).') -

'.tr('Indirizzo', [], ['upper' => true]).'

+

'.tr('Indirizzo', [], ['upper' => true]).':

- '.$c_indirizzo.' '.$c_cap.' - '.$c_citta.' ('.strtoupper((string) $c_provincia).') + + '.$c_indirizzo.' '.$c_cap.' - '.$c_citta.' ('.strtoupper((string) $c_provincia).')
-

'.tr('Attività n.', [], ['upper' => true]).'

-
- '.$documento['codice'].' +

'.tr('Attività n.', [], ['upper' => true]).':

-

'.tr('Data richiesta', [], ['upper' => true]).'

+ '.$documento['codice'].'
- '.Translator::dateToLocale($documento['data_richiesta']).' + +

'.tr('Data richiesta', [], ['upper' => true]).':

+
+ '.Translator::dateToLocale($documento['data_richiesta']).'
-

'.tr('Preventivo n.', [], ['upper' => true]).'

-
- '.(!empty($preventivo) ? $preventivo['numero'].' del '.Translator::dateToLocale($preventivo['data_bozza']) : 'Nessuno').' +

'.tr('Preventivo n.', [], ['upper' => true]).':

-

'.tr('Contratto n.', [], ['upper' => true]).'

+ '.(!empty($preventivo) ? $preventivo['numero'].' del '.Translator::dateToLocale($preventivo['data_bozza']) : 'Nessuno').'
- '.(!empty($contratto) ? $contratto['numero'].' del '.Translator::dateToLocale($contratto['data_bozza']) : 'Nessuno').' + +

'.tr('Contratto n.', [], ['upper' => true]).':

+
+ '.(!empty($contratto) ? $contratto['numero'].' del '.Translator::dateToLocale($contratto['data_bozza']) : 'Nessuno').'
-

'.tr('P.Iva', [], ['upper' => true]).'

+

'.tr('P.Iva', [], ['upper' => true]).':

- '.strtoupper((string) $c_piva).' + + '.strtoupper((string) $c_piva).' -

'.tr('C.F.', [], ['upper' => true]).'

+

'.tr('C.F.', [], ['upper' => true]).':

- '.strtoupper((string) $c_codicefiscale).' + + '.strtoupper((string) $c_codicefiscale).'
-

'.tr('Telefono', [], ['upper' => true]).'

-
- '.$c_telefono.' +

'.tr('Telefono', [], ['upper' => true]).':

-

'.tr('Cellulare', [], ['upper' => true]).'

+ '.$c_telefono.'
- '.$c_cellulare.' + +

'.tr('Cellulare', [], ['upper' => true]).':

+
+ '.$c_cellulare.'
-

'.tr('Impianti', [], ['upper' => true]).'

-
- '.implode(', ', $impianti).' +

'.tr('Impianti', [], ['upper' => true]).':

-

'.tr('Tipo intervento', [], ['upper' => true]).'

+ '.implode(', ', $impianti).'
- '.$documento->tipo->getTranslation('title').' + +

'.tr('Tipo intervento', [], ['upper' => true]).':

+
+ '.$documento->tipo->getTranslation('title').'
-

'.tr('Richiesta', [], ['upper' => true]).'

+

'.tr('Richiesta', [], ['upper' => true]).':

+

'.$documento['richiesta'].'

-

'.tr('Descrizione', [], ['upper' => true]).'

+

'.tr('Descrizione', [], ['upper' => true]).':

+

'.$documento['descrizione'].'