From 13e86056c97ac4fbf46f3689cd21f9ea58cf3f09 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 21 Mar 2018 23:49:08 +0100 Subject: [PATCH] Miglioramenti grafici --- assets/src/css/style.css | 14 +++++++++++- modules/ddt/edit.php | 46 +++++++++++++++++++++++++++++++++------- 2 files changed, 51 insertions(+), 9 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 9b44b514d..e29cc9dd7 100644 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -276,11 +276,23 @@ span.form-control { } #pulsanti.affix { - background-color: #fff; top: 0; padding: 10px 0; width: 100%; z-index: 800; + -webkit-box-shadow: 0px 5px 10px -10px rgba(0,0,0,0.75); + -moz-box-shadow: 0px 5px 10px -10px rgba(0,0,0,0.75); + box-shadow: 0px 5px 10px -10px rgba(0,0,0,0.75); + border-bottom:0.5px solid #ccc; + + background: rgba(255,255,255,1); + background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); + background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(237,237,237,1))); + background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); + background: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); + background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); + background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%); + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=0 ); } /* Aggiustamenti per i widget */ diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index 2f48978e1..20ce89a84 100644 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -23,15 +23,45 @@ if ($module['name'] == 'Ddt di vendita') {
+ + + fetchArray('SELECT piva, codice_fiscale, citta, indirizzo, cap, provincia FROM an_anagrafiche WHERE idanagrafica='.prepare($records[0]['idanagrafica'])); + $campi_mancanti = []; + + if ($rs2[0]['piva'] == '') { + if ($rs2[0]['codice_fiscale'] == '') { + array_push($campi_mancanti, 'codice fiscale'); + } + } + if ($rs2[0]['citta'] == '') { + array_push($campi_mancanti, 'citta'); + } + if ($rs2[0]['indirizzo'] == '') { + array_push($campi_mancanti, 'indirizzo'); + } + if ($rs2[0]['cap'] == '') { + array_push($campi_mancanti, 'C.A.P.'); + } + + if (sizeof($campi_mancanti) > 0) { + echo "
Prima di procedere alla stampa completa i seguenti campi dell'anagrafica:
".implode(', ', $campi_mancanti).'
+ '.Modules::link('Anagrafiche', $records[0]['idanagrafica'], tr('Vai alla scheda anagrafica'), null).'
'; + } + } + ?> + +
- - {[ "type": "span", "label": "'.tr('Numero ddt').'", "class": "text-center", "value": "$numero$" ]} -
'; -} -?> + + {[ "type": "span", "label": "'.tr('Numero ddt').'", "class": "text-center", "value": "$numero$" ]} +
'; + } + ?>
{[ "type": "text", "label": "", "name": "numero_esterno", "class": "text-center", "value": "$numero_esterno$" ]}