diff --git a/modules/anagrafiche/edit.php b/modules/anagrafiche/edit.php index 7b7363e6a..dd5dd6cd4 100644 --- a/modules/anagrafiche/edit.php +++ b/modules/anagrafiche/edit.php @@ -94,37 +94,41 @@ if (!$cliente) {
-
+ +
{[ "type": "text", "label": "", "name": "indirizzo", "value": "$indirizzo$" ]}
- -
+ +
{[ "type": "text", "label": "", "name": "indirizzo2", "value": "$indirizzo2$" ]}
- + +
+ {[ "type": "text", "label": "", "name": "cap", "maxlength": 5, "class": "text-center", "value": "$cap$" ]} +
+
{[ "type": "text", "label": "", "name": "citta", "class": "text-center", "value": "$citta$" ]}
-
+ + + +
+ {[ "type": "text", "label": "", "name": "provincia", "maxlength": 2, "class": "text-center", "value": "$provincia$" ]} +
+ +
{[ "type": "select", "label": "", "name": "id_nazione", "values": "query=SELECT id AS id, nome AS descrizione FROM an_nazioni ORDER BY nome ASC", "value": "$id_nazione$" ]}
-
+
{[ "type": "select", "label": "", "name": "idzona", "values": "query=SELECT id, CONCAT_WS( ' - ', nome, descrizione) AS descrizione FROM an_zone ORDER BY descrizione ASC", "value": "$idzona$", "placeholder": "", "icon-after": "add|" ]}
-
- {[ "type": "text", "label": "", "name": "cap", "maxlength": 5, "class": "text-center", "value": "$cap$" ]} -
- -
- {[ "type": "text", "label": "", "name": "provincia", "maxlength": 2, "class": "text-center", "value": "$provincia$" ]} -
- -
+
{[ "type": "number", "label": "", "name": "km", "decimals":"1", "class": "text-center", "value": "$km$", "icon-after": "Km" ]}
diff --git a/modules/segmenti/edit.php b/modules/segmenti/edit.php index cb0234b56..373c8e44f 100644 --- a/modules/segmenti/edit.php +++ b/modules/segmenti/edit.php @@ -21,7 +21,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "select", "label": "", "name": "module", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_modules WHERE ( enabled = 1 AND options != 'custom' ) OR id = ORDER BY name ASC", "value": "$id_module$", "extra": "" ]} + {[ "type": "select", "label": "", "name": "module", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_modules WHERE ( enabled = 1 AND options != 'custom' ) OR id = ORDER BY name ASC", "value": "", "extra": "" ]}
diff --git a/templates/interventi/body.php b/templates/interventi/body.php index 293e65a8b..1690d0f30 100644 --- a/templates/interventi/body.php +++ b/templates/interventi/body.php @@ -32,37 +32,41 @@ echo ' // Codice fiscale o P.Iva if (!empty($c_piva)) { - echo ' - - '.tr('P.Iva').': '.strtoupper($c_piva).' - - '; + echo ' + + '.tr('P.Iva').': '.strtoupper($c_piva).' + '; } else { echo ' '.tr('C.F.').': '.strtoupper($c_codicefiscale).' - - '; + '; } + + echo ''; + + //Indirizzo + if (!empty($c_indirizzo) or !empty($c_cap) or !empty($c_citta) or !empty($c_provincia)) { + + echo ' + + + '.((!empty($c_indirizzo)) ? tr('Via').': '.$c_indirizzo.'' : '').' + '.((!empty($c_cap)) ? tr('CAP').': '.$c_cap.'' : '').' + '.((!empty($c_citta)) ? tr('Città').': '.$c_citta.'' : '').' + '.((!empty($c_provincia)) ? tr('Provincia').': '.strtoupper($c_provincia).'' : '').' + + '; -// riga 2 -echo ' - - - '.((!empty($c_indirizzo)) ? tr('Via').': '.$c_indirizzo.'' : '').' - '.((!empty($c_cap)) ? tr('CAP').': '.$c_cap.'' : '').' - '.((!empty($c_citta)) ? tr('Città').': '.$c_citta.'' : '').' - '.((!empty($c_provincia)) ? tr('Provincia').': '.strtoupper($c_provincia).'' : '').' - - '; + } echo ' '.tr('Telefono').': '.$c_telefono.''; -if (!empty($c_cellulare)) { - echo' - '.tr('Cellulare').': '.$c_cellulare.''; -} + if (!empty($c_cellulare)) { + echo' - '.tr('Cellulare').': '.$c_cellulare.''; + } echo ' ';